コード例 #1
0
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(self, ['row', 'col', 'dimension'])
コード例 #2
0
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(self, ['_mixture', '_key'])
コード例 #3
0
ファイル: noise_model.py プロジェクト: PWJ1900/Rlearncirq
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(self, [])
コード例 #4
0
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(self, ['gate', 'qubits'])
コード例 #5
0
ファイル: pauli_string.py プロジェクト: nipingxiang/Cirq
 def _json_dict_(self):
     return protocols.obj_to_dict_helper(self, ['pauli', 'qubit'])
コード例 #6
0
ファイル: calibration_layer.py プロジェクト: wodaka/Cirq
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(
         self, ['calibration_type', 'program', 'args'])
コード例 #7
0
 def _json_dict_(self):
     return protocols.obj_to_dict_helper(self, attribute_names=[])
コード例 #8
0
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(
         self, ['col_offset', 'vertical', 'stagger'])
コード例 #9
0
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(
         self, ['n', 'G', 'F', 'M', 'gamma', 'v', 's', 'omega'])
コード例 #10
0
ファイル: quantum_runtime.py プロジェクト: towynlin/Cirq
 def _json_dict_(self) -> Dict[str, Any]:
     # TODO (gh-4699): serialize `device` as well once SerializableDevice is serializable.
     return obj_to_dict_helper(self, attribute_names=['run_id'])
コード例 #11
0
ファイル: permutation_gate.py プロジェクト: iqm-finland/Cirq
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(self,
                                         attribute_names=['permutation'])
コード例 #12
0
ファイル: grid_qubit.py プロジェクト: qfizik/Cirq
 def _json_dict_(self):
     return protocols.obj_to_dict_helper(self, ['row', 'col'])
コード例 #13
0
 def _json_dict_(self):
     return protocols.obj_to_dict_helper(self, ['n', 'rs', 'xs', 'zs'])
コード例 #14
0
 def _json_dict_(self):
     # Descendants should be singletons determined solely by the class name.
     # Otherwise, you must override this method.
     return protocols.obj_to_dict_helper(self, ['eigenvalue'])
コード例 #15
0
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(self, ['sub_operation', 'tags'])
コード例 #16
0
ファイル: noise_model.py プロジェクト: vanwelsenes/Cirq
 def _json_dict_(self):
     return protocols.obj_to_dict_helper(self, [])
コード例 #17
0
 def _json_dict_(self):
     return protocols.obj_to_dict_helper(self, ['eps', 'kappa'])
コード例 #18
0
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(self, ['error_probabilities'])
コード例 #19
0
 def _json_dict_(self):
     return protocols.obj_to_dict_helper(self, ['qubit', 'dimension'])
コード例 #20
0
 def _json_dict_(self) -> Dict[str, Any]:
     if self._n_qubits == 1:
         return protocols.obj_to_dict_helper(self, ['p'])
     return protocols.obj_to_dict_helper(self, ['p', 'n_qubits'])
コード例 #21
0
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(self,
                                         attribute_names=["gate", "qubits"])
コード例 #22
0
 def _json_dict_(self):
     return protocols.obj_to_dict_helper(
         self, ['axis_phase_exponent', 'x_exponent', 'z_exponent'])
コード例 #23
0
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(self, ['exponent', 'global_shift'])
コード例 #24
0
ファイル: fsim_gate.py プロジェクト: fmozafari/Cirq
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(
         self, ['theta', 'zeta', 'chi', 'gamma', 'phi'])
コード例 #25
0
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(self, ['n', 'rs', 'xs', 'zs'])
コード例 #26
0
ファイル: dense_pauli_string.py プロジェクト: towynlin/Cirq
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(self,
                                         ['pauli_mask', 'coefficient'])
コード例 #27
0
ファイル: pauli_string_phasor.py プロジェクト: towynlin/Cirq
 def _json_dict_(self):
     return protocols.obj_to_dict_helper(
         self, ['dense_pauli_string', 'exponent_neg', 'exponent_pos'])
コード例 #28
0
ファイル: moment.py プロジェクト: sjuvekar/Cirq
 def _json_dict_(self):
     return protocols.obj_to_dict_helper(self, ['operations'])
コード例 #29
0
ファイル: noise_model.py プロジェクト: PWJ1900/Rlearncirq
 def _json_dict_(self):
     return protocols.obj_to_dict_helper(self, ['qubit_noise_gate'])
コード例 #30
0
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(self, ['sub_gate', 'probability'])