/dports/science/py-cirq-core/Cirq-0.13.1/cirq-core/cirq/ops/ |
H A D | controlled_gate.py | 37 num_controls: int = None, 58 if num_controls is None: 60 num_controls = len(control_values) 64 num_controls = 1 67 if num_controls != len(control_values): 72 if num_controls != len(control_qid_shape): 98 def num_controls(self) -> int: member in ControlledGate 124 qubits[: self.num_controls()], 132 self.num_controls(), 167 self.num_controls(), [all …]
|
H A D | controlled_gate_test.py | 110 assert gate.num_controls() == 1 118 assert gate.num_controls() == 2 128 assert gate.num_controls() == 7 147 assert gate.num_controls() == 2 155 assert gate.num_controls() == 2 239 assert cg.num_controls() == 1 248 cirq.ControlledGate(g, num_controls=1), 254 g.controlled(num_controls=2), 378 cirq.S ** -1, num_controls=4 540 num_controls=1, [all …]
|
H A D | three_qubit_gates.py | 185 num_controls: int = None, 196 if num_controls == 0: 201 num_controls=2, 203 num_controls=num_controls, 473 num_controls: int = None, 484 if num_controls == 0: 489 num_controls=2, 491 num_controls=num_controls, 646 num_controls: int = None, 657 if num_controls == 0: [all …]
|
/dports/science/py-cirq-pasqal/Cirq-0.13.1/cirq-core/cirq/ops/ |
H A D | controlled_gate.py | 37 num_controls: int = None, 58 if num_controls is None: 60 num_controls = len(control_values) 64 num_controls = 1 67 if num_controls != len(control_values): 72 if num_controls != len(control_qid_shape): 98 def num_controls(self) -> int: member in ControlledGate 124 qubits[: self.num_controls()], 132 self.num_controls(), 167 self.num_controls(), [all …]
|
H A D | controlled_gate_test.py | 110 assert gate.num_controls() == 1 118 assert gate.num_controls() == 2 128 assert gate.num_controls() == 7 147 assert gate.num_controls() == 2 155 assert gate.num_controls() == 2 239 assert cg.num_controls() == 1 248 cirq.ControlledGate(g, num_controls=1), 254 g.controlled(num_controls=2), 378 cirq.S ** -1, num_controls=4 540 num_controls=1, [all …]
|
H A D | three_qubit_gates.py | 185 num_controls: int = None, 196 if num_controls == 0: 201 num_controls=2, 203 num_controls=num_controls, 473 num_controls: int = None, 484 if num_controls == 0: 489 num_controls=2, 491 num_controls=num_controls, 646 num_controls: int = None, 657 if num_controls == 0: [all …]
|
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-core/cirq/ops/ |
H A D | controlled_gate.py | 37 num_controls: int = None, 58 if num_controls is None: 60 num_controls = len(control_values) 64 num_controls = 1 67 if num_controls != len(control_values): 72 if num_controls != len(control_qid_shape): 98 def num_controls(self) -> int: member in ControlledGate 124 qubits[: self.num_controls()], 132 self.num_controls(), 167 self.num_controls(), [all …]
|
H A D | controlled_gate_test.py | 110 assert gate.num_controls() == 1 118 assert gate.num_controls() == 2 128 assert gate.num_controls() == 7 147 assert gate.num_controls() == 2 155 assert gate.num_controls() == 2 239 assert cg.num_controls() == 1 248 cirq.ControlledGate(g, num_controls=1), 254 g.controlled(num_controls=2), 378 cirq.S ** -1, num_controls=4 540 num_controls=1, [all …]
|
H A D | three_qubit_gates.py | 185 num_controls: int = None, 196 if num_controls == 0: 201 num_controls=2, 203 num_controls=num_controls, 473 num_controls: int = None, 484 if num_controls == 0: 489 num_controls=2, 491 num_controls=num_controls, 646 num_controls: int = None, 657 if num_controls == 0: [all …]
|
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-core/cirq/ops/ |
H A D | controlled_gate.py | 37 num_controls: int = None, 58 if num_controls is None: 60 num_controls = len(control_values) 64 num_controls = 1 67 if num_controls != len(control_values): 72 if num_controls != len(control_qid_shape): 98 def num_controls(self) -> int: member in ControlledGate 124 qubits[: self.num_controls()], 132 self.num_controls(), 167 self.num_controls(), [all …]
|
H A D | controlled_gate_test.py | 110 assert gate.num_controls() == 1 118 assert gate.num_controls() == 2 128 assert gate.num_controls() == 7 147 assert gate.num_controls() == 2 155 assert gate.num_controls() == 2 239 assert cg.num_controls() == 1 248 cirq.ControlledGate(g, num_controls=1), 254 g.controlled(num_controls=2), 378 cirq.S ** -1, num_controls=4 540 num_controls=1, [all …]
|
H A D | three_qubit_gates.py | 185 num_controls: int = None, 196 if num_controls == 0: 201 num_controls=2, 203 num_controls=num_controls, 473 num_controls: int = None, 484 if num_controls == 0: 489 num_controls=2, 491 num_controls=num_controls, 646 num_controls: int = None, 657 if num_controls == 0: [all …]
|
/dports/science/py-cirq-aqt/Cirq-0.12.0/cirq-core/cirq/ops/ |
H A D | controlled_gate.py | 35 num_controls: int = None, 56 if num_controls is None: 58 num_controls = len(control_values) 62 num_controls = 1 65 if num_controls != len(control_values): 70 if num_controls != len(control_qid_shape): 95 def num_controls(self) -> int: member in ControlledGate 121 qubits[: self.num_controls()], 129 self.num_controls(), 164 self.num_controls(), [all …]
|
H A D | controlled_gate_test.py | 110 assert gate.num_controls() == 1 118 assert gate.num_controls() == 2 128 assert gate.num_controls() == 7 147 assert gate.num_controls() == 2 155 assert gate.num_controls() == 2 239 assert cg.num_controls() == 1 248 cirq.ControlledGate(g, num_controls=1), 254 g.controlled(num_controls=2), 378 cirq.S ** -1, num_controls=4 540 num_controls=1, [all …]
|
/dports/cad/opencascade/opencascade-7.6.0/src/GeomLib/ |
H A D | GeomLib_Interpolate.cxx | 47 num_controls, in GeomLib_Interpolate() local 70 num_controls = num_knots - order ; in GeomLib_Interpolate() 72 TColStd_Array1OfInteger contacts (1,num_controls) ; in GeomLib_Interpolate() 74 TColStd_Array1OfReal parameters(1,num_controls) ; in GeomLib_Interpolate() 75 TColgp_Array1OfPnt poles(1,num_controls) ; in GeomLib_Interpolate() 83 jj = num_controls + 1 ; ii <= order ; ii++, jj++) { in GeomLib_Interpolate() 93 for (ii = 1 ; ii <= num_controls ; ii++) { in GeomLib_Interpolate() 96 jj = num_controls ; in GeomLib_Interpolate() 113 contacts(num_controls) = 0 ; in GeomLib_Interpolate() 115 poles(num_controls) = PointsArray(NumPoints) ; in GeomLib_Interpolate()
|
/dports/science/py-cirq-core/Cirq-0.13.1/cirq-core/cirq/testing/ |
H A D | consistent_controlled_gate_op.py | 23 num_controls: Sequence[int] = (2, 1, 3, 10), 28 if len(num_controls) != len(control_values): 30 for i, num_control in enumerate(num_controls): 39 num_controls: int, 46 gate_controlled = gate.controlled(num_controls, control_values) 48 control_qubits = qubits[:num_controls] 49 gate_qubits = qubits[num_controls:]
|
H A D | consistent_controlled_gate_op_test.py | 55 num_controls: int = None, 59 ret = super().controlled(num_controls, control_values, control_qid_shape) 60 if num_controls == 1 and control_values is None: 73 GoodGate(), num_controls=[1, 2], control_values=[(1,)] 79 num_controls=[1, 2],
|
/dports/science/py-cirq-pasqal/Cirq-0.13.1/cirq-core/cirq/testing/ |
H A D | consistent_controlled_gate_op.py | 23 num_controls: Sequence[int] = (2, 1, 3, 10), 28 if len(num_controls) != len(control_values): 30 for i, num_control in enumerate(num_controls): 39 num_controls: int, 46 gate_controlled = gate.controlled(num_controls, control_values) 48 control_qubits = qubits[:num_controls] 49 gate_qubits = qubits[num_controls:]
|
H A D | consistent_controlled_gate_op_test.py | 55 num_controls: int = None, 59 ret = super().controlled(num_controls, control_values, control_qid_shape) 60 if num_controls == 1 and control_values is None: 73 GoodGate(), num_controls=[1, 2], control_values=[(1,)] 79 num_controls=[1, 2],
|
/dports/science/py-cirq-google/Cirq-0.13.0/cirq-core/cirq/testing/ |
H A D | consistent_controlled_gate_op.py | 23 num_controls: Sequence[int] = (2, 1, 3, 10), 28 if len(num_controls) != len(control_values): 30 for i, num_control in enumerate(num_controls): 39 num_controls: int, 46 gate_controlled = gate.controlled(num_controls, control_values) 48 control_qubits = qubits[:num_controls] 49 gate_qubits = qubits[num_controls:]
|
H A D | consistent_controlled_gate_op_test.py | 55 num_controls: int = None, 59 ret = super().controlled(num_controls, control_values, control_qid_shape) 60 if num_controls == 1 and control_values is None: 73 GoodGate(), num_controls=[1, 2], control_values=[(1,)] 79 num_controls=[1, 2],
|
/dports/science/py-cirq-ionq/Cirq-0.13.1/cirq-core/cirq/testing/ |
H A D | consistent_controlled_gate_op.py | 23 num_controls: Sequence[int] = (2, 1, 3, 10), 28 if len(num_controls) != len(control_values): 30 for i, num_control in enumerate(num_controls): 39 num_controls: int, 46 gate_controlled = gate.controlled(num_controls, control_values) 48 control_qubits = qubits[:num_controls] 49 gate_qubits = qubits[num_controls:]
|
H A D | consistent_controlled_gate_op_test.py | 55 num_controls: int = None, 59 ret = super().controlled(num_controls, control_values, control_qid_shape) 60 if num_controls == 1 and control_values is None: 73 GoodGate(), num_controls=[1, 2], control_values=[(1,)] 79 num_controls=[1, 2],
|
/dports/devel/py-qutip/qutip-4.6.2/qutip/qip/compiler/ |
H A D | gatecompiler.py | 149 num_controls = len(self.pulse_dict) 151 num_controls = 0 154 num_controls = max(num_controls, pulse_index) 155 num_controls += 1 167 pulse_instructions = [[] for tmp in range(num_controls)] 186 pulse_instructions, scheduled_start_time, num_controls) 208 self, pulse_instructions, scheduled_start_time, num_controls): argument 214 compiled_tlist = [[] for tmp in range(num_controls)] 215 compiled_coeffs = [[] for tmp in range(num_controls)] 216 for pulse_ind in range(num_controls): [all …]
|
/dports/games/crrcsim/crrcsim-0.9.13/src/mod_video/ |
H A D | crrc_animation.cpp | 193 int num_controls = 0; in CRRCControlSurfaceAnimation() local 229 num_controls++; in CRRCControlSurfaceAnimation() 235 num_controls++; in CRRCControlSurfaceAnimation() 241 num_controls++; in CRRCControlSurfaceAnimation() 247 num_controls++; in CRRCControlSurfaceAnimation() 253 num_controls++; in CRRCControlSurfaceAnimation() 259 num_controls++; in CRRCControlSurfaceAnimation() 265 num_controls++; in CRRCControlSurfaceAnimation() 271 num_controls++; in CRRCControlSurfaceAnimation() 281 if (num_controls < 1) in CRRCControlSurfaceAnimation()
|