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

YGate

class YGate(label=None)

GitHub

Bases: qiskit.circuit.gate.Gate

The single-qubit Pauli-Y gate (σy\sigma_y).

Matrix Representation:

Y=(0ii0)\begin{split}Y = \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}\end{split}

Circuit symbol:

     ┌───┐
q_0: ┤ Y ├
     └───┘

Equivalent to a π\pi radian rotation about the Y axis.

Note

A global phase difference exists between the definitions of RY(π)RY(\pi) and YY.

RY(π)=(0110)=iY\begin{split}RY(\pi) = \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} = -i Y\end{split}

The gate is equivalent to a bit and phase flip.

0i11i0\begin{split}|0\rangle \rightarrow i|1\rangle \\ |1\rangle \rightarrow -i|0\rangle\end{split}

Create new Y gate.


Methods Defined Here

control

YGate.control(num_ctrl_qubits=1, label=None, ctrl_state=None)

Return a (multi-)controlled-Y gate.

One control returns a CY gate.

Parameters

  • 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.

Returns

controlled version of this gate.

Return type

ControlledGate

inverse

YGate.inverse()

Return inverted Y gate (Y=YY{\dagger} = Y)


Attributes

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

Return type

str

params

return instruction params.

unit

Get the time unit of duration.

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