예제 #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
 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
 def _json_dict_(self):
     return protocols.obj_to_dict_helper(self, ['pauli', 'qubit'])
예제 #6
0
 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=[])
 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
 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
 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
 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
 def _json_dict_(self) -> Dict[str, Any]:
     return protocols.obj_to_dict_helper(self,
                                         ['pauli_mask', 'coefficient'])
예제 #27
0
 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
 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'])