Pauli-Y gate

The Pauli-Y gate is a single-qubit rotation through π\pi radians around the y-axis.

 Y=σy=σ2=(0ii0)\ Y= \sigma_y = \sigma_2 = \begin{pmatrix} 0 & -i \ i & 0 \end{pmatrix}

Examples:

        
          Y q[0] # execute Y-gate on qubit 0
Y q[1,3] # execute Y-gate on qubit 1 and 3