90-degree rotations

Shorthand notations are available to perform a $\pm 90$-degree rotation ($\pm \frac{\pi}{2}$ radians) around the x-axis or y-axis:

X90, Y90, mX90 and mY90.

See also rotation operators.

Note that a shorthand notation for a 90-degree rotation around the z-axis is already provided. This is equal to the S-gate.

Examples:

        
X90 q[0] # 90-degree rotation around the x-axis
Y90 q[0] # 90-degree rotation around the y-axis
mX90 q[0] # minus 90-degree rotation around the x-axis
mY90 q[0] # minus 90-degree rotation around the y-axis