Bengali
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.fredkin

QuantumCircuit.fredkin(control_qubit, target_qubit1, target_qubit2)[source]

Apply CSwapGate.

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

প্যারামিটার
  • control_qubit (Union[Qubit, QuantumRegister, int, slice, Sequence[Union[Qubit, int]]]) -- The qubit(s) used as the control.

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

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

রিটার্ন টাইপ

InstructionSet

রিটার্নস

A handle to the instructions created.

আরও দেখুন

QuantumCircuit.cswap: the same function with a different name.