qiskit.circuit.QuantumCircuit.ccx¶
- QuantumCircuit.ccx(control_qubit1, control_qubit2, target_qubit, ctrl_state=None)[ソース]¶
Apply
CCXGate
.For the full matrix form of this gate, see the underlying gate documentation.
- パラメータ
control_qubit1 (QubitSpecifier) – The qubit(s) used as the first control.
control_qubit2 (QubitSpecifier) – The qubit(s) used as the second control.
target_qubit (QubitSpecifier) – The qubit(s) targeted by the gate.
ctrl_state (str | int | None) – The control state in decimal, or as a bitstring (e.g. 『1』). Defaults to controlling on the 『1』 state.
- 戻り値
A handle to the instructions created.
- 戻り値の型