Home
last modified time | relevance | path

Searched refs:_num_qubits_ (Results 1 – 25 of 151) sorted by relevance

1234567

/dports/science/py-cirq-pasqal/Cirq-0.13.1/cirq-core/cirq/ops/
H A Dgate_features.py55 def _num_qubits_(self) -> int: member in SingleQubitGate
65 return isinstance(instance, raw_types.Gate) and instance._num_qubits_() == 2
72 def _num_qubits_(self) -> int: member in TwoQubitGate
82 return isinstance(instance, raw_types.Gate) and instance._num_qubits_() == 3
89 def _num_qubits_(self) -> int: member in ThreeQubitGate
H A Ddiagonal_gate.py82 def _num_qubits_(self): member in DiagonalGate
131 [diag_str] + ['#' + str(i) for i in range(2, self._num_qubits_() + 1)]
151 largest_digit = self._num_qubits_() - (len(bin(index)) - 2)
153 _flip_bit = self._num_qubits_() - bit_flip - 1
182 n = self._num_qubits_()
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-core/cirq/ops/
H A Dgate_features.py55 def _num_qubits_(self) -> int: member in SingleQubitGate
65 return isinstance(instance, raw_types.Gate) and instance._num_qubits_() == 2
72 def _num_qubits_(self) -> int: member in TwoQubitGate
82 return isinstance(instance, raw_types.Gate) and instance._num_qubits_() == 3
89 def _num_qubits_(self) -> int: member in ThreeQubitGate
H A Ddiagonal_gate.py82 def _num_qubits_(self): member in DiagonalGate
131 [diag_str] + ['#' + str(i) for i in range(2, self._num_qubits_() + 1)]
151 largest_digit = self._num_qubits_() - (len(bin(index)) - 2)
153 _flip_bit = self._num_qubits_() - bit_flip - 1
182 n = self._num_qubits_()
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-core/cirq/ops/
H A Dgate_features.py55 def _num_qubits_(self) -> int: member in SingleQubitGate
65 return isinstance(instance, raw_types.Gate) and instance._num_qubits_() == 2
72 def _num_qubits_(self) -> int: member in TwoQubitGate
82 return isinstance(instance, raw_types.Gate) and instance._num_qubits_() == 3
89 def _num_qubits_(self) -> int: member in ThreeQubitGate
H A Ddiagonal_gate.py82 def _num_qubits_(self): member in DiagonalGate
131 [diag_str] + ['#' + str(i) for i in range(2, self._num_qubits_() + 1)]
151 largest_digit = self._num_qubits_() - (len(bin(index)) - 2)
153 _flip_bit = self._num_qubits_() - bit_flip - 1
182 n = self._num_qubits_()
/dports/science/py-cirq-core/Cirq-0.13.1/cirq-core/cirq/ops/
H A Dgate_features.py55 def _num_qubits_(self) -> int: member in SingleQubitGate
65 return isinstance(instance, raw_types.Gate) and instance._num_qubits_() == 2
72 def _num_qubits_(self) -> int: member in TwoQubitGate
82 return isinstance(instance, raw_types.Gate) and instance._num_qubits_() == 3
89 def _num_qubits_(self) -> int: member in ThreeQubitGate
H A Ddiagonal_gate.py82 def _num_qubits_(self): member in DiagonalGate
131 [diag_str] + ['#' + str(i) for i in range(2, self._num_qubits_() + 1)]
151 largest_digit = self._num_qubits_() - (len(bin(index)) - 2)
153 _flip_bit = self._num_qubits_() - bit_flip - 1
182 n = self._num_qubits_()
/dports/science/py-cirq-aqt/Cirq-0.12.0/cirq-core/cirq/testing/
H A Dcircuit_compare_test.py315 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.IdentityReturningUnalteredWorkspace
332 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.DifferentEffect
348 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.IgnoreAxisEffect
365 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.SameEffect
392 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.BadExponent
411 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.EffectWithoutUnitary
420 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.NoEffect
441 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.ConsistentGate
448 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.InconsistentGate
455 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.BadShapeGate
[all …]
/dports/science/py-cirq-pasqal/Cirq-0.13.1/cirq-core/cirq/testing/
H A Dcircuit_compare_test.py315 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.IdentityReturningUnalteredWorkspace
332 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.DifferentEffect
348 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.IgnoreAxisEffect
365 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.SameEffect
392 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.BadExponent
411 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.EffectWithoutUnitary
420 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.NoEffect
441 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.ConsistentGate
448 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.InconsistentGate
455 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.BadShapeGate
[all …]
H A Dgate_features.py23 def _num_qubits_(self) -> int: member in TwoQubitGate
30 def _num_qubits_(self) -> int: member in ThreeQubitGate
/dports/science/py-cirq-core/Cirq-0.13.1/cirq-core/cirq/testing/
H A Dcircuit_compare_test.py315 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.IdentityReturningUnalteredWorkspace
332 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.DifferentEffect
348 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.IgnoreAxisEffect
365 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.SameEffect
392 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.BadExponent
411 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.EffectWithoutUnitary
420 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.NoEffect
441 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.ConsistentGate
448 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.InconsistentGate
455 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.BadShapeGate
[all …]
H A Dgate_features.py23 def _num_qubits_(self) -> int: member in TwoQubitGate
30 def _num_qubits_(self) -> int: member in ThreeQubitGate
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-core/cirq/testing/
H A Dcircuit_compare_test.py315 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.IdentityReturningUnalteredWorkspace
332 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.DifferentEffect
348 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.IgnoreAxisEffect
365 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.SameEffect
392 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.BadExponent
411 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.EffectWithoutUnitary
420 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.NoEffect
441 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.ConsistentGate
448 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.InconsistentGate
455 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.BadShapeGate
[all …]
H A Dgate_features.py23 def _num_qubits_(self) -> int: member in TwoQubitGate
30 def _num_qubits_(self) -> int: member in ThreeQubitGate
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-core/cirq/testing/
H A Dcircuit_compare_test.py315 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.IdentityReturningUnalteredWorkspace
332 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.DifferentEffect
348 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.IgnoreAxisEffect
365 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.SameEffect
392 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.BadExponent
411 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.EffectWithoutUnitary
420 def _num_qubits_(self): member in test_assert_has_consistent_apply_unitary.NoEffect
441 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.ConsistentGate
448 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.InconsistentGate
455 def _num_qubits_(self): member in test_assert_has_consistent_qid_shape.BadShapeGate
[all …]
H A Dgate_features.py23 def _num_qubits_(self) -> int: member in TwoQubitGate
30 def _num_qubits_(self) -> int: member in ThreeQubitGate
/dports/science/py-cirq-aqt/Cirq-0.12.0/cirq-core/cirq/ops/
H A Dgate_features.py54 def _num_qubits_(self) -> int: member in SingleQubitGate
61 def _num_qubits_(self) -> int: member in TwoQubitGate
68 def _num_qubits_(self) -> int: member in ThreeQubitGate
H A Ddiagonal_gate.py82 def _num_qubits_(self): member in DiagonalGate
131 [diag_str] + ['#' + str(i) for i in range(2, self._num_qubits_() + 1)]
151 largest_digit = self._num_qubits_() - (len(bin(index)) - 2)
153 _flip_bit = self._num_qubits_() - bit_flip - 1
182 n = self._num_qubits_()
H A Draw_types_test.py100 def _num_qubits_(self): member in ValiGate
154 def _num_qubits_(self): member in test_default_validation_and_inverse.TestGate
188 def _num_qubits_(self): member in test_default_inverse.TestGate
203 def _num_qubits_(self): member in test_no_inverse_if_not_unitary.TestGate
246 def _num_qubits_(self): member in test_gate_shape.QubitGate
275 def _num_qubits_(self): member in test_gate_shape_protocol.NotImplementedGate1
282 def _num_qubits_(self): member in test_gate_shape_protocol.NotImplementedGate2
290 def _num_qubits_(self): member in test_gate_shape_protocol.ShapeGate
297 def _num_qubits_(self): member in test_gate_shape_protocol.QubitGate
344 def _num_qubits_(self): member in test_operation_shape.NumQubitOp
[all …]
/dports/science/py-cirq-pasqal/Cirq-0.13.1/cirq-core/cirq/protocols/
H A Dqid_shape_protocol_test.py26 def _num_qubits_(self): member in test_qid_shape.NumObj
34 def _num_qubits_(self): member in test_qid_shape.NotImplNum
38 def _num_qubits_(self): member in test_qid_shape.NotImplBoth
/dports/science/py-cirq-core/Cirq-0.13.1/cirq-core/cirq/protocols/
H A Dqid_shape_protocol_test.py26 def _num_qubits_(self): member in test_qid_shape.NumObj
34 def _num_qubits_(self): member in test_qid_shape.NotImplNum
38 def _num_qubits_(self): member in test_qid_shape.NotImplBoth
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-core/cirq/protocols/
H A Dqid_shape_protocol_test.py26 def _num_qubits_(self): member in test_qid_shape.NumObj
34 def _num_qubits_(self): member in test_qid_shape.NotImplNum
38 def _num_qubits_(self): member in test_qid_shape.NotImplBoth
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-core/cirq/protocols/
H A Dqid_shape_protocol_test.py26 def _num_qubits_(self): member in test_qid_shape.NumObj
34 def _num_qubits_(self): member in test_qid_shape.NotImplNum
38 def _num_qubits_(self): member in test_qid_shape.NotImplBoth
/dports/science/py-cirq-aqt/Cirq-0.12.0/cirq-core/cirq/protocols/
H A Dqid_shape_protocol_test.py26 def _num_qubits_(self): member in test_qid_shape.NumObj
34 def _num_qubits_(self): member in test_qid_shape.NotImplNum
38 def _num_qubits_(self): member in test_qid_shape.NotImplBoth

1234567