German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.library.XGate.control

XGate.control(num_ctrl_qubits=1, label=None, ctrl_state=None)[Quellcode]

Return a (multi-)controlled-X gate.

One control returns a CX gate. Two controls returns a CCX gate.

Parameter
  • num_ctrl_qubits (int) – number of control qubits.

  • label (str or None) – An optional label for the gate [Default: None]

  • ctrl_state (int or str or None) – control state expressed as integer, string (e.g. ‚110‘), or None. If None, use all 1s.

Rückgabe

controlled version of this gate.

Rückgabetyp

ControlledGate