Skip to content

Instantly share code, notes, and snippets.

@emerali
Last active August 22, 2018 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emerali/1a18e76f39b6e394208247c5e2cedc1e to your computer and use it in GitHub Desktop.
Save emerali/1a18e76f39b6e394208247c5e2cedc1e to your computer and use it in GitHub Desktop.
81509932 function calls in 1771.467 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
2400768 468.245 0.000 499.856 0.000 cplx.py:45(scalar_mult)
240000 382.351 0.002 1650.516 0.007 complex_wavefunction.py:162(rotated_gradient)
1998444 71.371 0.000 71.371 0.000 {built-in method addmm}
1986000 66.347 0.000 66.347 0.000 {built-in method cat}
1 53.676 53.676 1771.455 1771.455 wavefunction.py:409(fit)
1038000 51.939 0.000 51.939 0.000 {built-in method einsum}
480000 51.120 0.000 253.471 0.001 cplx.py:265(scalar_divide)
3840768 51.044 0.000 51.044 0.000 {built-in method zeros_like}
480216 48.298 0.000 265.984 0.001 complex_wavefunction.py:119(psi)
960601 44.274 0.000 44.274 0.000 {built-in method tensor}
1026000 41.068 0.000 228.384 0.000 binary_rbm.py:102(effective_energy_gradient)
960444 40.738 0.000 158.538 0.000 binary_rbm.py:76(effective_energy)
300000 30.084 0.000 1696.659 0.006 complex_wavefunction.py:200(gradient)
960300 29.530 0.000 29.530 0.000 {method 'cpu' of 'torch._C._TensorBase' objects}
3900432 23.731 0.000 23.731 0.000 {method 'unsqueeze' of 'torch._C._TensorBase' objects}
960444 20.612 0.000 20.612 0.000 {method 'sum' of 'torch._C._TensorBase' objects}
960444 20.177 0.000 20.177 0.000 {built-in method mv}
1440000 20.116 0.000 20.116 0.000 {method 'round' of 'torch._C._TensorBase' objects}
1459093 20.087 0.000 20.087 0.000 {built-in method zeros}
960444 16.710 0.000 16.710 0.000 {built-in method torch._C._nn.softplus}
1992444 13.600 0.000 13.600 0.000 {method 't' of 'torch._C._TensorBase' objects}
6000 12.274 0.002 1713.075 0.286 wavefunction.py:294(compute_batch_gradients)
1038000 11.896 0.000 11.896 0.000 {method 'sigmoid_' of 'torch._C._TensorBase' objects}
3114000 11.830 0.000 11.830 0.000 {method 'view' of 'torch._C._TensorBase' objects}
720000 11.732 0.000 11.732 0.000 {method 'int' of 'torch._C._TensorBase' objects}
1992841 11.459 0.000 11.459 0.000 {method 'to' of 'torch._C._TensorBase' objects}
1260000 11.307 0.000 45.768 0.000 {built-in method numpy.core.multiarray.array}
480216 9.588 0.000 85.470 0.000 complex_wavefunction.py:104(phase)
726000 9.564 0.000 9.564 0.000 {method 'clone' of 'torch._C._TensorBase' objects}
480216 8.134 0.000 104.633 0.000 wavefunction.py:93(amplitude)
480216 7.857 0.000 7.857 0.000 {method 'sin' of 'torch._C._TensorBase' objects}
480000 7.630 0.000 33.755 0.000 wavefunction.py:179(subspace_vector)
480216 7.621 0.000 7.621 0.000 {method 'cos' of 'torch._C._TensorBase' objects}
240000 7.192 0.000 7.192 0.000 {built-in method stack}
1032000 6.937 0.000 73.745 0.000 binary_rbm.py:154(prob_h_given_v)
480228 6.833 0.000 6.833 0.000 {method 'exp' of 'torch._C._TensorBase' objects}
480240 6.709 0.000 6.709 0.000 {method 'sqrt' of 'torch._C._TensorBase' objects}
1020000 5.235 0.000 5.235 0.000 {method 'squeeze_' of 'torch._C._TensorBase' objects}
6943776 4.400 0.000 4.400 0.000 module.py:504(__getattr__)
1026000 4.373 0.000 54.620 0.000 convert_parameters.py:4(parameters_to_vector)
480000 3.459 0.000 3.459 0.000 {method 'reduce' of 'numpy.ufunc' objects}
480216 3.276 0.000 3.276 0.000 {method 'squeeze' of 'torch._C._TensorBase' objects}
960384 3.180 0.000 3.180 0.000 {built-in method numpy.core.multiarray.arange}
960300 2.976 0.000 2.976 0.000 {method 'numpy' of 'torch._C._TensorBase' objects}
960000 2.750 0.000 44.547 0.000 cplx.py:23(make_complex)
240000 2.619 0.000 38.465 0.000 complex_wavefunction.py:150(init_gradient)
3114000 2.428 0.000 3.679 0.000 convert_parameters.py:56(_check_param_device)
960444 2.002 0.000 45.388 0.000 functional.py:1010(linear)
960300 1.958 0.000 34.463 0.000 tensor.py:395(__array__)
480000 1.849 0.000 5.430 0.000 fromnumeric.py:64(_wrapreduction)
3114000 1.251 0.000 1.251 0.000 {method 'get_device' of 'torch._C._TensorBase' objects}
480216 1.211 0.000 105.844 0.000 complex_wavefunction.py:88(amplitude)
480000 1.173 0.000 6.603 0.000 fromnumeric.py:2478(prod)
480192 1.044 0.000 1.044 0.000 {method 'astype' of 'numpy.ndarray' objects}
240000 1.028 0.000 1.028 0.000 complex_wavefunction.py:153(<listcomp>)
300 0.988 0.003 0.988 0.003 {built-in method randperm}
240000 0.945 0.000 7.435 0.000 complex_wavefunction.py:155(<listcomp>)
997746 0.915 0.000 0.915 0.000 {method 'size' of 'torch._C._TensorBase' objects}
2413490 0.830 0.000 0.830 0.000 complex_wavefunction.py:80(device)
3025578 0.813 0.000 0.813 0.000 {method 'dim' of 'torch._C._TensorBase' objects}
300 0.685 0.002 1.922 0.006 wavefunction.py:358(_shuffle_data)
1284229 0.574 0.000 0.574 0.000 complex_wavefunction.py:63(rbm_am)
3078399 0.571 0.000 0.571 0.000 {method 'append' of 'list' objects}
1923330 0.553 0.000 0.556 0.000 {built-in method builtins.len}
36000 0.498 0.000 0.498 0.000 {method 'add_' of 'torch._C._TensorBase' objects}
300000 0.474 0.000 0.474 0.000 {built-in method numpy.core.multiarray.where}
1212217 0.461 0.000 0.461 0.000 complex_wavefunction.py:71(rbm_ph)
12000 0.446 0.000 0.446 0.000 {method 'bernoulli' of 'torch._C._TensorBase' objects}
12000 0.446 0.000 0.998 0.000 gradients_utils.py:25(vector_to_grads)
504004 0.405 0.000 0.551 0.000 {built-in method builtins.getattr}
35994 0.342 0.000 0.342 0.000 {method 'zero_' of 'torch._C._TensorBase' objects}
300 0.152 0.001 0.152 0.001 {built-in method randint}
48008 0.134 0.000 0.215 0.000 module.py:740(named_parameters)
480019 0.122 0.000 0.122 0.000 {method 'items' of 'dict' objects}
582 0.114 0.000 0.123 0.000 cplx.py:100(inner_prod)
12000 0.111 0.000 0.111 0.000 {method 'copy_' of 'torch._C._TensorBase' objects}
252002 0.104 0.000 0.104 0.000 complex_wavefunction.py:59(networks)
6000 0.090 0.000 0.440 0.000 optimizer.py:150(zero_grad)
6000 0.082 0.000 0.579 0.000 sgd.py:71(step)
6000 0.077 0.000 1.796 0.000 binary_rbm.py:218(gibbs_steps)
48 0.068 0.001 0.392 0.008 training_statistics.py:52(rotate_psi)
12 0.048 0.004 0.048 0.004 {method 'logsumexp' of 'torch._C._TensorBase' objects}
300 0.047 0.000 0.047 0.000 wavefunction.py:395(<listcomp>)
6000 0.043 0.000 0.299 0.000 binary_rbm.py:126(prob_v_given_h)
6 0.041 0.007 0.598 0.100 training_statistics.py:111(KL)
300 0.039 0.000 0.039 0.000 wavefunction.py:390(<listcomp>)
48008 0.030 0.000 0.245 0.000 module.py:721(parameters)
6000 0.029 0.000 0.203 0.000 wavefunction.py:332(<listcomp>)
6 0.028 0.005 0.028 0.005 unitaries.py:24(create_dict)
6000 0.027 0.000 0.822 0.000 binary_rbm.py:200(sample_h_given_v)
72018 0.025 0.000 0.037 0.000 tensor.py:384(__hash__)
6000 0.021 0.000 0.559 0.000 binary_rbm.py:182(sample_v_given_h)
12002 0.019 0.000 0.022 0.000 module.py:785(named_children)
1 0.019 0.019 0.019 0.019 data.py:68(extract_refbasis_samples)
36009 0.019 0.000 0.030 0.000 {method 'add' of 'set' objects}
36000 0.017 0.000 0.017 0.000 {method 'numel' of 'torch._C._TensorBase' objects}
6000 0.015 0.000 0.017 0.000 callback_list.py:77(on_batch_end)
492 0.015 0.000 0.015 0.000 {method 'item' of 'torch._C._TensorBase' objects}
1 0.012 0.012 1771.467 1771.467 complex_wavefunction.py:238(fit)
72020 0.012 0.000 0.012 0.000 {built-in method builtins.id}
6 0.009 0.002 0.076 0.013 training_statistics.py:26(fidelity)
35994 0.008 0.000 0.008 0.000 {method 'detach_' of 'torch._C._TensorBase' objects}
6000 0.007 0.000 0.009 0.000 callback_list.py:73(on_batch_start)
24004 0.007 0.000 0.007 0.000 {method 'items' of 'collections.OrderedDict' objects}
288 0.005 0.000 0.005 0.000 {method 'log' of 'torch._C._TensorBase' objects}
192 0.005 0.000 0.017 0.000 wavefunction.py:199(generate_hilbert_space)
12035 0.005 0.000 0.005 0.000 {built-in method builtins.isinstance}
82 0.004 0.000 0.004 0.000 {method 'acquire' of '_thread.lock' objects}
6301 0.004 0.000 0.004 0.000 wavefunction.py:38(stop_training)
582 0.003 0.000 0.127 0.000 cplx.py:295(norm_sqr)
300 0.003 0.000 0.684 0.002 metric_evaluator.py:113(on_epoch_end)
1122 0.002 0.000 0.003 0.000 tensor.py:368(__len__)
300 0.002 0.000 0.002 0.000 wavefunction.py:402(<listcomp>)
6000 0.002 0.000 0.002 0.000 callback.py:72(on_batch_end)
6000 0.001 0.000 0.001 0.000 callback.py:60(on_batch_start)
48 0.001 0.000 0.001 0.000 socket.py:334(send)
300 0.001 0.000 0.001 0.000 callback_list.py:65(on_epoch_start)
300 0.001 0.000 0.685 0.002 callback_list.py:69(on_epoch_end)
12 0.000 0.000 0.051 0.004 binary_rbm.py:248(partition)
301 0.000 0.000 0.000 0.000 _tqdm.py:901(__iter__)
48 0.000 0.000 0.001 0.000 iostream.py:195(schedule)
24 0.000 0.000 0.001 0.000 iostream.py:366(write)
12 0.000 0.000 0.006 0.000 {built-in method builtins.print}
8 0.000 0.000 0.000 0.000 threading.py:215(__init__)
54 0.000 0.000 0.000 0.000 threading.py:1104(is_alive)
18 0.000 0.000 0.002 0.000 {method 'format' of 'str' objects}
300 0.000 0.000 0.000 0.000 callback.py:40(on_epoch_start)
1 0.000 0.000 0.000 0.000 {built-in method _thread.start_new_thread}
6 0.000 0.000 0.004 0.001 iostream.py:327(flush)
1 0.000 0.000 1771.467 1771.467 {built-in method builtins.exec}
24 0.000 0.000 0.001 0.000 iostream.py:313(_schedule_flush)
7 0.000 0.000 0.004 0.001 threading.py:263(wait)
54 0.000 0.000 0.000 0.000 threading.py:1062(_wait_for_tstate_lock)
7 0.000 0.000 0.004 0.001 threading.py:533(wait)
12 0.000 0.000 0.051 0.004 complex_wavefunction.py:223(compute_normalization)
12 0.000 0.000 0.002 0.000 tensor.py:335(__format__)
12 0.000 0.000 0.000 0.000 {method '__format__' of 'float' objects}
12 0.000 0.000 0.051 0.004 wavefunction.py:218(compute_normalization)
192 0.000 0.000 0.000 0.000 wavefunction.py:55(max_size)
24 0.000 0.000 0.000 0.000 iostream.py:300(_is_master_process)
8 0.000 0.000 0.000 0.000 threading.py:498(__init__)
48 0.000 0.000 0.000 0.000 iostream.py:93(_event_pipe)
7 0.000 0.000 0.000 0.000 threading.py:239(__enter__)
1 0.000 0.000 0.001 0.001 _tqdm.py:401(__new__)
6 0.000 0.000 0.002 0.000 {method 'join' of 'str' objects}
18 0.000 0.000 0.002 0.000 metric_evaluator.py:126(<genexpr>)
1 0.000 0.000 0.000 0.000 optimizer.py:167(add_param_group)
1 0.000 0.000 0.000 0.000 threading.py:757(__init__)
1 0.000 0.000 0.000 0.000 wavefunction.py:468(<listcomp>)
24 0.000 0.000 0.000 0.000 {built-in method posix.getpid}
1 0.000 0.000 0.000 0.000 _tqdm.py:424(_get_free_pos)
56 0.000 0.000 0.000 0.000 threading.py:506(is_set)
1 0.000 0.000 0.000 0.000 _monitor.py:31(__init__)
1 0.000 0.000 0.000 0.000 optimizer.py:25(__init__)
55 0.000 0.000 0.000 0.000 {method 'append' of 'collections.deque' objects}
1 0.000 0.000 0.000 0.000 {method 'acquire' of '_multiprocessing.SemLock' objects}
1 0.000 0.000 0.000 0.000 {built-in method math.ceil}
1 0.000 0.000 0.000 0.000 _tqdm.py:97(acquire)
7 0.000 0.000 0.000 0.000 threading.py:251(_acquire_restore)
15 0.000 0.000 0.000 0.000 {built-in method _thread.allocate_lock}
1 0.000 0.000 0.000 0.000 _tqdm.py:641(__init__)
1 0.000 0.000 0.000 0.000 threading.py:828(start)
1 0.000 0.000 0.000 0.000 _tqdm.py:101(release)
7 0.000 0.000 0.000 0.000 threading.py:242(__exit__)
1 0.000 0.000 1771.467 1771.467 <string>:2(<module>)
1 0.000 0.000 0.000 0.000 callback_list.py:26(__init__)
1 0.000 0.000 0.000 0.000 sgd.py:51(__init__)
1 0.000 0.000 0.000 0.000 _weakrefset.py:36(__init__)
6 0.000 0.000 0.000 0.000 {method 'copy' of 'dict' objects}
1 0.000 0.000 0.000 0.000 callback_list.py:57(on_train_start)
7 0.000 0.000 0.000 0.000 threading.py:254(_is_owned)
2 0.000 0.000 0.000 0.000 _weakrefset.py:58(__iter__)
6 0.000 0.000 0.000 0.000 {method 'update' of 'dict' objects}
2 0.000 0.000 0.000 0.000 {method 'remove' of 'set' objects}
2 0.000 0.000 0.000 0.000 _tqdm.py:894(_comparable)
7 0.000 0.000 0.000 0.000 threading.py:248(_release_save)
2 0.000 0.000 0.000 0.000 _weakrefset.py:81(add)
6 0.000 0.000 0.000 0.000 unitaries.py:52(<dictcomp>)
2 0.000 0.000 0.000 0.000 _tqdm.py:898(__hash__)
1 0.000 0.000 0.000 0.000 threading.py:727(_newname)
1 0.000 0.000 0.000 0.000 threading.py:1230(current_thread)
1 0.000 0.000 0.000 0.000 _weakrefset.py:26(__exit__)
5 0.000 0.000 0.000 0.000 {method 'setdefault' of 'dict' objects}
7 0.000 0.000 0.000 0.000 {method 'release' of '_thread.lock' objects}
7 0.000 0.000 0.000 0.000 {method '__exit__' of '_thread.lock' objects}
1 0.000 0.000 0.000 0.000 callback_list.py:61(on_train_end)
1 0.000 0.000 0.000 0.000 _tqdm.py:427(<genexpr>)
1 0.000 0.000 0.000 0.000 _utils.py:129(__eq__)
1 0.000 0.000 0.000 0.000 threading.py:1136(daemon)
1 0.000 0.000 0.000 0.000 _weakrefset.py:106(remove)
1 0.000 0.000 0.000 0.000 _tqdm.py:105(__enter__)
1 0.000 0.000 0.000 0.000 _tqdm.py:108(__exit__)
1 0.000 0.000 0.000 0.000 _tqdm.py:882(__del__)
1 0.000 0.000 0.000 0.000 threading.py:1120(daemon)
1 0.000 0.000 0.000 0.000 _weakrefset.py:16(__init__)
1 0.000 0.000 0.000 0.000 {method 'difference' of 'set' objects}
1 0.000 0.000 0.000 0.000 {method 'isdisjoint' of 'set' objects}
1 0.000 0.000 0.000 0.000 {built-in method __new__ of type object at 0x55725231c660}
2 0.000 0.000 0.000 0.000 {built-in method builtins.abs}
1 0.000 0.000 0.000 0.000 {built-in method builtins.min}
6 0.000 0.000 0.000 0.000 {built-in method _imp.lock_held}
1 0.000 0.000 0.000 0.000 {method 'acquire' of '_thread.RLock' objects}
7 0.000 0.000 0.000 0.000 {method '__enter__' of '_thread.lock' objects}
1 0.000 0.000 0.000 0.000 _tqdm.py:1076(close)
1 0.000 0.000 0.000 0.000 callback.py:24(on_train_start)
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
1 0.000 0.000 0.000 0.000 _weakrefset.py:20(__enter__)
1 0.000 0.000 0.000 0.000 _weakrefset.py:52(_commit_removals)
1 0.000 0.000 0.000 0.000 {built-in method _thread.get_ident}
1 0.000 0.000 0.000 0.000 {method 'release' of '_thread.RLock' objects}
1 0.000 0.000 0.000 0.000 callback.py:32(on_train_end)
1 0.000 0.000 0.000 0.000 {method 'release' of '_multiprocessing.SemLock' objects}
75707835 function calls in 1534.099 seconds
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
2880768 509.729 0.000 546.561 0.000 cplx.py:70(scalar_mult)
300000 95.105 0.000 1432.914 0.005 complex_wavefunction.py:131(gradient)
1920876 70.518 0.000 273.030 0.000 binary_rbm.py:90(effective_energy)
1938876 66.010 0.000 66.010 0.000 {built-in method addmm}
1 62.237 62.237 1534.088 1534.088 quantum_reconstruction.py:96(fit)
4320768 55.551 0.000 55.551 0.000 {built-in method zeros_like}
1038000 54.146 0.000 54.146 0.000 {built-in method einsum}
480000 47.903 0.000 237.484 0.000 cplx.py:242(scalar_divide)
480216 41.070 0.000 387.393 0.001 complex_wavefunction.py:111(psi)
960000 40.638 0.000 52.915 0.000 cplx.py:41(make_complex)
1026000 37.748 0.000 229.271 0.000 binary_rbm.py:116(effective_energy_gradient)
1920876 36.891 0.000 36.891 0.000 {method 'sum' of 'torch._C._TensorBase' objects}
1920876 36.069 0.000 36.069 0.000 {built-in method mv}
1026000 34.793 0.000 34.793 0.000 {built-in method cat}
1020000 31.990 0.000 31.990 0.000 {method 'matmul' of 'torch._C._TensorBase' objects}
1920876 29.987 0.000 29.987 0.000 {built-in method torch._C._nn.softplus}
2653290 29.619 0.000 29.619 0.000 {built-in method zeros}
5034864 25.312 0.000 25.312 0.000 {method 'view' of 'torch._C._TensorBase' objects}
2964876 23.534 0.000 23.534 0.000 {method 't' of 'torch._C._TensorBase' objects}
2958876 20.134 0.000 142.448 0.000 functional.py:1010(linear)
240198 18.400 0.000 20.621 0.000 complex_wavefunction.py:206(generate_Hilbert_space)
36000 17.020 0.000 17.020 0.000 {built-in method prod}
960432 16.346 0.000 154.283 0.000 complex_wavefunction.py:96(phase)
1038000 15.727 0.000 15.727 0.000 {built-in method sigmoid}
960432 14.262 0.000 172.945 0.000 complex_wavefunction.py:80(amplitude)
480409 14.177 0.000 14.177 0.000 {built-in method tensor}
6000 12.421 0.002 1449.354 0.242 quantum_reconstruction.py:52(compute_batch_gradients)
486396 12.184 0.000 12.184 0.000 {method 'to' of 'torch._C._TensorBase' objects}
960444 12.035 0.000 12.035 0.000 {method 'exp' of 'torch._C._TensorBase' objects}
960456 11.558 0.000 11.558 0.000 {method 'sqrt' of 'torch._C._TensorBase' objects}
480216 6.273 0.000 6.273 0.000 {method 'cos' of 'torch._C._TensorBase' objects}
1032000 6.134 0.000 81.442 0.000 binary_rbm.py:153(prob_h_given_v)
480216 6.133 0.000 6.133 0.000 {method 'sin' of 'torch._C._TensorBase' objects}
7838628 4.607 0.000 4.607 0.000 module.py:504(__getattr__)
1026000 4.113 0.000 56.203 0.000 convert_parameters.py:4(parameters_to_vector)
12000 2.617 0.000 20.352 0.002 gradients_utils.py:23(vector_to_grads)
3078000 2.399 0.000 3.722 0.000 convert_parameters.py:56(_check_param_device)
2953746 1.602 0.000 1.602 0.000 {method 'size' of 'torch._C._TensorBase' objects}
3114000 1.350 0.000 1.350 0.000 {method 'get_device' of 'torch._C._TensorBase' objects}
4869460 1.269 0.000 1.271 0.000 {built-in method builtins.len}
2959698 0.829 0.000 0.829 0.000 {method 'dim' of 'torch._C._TensorBase' objects}
3918199 0.734 0.000 0.734 0.000 {method 'append' of 'list' objects}
36000 0.520 0.000 0.520 0.000 {method 'add_' of 'torch._C._TensorBase' objects}
12000 0.477 0.000 0.477 0.000 {method 'bernoulli' of 'torch._C._TensorBase' objects}
6300 0.404 0.000 0.404 0.000 {built-in method randperm}
35994 0.349 0.000 0.349 0.000 {method 'zero_' of 'torch._C._TensorBase' objects}
480432 0.216 0.000 0.216 0.000 {built-in method builtins.divmod}
48008 0.178 0.000 0.276 0.000 module.py:740(named_parameters)
582 0.100 0.000 0.108 0.000 cplx.py:124(inner_prod)
6000 0.090 0.000 0.448 0.000 optimizer.py:150(zero_grad)
6000 0.083 0.000 0.604 0.000 sgd.py:71(step)
48 0.059 0.001 0.394 0.008 training_statistics.py:35(rotate_psi)
6000 0.057 0.000 1.585 0.000 complex_wavefunction.py:193(sample)
36000 0.045 0.000 0.071 0.000 gradients_utils.py:53(_check_param_device)
6000 0.040 0.000 0.470 0.000 binary_rbm.py:139(prob_v_given_h)
48008 0.035 0.000 0.311 0.000 module.py:721(parameters)
72018 0.030 0.000 0.045 0.000 tensor.py:384(__hash__)
12002 0.026 0.000 0.030 0.000 module.py:785(named_children)
300 0.024 0.000 0.024 0.000 quantum_reconstruction.py:145(<listcomp>)
6 0.022 0.004 0.537 0.090 training_statistics.py:72(KL)
36009 0.018 0.000 0.030 0.000 {method 'add' of 'set' objects}
6000 0.015 0.000 0.017 0.000 callback_list.py:79(on_batch_end)
72020 0.015 0.000 0.015 0.000 {built-in method builtins.id}
6000 0.014 0.000 0.825 0.000 binary_rbm.py:181(sample_h_given_v)
6000 0.012 0.000 0.012 0.000 complex_wavefunction.py:72(set_visible_layer)
6000 0.011 0.000 0.703 0.000 binary_rbm.py:167(sample_v_given_h)
1 0.010 0.010 1534.099 1534.099 <string>:2(<module>)
12002 0.010 0.000 0.010 0.000 {built-in method builtins.getattr}
24004 0.009 0.000 0.009 0.000 {method 'items' of 'collections.OrderedDict' objects}
480 0.008 0.000 0.008 0.000 {method 'item' of 'torch._C._TensorBase' objects}
35994 0.008 0.000 0.008 0.000 {method 'detach_' of 'torch._C._TensorBase' objects}
6000 0.006 0.000 0.008 0.000 callback_list.py:75(on_batch_start)
6 0.006 0.001 0.032 0.005 training_statistics.py:25(fidelity)
12025 0.005 0.000 0.005 0.000 {built-in method builtins.isinstance}
288 0.004 0.000 0.004 0.000 {method 'log' of 'torch._C._TensorBase' objects}
582 0.003 0.000 0.111 0.000 cplx.py:272(norm)
12 0.002 0.000 0.002 0.000 {method 'logsumexp' of 'torch._C._TensorBase' objects}
300 0.002 0.000 0.002 0.000 quantum_reconstruction.py:150(<listcomp>)
300 0.002 0.000 0.571 0.002 metric_evaluator.py:80(on_epoch_end)
6000 0.002 0.000 0.002 0.000 callback.py:72(on_batch_end)
312 0.002 0.000 0.002 0.000 {method 'numpy' of 'torch._C._TensorBase' objects}
822 0.002 0.000 0.002 0.000 tensor.py:368(__len__)
6000 0.001 0.000 0.001 0.000 callback.py:60(on_batch_start)
312 0.001 0.000 0.001 0.000 {method 'cpu' of 'torch._C._TensorBase' objects}
300 0.001 0.000 0.572 0.002 callback_list.py:71(on_epoch_end)
312 0.001 0.000 0.003 0.000 tensor.py:395(__array__)
300 0.001 0.000 0.001 0.000 callback_list.py:67(on_epoch_start)
6 0.000 0.000 0.001 0.000 unitaries.py:23(create_dict)
12 0.000 0.000 0.005 0.000 binary_rbm.py:195(compute_partition_function)
301 0.000 0.000 0.000 0.000 _tqdm.py:901(__iter__)
7 0.000 0.000 0.000 0.000 {method 'acquire' of '_thread.lock' objects}
300 0.000 0.000 0.000 0.000 callback.py:40(on_epoch_start)
1 0.000 0.000 1534.099 1534.099 {built-in method builtins.exec}
12 0.000 0.000 0.005 0.000 complex_wavefunction.py:224(compute_normalization)
1 0.000 0.000 0.000 0.000 {built-in method _thread.start_new_thread}
12 0.000 0.000 0.000 0.000 {built-in method from_numpy}
3 0.000 0.000 0.000 0.000 socket.py:334(send)
1 0.000 0.000 0.000 0.000 _tqdm.py:401(__new__)
1 0.000 0.000 0.000 0.000 optimizer.py:167(add_param_group)
12 0.000 0.000 0.000 0.000 tensor.py:403(__array_wrap__)
1 0.000 0.000 0.000 0.000 _tqdm.py:424(_get_free_pos)
1 0.000 0.000 0.000 0.000 threading.py:757(__init__)
1 0.000 0.000 0.000 0.000 _monitor.py:31(__init__)
2 0.000 0.000 0.000 0.000 threading.py:215(__init__)
1 0.000 0.000 0.000 0.000 threading.py:263(wait)
1 0.000 0.000 0.000 0.000 {built-in method builtins.print}
1 0.000 0.000 0.000 0.000 optimizer.py:25(__init__)
2 0.000 0.000 0.000 0.000 iostream.py:313(_schedule_flush)
3 0.000 0.000 0.000 0.000 iostream.py:195(schedule)
1 0.000 0.000 0.000 0.000 {method 'acquire' of '_multiprocessing.SemLock' objects}
1 0.000 0.000 0.000 0.000 _tqdm.py:97(acquire)
1 0.000 0.000 0.000 0.000 _tqdm.py:641(__init__)
1 0.000 0.000 0.000 0.000 threading.py:828(start)
1 0.000 0.000 0.000 0.000 sgd.py:51(__init__)
2 0.000 0.000 0.000 0.000 iostream.py:366(write)
6 0.000 0.000 0.000 0.000 {method 'copy' of 'dict' objects}
1 0.000 0.000 0.000 0.000 callback_list.py:26(__init__)
1 0.000 0.000 0.000 0.000 {built-in method math.ceil}
1 0.000 0.000 0.000 0.000 threading.py:533(wait)
2 0.000 0.000 0.000 0.000 _weakrefset.py:58(__iter__)
1 0.000 0.000 0.000 0.000 _tqdm.py:101(release)
1 0.000 0.000 0.000 0.000 _tqdm.py:427(<genexpr>)
2 0.000 0.000 0.000 0.000 threading.py:498(__init__)
3 0.000 0.000 0.000 0.000 threading.py:1104(is_alive)
2 0.000 0.000 0.000 0.000 _weakrefset.py:81(add)
1 0.000 0.000 0.000 0.000 callback_list.py:59(on_train_start)
2 0.000 0.000 0.000 0.000 _tqdm.py:894(_comparable)
2 0.000 0.000 0.000 0.000 iostream.py:300(_is_master_process)
1 0.000 0.000 0.000 0.000 threading.py:239(__enter__)
1 0.000 0.000 0.000 0.000 threading.py:242(__exit__)
3 0.000 0.000 0.000 0.000 threading.py:1062(_wait_for_tstate_lock)
1 0.000 0.000 0.000 0.000 threading.py:1230(current_thread)
1 0.000 0.000 0.000 0.000 _weakrefset.py:26(__exit__)
1 0.000 0.000 0.000 0.000 _weakrefset.py:36(__init__)
2 0.000 0.000 0.000 0.000 {method 'remove' of 'set' objects}
1 0.000 0.000 0.000 0.000 _tqdm.py:882(__del__)
3 0.000 0.000 0.000 0.000 iostream.py:93(_event_pipe)
1 0.000 0.000 0.000 0.000 threading.py:251(_acquire_restore)
1 0.000 0.000 0.000 0.000 threading.py:727(_newname)
1 0.000 0.000 0.000 0.000 _weakrefset.py:20(__enter__)
5 0.000 0.000 0.000 0.000 {method 'setdefault' of 'dict' objects}
7 0.000 0.000 0.000 0.000 {method 'items' of 'dict' objects}
2 0.000 0.000 0.000 0.000 {built-in method posix.getpid}
2 0.000 0.000 0.000 0.000 _tqdm.py:898(__hash__)
1 0.000 0.000 0.000 0.000 _utils.py:129(__eq__)
1 0.000 0.000 0.000 0.000 threading.py:254(_is_owned)
1 0.000 0.000 0.000 0.000 threading.py:248(_release_save)
5 0.000 0.000 0.000 0.000 threading.py:506(is_set)
1 0.000 0.000 0.000 0.000 threading.py:1136(daemon)
1 0.000 0.000 0.000 0.000 _weakrefset.py:16(__init__)
1 0.000 0.000 0.000 0.000 _weakrefset.py:52(_commit_removals)
1 0.000 0.000 0.000 0.000 _weakrefset.py:106(remove)
1 0.000 0.000 0.000 0.000 {method 'difference' of 'set' objects}
2 0.000 0.000 0.000 0.000 {built-in method builtins.abs}
1 0.000 0.000 0.000 0.000 {built-in method builtins.min}
3 0.000 0.000 0.000 0.000 {built-in method _thread.allocate_lock}
1 0.000 0.000 0.000 0.000 {method 'acquire' of '_thread.RLock' objects}
1 0.000 0.000 0.000 0.000 {method '__exit__' of '_thread.lock' objects}
2 0.000 0.000 0.000 0.000 {built-in method time.time}
1 0.000 0.000 0.000 0.000 _tqdm.py:105(__enter__)
1 0.000 0.000 0.000 0.000 _tqdm.py:108(__exit__)
1 0.000 0.000 0.000 0.000 _tqdm.py:1076(close)
1 0.000 0.000 0.000 0.000 {method 'release' of '_multiprocessing.SemLock' objects}
1 0.000 0.000 0.000 0.000 threading.py:1120(daemon)
1 0.000 0.000 0.000 0.000 {method 'isdisjoint' of 'set' objects}
1 0.000 0.000 0.000 0.000 {built-in method __new__ of type object at 0x55ccb67e4660}
1 0.000 0.000 0.000 0.000 {built-in method _thread.get_ident}
1 0.000 0.000 0.000 0.000 {method 'release' of '_thread.RLock' objects}
1 0.000 0.000 0.000 0.000 {method 'release' of '_thread.lock' objects}
1 0.000 0.000 0.000 0.000 {method '__enter__' of '_thread.lock' objects}
4 0.000 0.000 0.000 0.000 {method 'append' of 'collections.deque' objects}
1 0.000 0.000 0.000 0.000 callback.py:24(on_train_start)
1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment