364948bf0bb46f9bc3809bbe0a63d09348994444,qucumber/complex_wavefunction.py,ComplexWavefunction,__init__,#ComplexWavefunction#Any#Any#Any#Any#,30
Before Change
self.networks = ["rbm_am","rbm_ph"]
self.device = self.rbm_am.device
self.unitary_dict = unitary_dict
self.visible_state = torch.zeros(1,self.num_visible,
device=self.rbm_am.device,
dtype=torch.double)
self.hidden_state = torch.zeros(1,self.num_hidden,
device=self.rbm_am.device,
dtype=torch.double)
After Change
self.networks = ["rbm_am", "rbm_ph"]
self.device = self.rbm_am.device
self.unitary_dict = {k: v.to(device=self.device)
for k, v in unitary_dict.items()}
def initialize_parameters(self):
rRandomize the parameters
:math:`\bm{\lambda}=\{\bm{W}^{\bm{\lambda}},
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: PIQuIL/QuCumber
Commit Name: 364948bf0bb46f9bc3809bbe0a63d09348994444
Time: 2018-08-04
Author: emerali@users.noreply.github.com
File Name: qucumber/complex_wavefunction.py
Class Name: ComplexWavefunction
Method Name: __init__
Project Name: PIQuIL/QuCumber
Commit Name: 088b7601d2a21eb092150ae5f4070a8ab52306f3
Time: 2018-08-18
Author: emerali@users.noreply.github.com
File Name: qucumber/observables/pauli.py
Class Name: SigmaX
Method Name: apply
Project Name: PIQuIL/QuCumber
Commit Name: 9a2903dac097a7f3633f6c828533ed385c7159c9
Time: 2019-07-17
Author: emerali@users.noreply.github.com
File Name: qucumber/utils/data.py
Class Name:
Method Name: extract_refbasis_samples