English
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.circuit.QuantumCircuit.x

QuantumCircuit.x(qubit, label=None)[source]

Apply XGate.

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

Parameters
  • qubit (Union[Qubit, QuantumRegister, int, slice, Sequence[Union[Qubit, int]]]) – The qubit(s) to apply the gate to.

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

Return type

InstructionSet

Returns

A handle to the instructions created.