/dports/science/py-cirq-pasqal/Cirq-0.13.1/cirq-core/cirq/testing/ |
H A D | random_circuit_test.py | 86 assert circuit.all_qubits().issubset(qubit_set) 116 assert len(circuit.all_qubits()) == 2 146 assert c[0].qubits == c.all_qubits() 152 assert c[0].qubits == c.all_qubits() 157 assert {b, cirq.NamedQubit('q0')} == c.all_qubits() 159 assert c[0].qubits == c.all_qubits() 163 assert {a, cirq.NamedQubit('q1')} == c.all_qubits() 165 assert c[0].qubits == c.all_qubits() 169 assert c.all_qubits() == {a, b} 171 assert c[0].qubits == c.all_qubits() [all …]
|
H A D | circuit_compare.py | 138 all_qubits = actual.all_qubits().union(reference.all_qubits()) 140 matrix_actual = actual.unitary(qubits_that_should_be_present=all_qubits) 141 matrix_reference = reference.unitary(qubits_that_should_be_present=all_qubits) 143 n_qubits = len(all_qubits)
|
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-core/cirq/testing/ |
H A D | random_circuit_test.py | 86 assert circuit.all_qubits().issubset(qubit_set) 116 assert len(circuit.all_qubits()) == 2 146 assert c[0].qubits == c.all_qubits() 152 assert c[0].qubits == c.all_qubits() 157 assert {b, cirq.NamedQubit('q0')} == c.all_qubits() 159 assert c[0].qubits == c.all_qubits() 163 assert {a, cirq.NamedQubit('q1')} == c.all_qubits() 165 assert c[0].qubits == c.all_qubits() 169 assert c.all_qubits() == {a, b} 171 assert c[0].qubits == c.all_qubits() [all …]
|
H A D | circuit_compare.py | 138 all_qubits = actual.all_qubits().union(reference.all_qubits()) 140 matrix_actual = actual.unitary(qubits_that_should_be_present=all_qubits) 141 matrix_reference = reference.unitary(qubits_that_should_be_present=all_qubits) 143 n_qubits = len(all_qubits)
|
/dports/science/py-cirq-core/Cirq-0.13.1/cirq-core/cirq/testing/ |
H A D | random_circuit_test.py | 86 assert circuit.all_qubits().issubset(qubit_set) 116 assert len(circuit.all_qubits()) == 2 146 assert c[0].qubits == c.all_qubits() 152 assert c[0].qubits == c.all_qubits() 157 assert {b, cirq.NamedQubit('q0')} == c.all_qubits() 159 assert c[0].qubits == c.all_qubits() 163 assert {a, cirq.NamedQubit('q1')} == c.all_qubits() 165 assert c[0].qubits == c.all_qubits() 169 assert c.all_qubits() == {a, b} 171 assert c[0].qubits == c.all_qubits() [all …]
|
H A D | circuit_compare.py | 138 all_qubits = actual.all_qubits().union(reference.all_qubits()) 140 matrix_actual = actual.unitary(qubits_that_should_be_present=all_qubits) 141 matrix_reference = reference.unitary(qubits_that_should_be_present=all_qubits) 143 n_qubits = len(all_qubits)
|
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-core/cirq/testing/ |
H A D | random_circuit_test.py | 86 assert circuit.all_qubits().issubset(qubit_set) 116 assert len(circuit.all_qubits()) == 2 146 assert c[0].qubits == c.all_qubits() 152 assert c[0].qubits == c.all_qubits() 157 assert {b, cirq.NamedQubit('q0')} == c.all_qubits() 159 assert c[0].qubits == c.all_qubits() 163 assert {a, cirq.NamedQubit('q1')} == c.all_qubits() 165 assert c[0].qubits == c.all_qubits() 169 assert c.all_qubits() == {a, b} 171 assert c[0].qubits == c.all_qubits() [all …]
|
H A D | circuit_compare.py | 138 all_qubits = actual.all_qubits().union(reference.all_qubits()) 140 matrix_actual = actual.unitary(qubits_that_should_be_present=all_qubits) 141 matrix_reference = reference.unitary(qubits_that_should_be_present=all_qubits) 143 n_qubits = len(all_qubits)
|
/dports/science/py-cirq-aqt/Cirq-0.12.0/cirq-core/cirq/testing/ |
H A D | random_circuit_test.py | 86 assert circuit.all_qubits().issubset(qubit_set) 116 assert len(circuit.all_qubits()) == 2 146 assert c[0].qubits == c.all_qubits() 152 assert c[0].qubits == c.all_qubits() 157 assert {b, cirq.NamedQubit('q0')} == c.all_qubits() 159 assert c[0].qubits == c.all_qubits() 163 assert {a, cirq.NamedQubit('q1')} == c.all_qubits() 165 assert c[0].qubits == c.all_qubits() 169 assert c.all_qubits() == {a, b} 171 assert c[0].qubits == c.all_qubits() [all …]
|
H A D | circuit_compare.py | 138 all_qubits = actual.all_qubits().union(reference.all_qubits()) 140 matrix_actual = actual.unitary(qubits_that_should_be_present=all_qubits) 141 matrix_reference = reference.unitary(qubits_that_should_be_present=all_qubits) 143 n_qubits = len(all_qubits)
|
/dports/science/py-cirq-core/Cirq-0.13.1/cirq-core/cirq/contrib/quimb/ |
H A D | density_matrix.py | 25 qubits: Union[cirq.Qid, Tuple[cirq.Qid, ...]], all_qubits: Tuple[cirq.Qid, ...] 38 return _qpos_y((qubits,), all_qubits) 40 pos = [all_qubits.index(q) for q in qubits] 42 return len(all_qubits) - x - 1 50 all_qubits: Tuple[cirq.Qid, ...], 72 qy = _qpos_y(qubits, all_qubits) 108 qubits = sorted(circuit.all_qubits()) 127 all_qubits=qubits, 211 qubits = sorted(circuit.all_qubits())
|
H A D | state_vector.py | 59 qubits = sorted(circuit.all_qubits()) # coverage: ignore 95 qubits = sorted(circuit.all_qubits()) 110 qubits = sorted(circuit.all_qubits()) 153 qubits = sorted(circuit_sand.all_qubits())
|
/dports/science/py-cirq-pasqal/Cirq-0.13.1/cirq-core/cirq/contrib/quimb/ |
H A D | density_matrix.py | 25 qubits: Union[cirq.Qid, Tuple[cirq.Qid, ...]], all_qubits: Tuple[cirq.Qid, ...] 38 return _qpos_y((qubits,), all_qubits) 40 pos = [all_qubits.index(q) for q in qubits] 42 return len(all_qubits) - x - 1 50 all_qubits: Tuple[cirq.Qid, ...], 72 qy = _qpos_y(qubits, all_qubits) 108 qubits = sorted(circuit.all_qubits()) 127 all_qubits=qubits, 211 qubits = sorted(circuit.all_qubits())
|
H A D | state_vector.py | 59 qubits = sorted(circuit.all_qubits()) # coverage: ignore 95 qubits = sorted(circuit.all_qubits()) 110 qubits = sorted(circuit.all_qubits()) 153 qubits = sorted(circuit_sand.all_qubits())
|
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-core/cirq/contrib/quimb/ |
H A D | density_matrix.py | 25 qubits: Union[cirq.Qid, Tuple[cirq.Qid, ...]], all_qubits: Tuple[cirq.Qid, ...] 38 return _qpos_y((qubits,), all_qubits) 40 pos = [all_qubits.index(q) for q in qubits] 42 return len(all_qubits) - x - 1 50 all_qubits: Tuple[cirq.Qid, ...], 72 qy = _qpos_y(qubits, all_qubits) 108 qubits = sorted(circuit.all_qubits()) 127 all_qubits=qubits, 211 qubits = sorted(circuit.all_qubits())
|
H A D | state_vector.py | 59 qubits = sorted(circuit.all_qubits()) # coverage: ignore 95 qubits = sorted(circuit.all_qubits()) 110 qubits = sorted(circuit.all_qubits()) 153 qubits = sorted(circuit_sand.all_qubits())
|
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-core/cirq/contrib/quimb/ |
H A D | density_matrix.py | 25 qubits: Union[cirq.Qid, Tuple[cirq.Qid, ...]], all_qubits: Tuple[cirq.Qid, ...] 38 return _qpos_y((qubits,), all_qubits) 40 pos = [all_qubits.index(q) for q in qubits] 42 return len(all_qubits) - x - 1 50 all_qubits: Tuple[cirq.Qid, ...], 72 qy = _qpos_y(qubits, all_qubits) 108 qubits = sorted(circuit.all_qubits()) 127 all_qubits=qubits, 211 qubits = sorted(circuit.all_qubits())
|
H A D | state_vector.py | 59 qubits = sorted(circuit.all_qubits()) # coverage: ignore 95 qubits = sorted(circuit.all_qubits()) 110 qubits = sorted(circuit.all_qubits()) 153 qubits = sorted(circuit_sand.all_qubits())
|
/dports/science/py-cirq-aqt/Cirq-0.12.0/cirq-core/cirq/optimizers/ |
H A D | two_qubit_to_fsim_test.py | 117 assert set(c.all_qubits()) == set(cirq.LineQubit.range(2)) 121 assert set(c.all_qubits()) == set(cirq.LineQubit.range(2)) 125 assert set(c.all_qubits()) == set(cirq.LineQubit.range(20, 22)) 131 assert set(c.all_qubits()) == set(cirq.LineQubit.range(10, 12)) 137 assert set(c.all_qubits()) == set(cirq.LineQubit.range(10, 12))
|
/dports/science/py-cirq-core/Cirq-0.13.1/cirq-core/cirq/optimizers/ |
H A D | two_qubit_to_fsim_test.py | 117 assert set(c.all_qubits()) == set(cirq.LineQubit.range(2)) 121 assert set(c.all_qubits()) == set(cirq.LineQubit.range(2)) 125 assert set(c.all_qubits()) == set(cirq.LineQubit.range(20, 22)) 131 assert set(c.all_qubits()) == set(cirq.LineQubit.range(10, 12)) 137 assert set(c.all_qubits()) == set(cirq.LineQubit.range(10, 12))
|
/dports/science/py-cirq-pasqal/Cirq-0.13.1/cirq-core/cirq/optimizers/ |
H A D | two_qubit_to_fsim_test.py | 117 assert set(c.all_qubits()) == set(cirq.LineQubit.range(2)) 121 assert set(c.all_qubits()) == set(cirq.LineQubit.range(2)) 125 assert set(c.all_qubits()) == set(cirq.LineQubit.range(20, 22)) 131 assert set(c.all_qubits()) == set(cirq.LineQubit.range(10, 12)) 137 assert set(c.all_qubits()) == set(cirq.LineQubit.range(10, 12))
|
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-core/cirq/optimizers/ |
H A D | two_qubit_to_fsim_test.py | 117 assert set(c.all_qubits()) == set(cirq.LineQubit.range(2)) 121 assert set(c.all_qubits()) == set(cirq.LineQubit.range(2)) 125 assert set(c.all_qubits()) == set(cirq.LineQubit.range(20, 22)) 131 assert set(c.all_qubits()) == set(cirq.LineQubit.range(10, 12)) 137 assert set(c.all_qubits()) == set(cirq.LineQubit.range(10, 12))
|
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-core/cirq/optimizers/ |
H A D | two_qubit_to_fsim_test.py | 117 assert set(c.all_qubits()) == set(cirq.LineQubit.range(2)) 121 assert set(c.all_qubits()) == set(cirq.LineQubit.range(2)) 125 assert set(c.all_qubits()) == set(cirq.LineQubit.range(20, 22)) 131 assert set(c.all_qubits()) == set(cirq.LineQubit.range(10, 12)) 137 assert set(c.all_qubits()) == set(cirq.LineQubit.range(10, 12))
|
/dports/science/py-cirq-aqt/Cirq-0.12.0/cirq-core/cirq/contrib/quimb/ |
H A D | state_vector.py | 57 qubits = sorted(circuit.all_qubits()) # coverage: ignore 92 qubits = sorted(circuit.all_qubits()) 107 qubits = sorted(circuit.all_qubits()) 150 qubits = sorted(circuit_sand.all_qubits())
|
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-ionq/cirq_ionq/ |
H A D | serializer.py | 83 num_qubits = self._validate_qubits(circuit.all_qubits()) 102 def _validate_qubits(self, all_qubits: Collection['cirq.Qid']) -> int: 104 if any(not isinstance(q, line_qubit.LineQubit) for q in all_qubits): 108 if any(cast(line_qubit.LineQubit, q).x < 0 for q in all_qubits): 113 num_qubits = cast(line_qubit.LineQubit, max(all_qubits)).x + 1
|