r"""Apply :class:`~qiskit.circuit.library.XGate`. For the full matrix form of this gate, see the underlying gate documentation. Args: qubit: The qubit(s) to apply the gate to. label: The string label of the gate in the circuit. Returns:
(self, qubit: QubitSpecifier, label: str | None = None)
| 6212 | ) |
| 6213 | |
| 6214 | def x(self, qubit: QubitSpecifier, label: str | None = None) -> InstructionSet: |
| 6215 | r"""Apply :class:`~qiskit.circuit.library.XGate`. |
| 6216 | |
| 6217 | For the full matrix form of this gate, see the underlying gate documentation. |
| 6218 | |
| 6219 | Args: |
| 6220 | qubit: The qubit(s) to apply the gate to. |
| 6221 | label: The string label of the gate in the circuit. |
| 6222 | |
| 6223 | Returns: |
| 6224 | A handle to the instructions created. |
| 6225 | """ |
| 6226 | return self._append_standard_gate(StandardGate.X, [qubit], (), label=label) |
| 6227 | |
| 6228 | def cx( |
| 6229 | self, |