MCPcopy
hub / github.com/Qiskit/qiskit / x

Method x

qiskit/circuit/quantumcircuit.py:6214–6226  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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,

Callers 15

runMethod · 0.95
_synth_mcx_special_casesFunction · 0.95
_n_parallel_ccx_xFunction · 0.95
_linear_depth_ladder_opsFunction · 0.95
_calc_pauli_diffFunction · 0.95
synth_clifford_agFunction · 0.95
synth_weighted_sum_carryFunction · 0.95
adder_ripple_r25Function · 0.95

Calls 1

_append_standard_gateMethod · 0.95