Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK. Go to the latest version.

SXdgGate

class qiskit.circuit.library.SXdgGate(label=None)

GitHub

Bases: Gate

The inverse single-qubit Sqrt(X) gate.

Can be applied to a QuantumCircuit with the sxdg() method.

X=12(1i1+i1+i1i)\begin{split}\sqrt{X}^{\dagger} = \frac{1}{2} \begin{pmatrix} 1 - i & 1 + i \\ 1 + i & 1 - i \end{pmatrix}\end{split}
Note

A global phase difference exists between the definitions of RX(π/2)RX(-\pi/2) and X\sqrt{X}^{\dagger}.

RX(π/2)=12(1ii1)=eipi/4X\begin{split}RX(-\pi/2) = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & i \\ i & 1 \end{pmatrix} = e^{-i pi/4} \sqrt{X}^{\dagger}\end{split}

Create new SXdg gate.


Attributes

condition_bits

Get Clbits in condition.

decompositions

Get the decompositions of the instruction from the SessionEquivalenceLibrary.

definition

Return definition in terms of other basic gates.

duration

Get the duration.

label

Return instruction label

name

Return the name.

num_clbits

Return the number of clbits.

num_qubits

Return the number of qubits.

params

return instruction params.

unit

Get the time unit of duration.


Methods

inverse

inverse()

Return inverse SXdg gate (i.e. SX).

Was this page helpful?
Report a bug or request content on GitHub.