Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.crx

QuantumCircuit.crx(theta, control_qubit, target_qubit, label=None, ctrl_state=None)[소스]

Apply CRXGate.

For the full matrix form of this gate, see the underlying gate documentation.

매개변수
  • theta (Union[ParameterExpression, float]) – The angle of the rotation.

  • control_qubit (Union[Qubit, QuantumRegister, int, slice, Sequence[Union[Qubit, int]]]) – The qubit(s) used as the control.

  • target_qubit (Union[Qubit, QuantumRegister, int, slice, Sequence[Union[Qubit, int]]]) – The qubit(s) targeted by the gate.

  • label (Optional[str]) – The string label of the gate in the circuit.

  • ctrl_state (Union[str, int, None]) – The control state in decimal, or as a bitstring (e.g. 〈1〉). Defaults to controlling on the 〈1〉 state.

반환 형식

InstructionSet

반환

A handle to the instructions created.