German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.toffoli

QuantumCircuit.toffoli(control_qubit1, control_qubit2, target_qubit)[Quellcode]

Apply CCXGate.

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

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

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

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

Rückgabe

A handle to the instructions created.

Rückgabetyp

InstructionSet

Siehe auch

QuantumCircuit.ccx: the same gate with a different name.