DeepPractise
DeepPractise
Quantum Gates & Circuits

Pauli-Y Gate

Beginner 12 min 1 prerequisite

Pauli-Y Gate

Overview

You’ve met two Pauli gates:

  • X swaps ∣0⟩|0\rangle and ∣1⟩|1\rangle (bit-flip-like).
  • Z keeps ∣0⟩|0\rangle and flips the sign of ∣1⟩|1\rangle (phase-flip-like).

The Pauli-Y gate (Y) completes the trio. It’s important because it shows how amplitude swapping and phase naturally combine into a single operation. Geometrically, it gives us the missing axis: a clean rotation about the yy-axis on the Bloch sphere.

Intuition

On the Bloch sphere:

  • X corresponds to a 180° rotation about the xx axis.
  • Z corresponds to a 180° rotation about the zz axis.
  • Y corresponds to a 180° rotation about the yy axis.

So Y is not “new randomness.” It’s a different kind of flip: it changes the Bloch vector by rotating around a different axis.

Why do we need Y in addition to X and Z?

  • With only X and Z, you can talk about flips about the xx and zz axes.
  • But the Bloch sphere is 3D. To describe rotations naturally, you want all three axes.

Another key intuition: Y includes a built-in phase factor. Compared to X (which swaps amplitudes), Y swaps amplitudes and introduces a ±i\pm i phase. That phase is not cosmetic—it changes interference behavior in later steps.

Formal Description

Action on basis states

The defining action of Y is

Y∣0⟩=i∣1⟩,Y∣1⟩=−i∣0⟩.Y|0\rangle = i|1\rangle,\qquad Y|1\rangle = -i|0\rangle.

Let’s unpack what that means:

  • Like X, Y swaps the roles of ∣0⟩|0\rangle and ∣1⟩|1\rangle.
  • Unlike X, it multiplies the swapped component by ±i\pm i (a 90° phase shift in the complex plane).

Matrix form (introduced carefully)

In the computational basis, Y is represented by the 2×2 matrix

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

Every symbol here has a purpose:

  • ii is the imaginary unit, with i2=−1i^2 = -1.
  • The off-diagonal entries mean “swap components” (like X).
  • The factors ±i\pm i mean “add a phase while swapping.”

Now apply it to a general single-qubit state

∣ψ⟩=α∣0⟩+β∣1⟩.|\psi\rangle = \alpha|0\rangle + \beta|1\rangle.

Using the basis-state actions above (and linearity),

Y∣ψ⟩=α Y∣0⟩+β Y∣1⟩=α i∣1⟩+β (−i)∣0⟩=−iβ∣0⟩+iα∣1⟩.Y|\psi\rangle = \alpha\,Y|0\rangle + \beta\,Y|1\rangle = \alpha\,i|1\rangle + \beta\,(-i)|0\rangle = -i\beta|0\rangle + i\alpha|1\rangle.

So:

  • the ∣0⟩|0\rangle amplitude becomes −iβ-i\beta,
  • the ∣1⟩|1\rangle amplitude becomes iαi\alpha.

That is “swap + phase.”

Worked Example

Start with the state

∣+⟩=12(∣0⟩+∣1⟩).|+\rangle = \tfrac{1}{\sqrt{2}}(|0\rangle + |1\rangle).

Apply Y:

Y∣+⟩=12(Y∣0⟩+Y∣1⟩)=12(i∣1⟩−i∣0⟩)=i2(∣1⟩−∣0⟩).Y|+\rangle = \tfrac{1}{\sqrt{2}}(Y|0\rangle + Y|1\rangle) = \tfrac{1}{\sqrt{2}}(i|1\rangle - i|0\rangle) = \tfrac{i}{\sqrt{2}}(|1\rangle - |0\rangle).

Up to an overall (global) phase factor ii, this is

12(∣0⟩−∣1⟩)=∣−⟩.\tfrac{1}{\sqrt{2}}(|0\rangle - |1\rangle) = | - \rangle.

Geometric interpretation:

  • ∣+⟩|+\rangle points along +xx on the Bloch sphere.
  • ∣−⟩| - \rangle points along −xx.
  • Y rotates the Bloch vector by 180° about the yy axis, taking +xx to −xx.

Turtle Tip

Turtle Tip

If X is “swap amplitudes” and Z is “flip a sign,” then Y is “swap amplitudes with a quarter-turn of phase.” Think of Y as the missing axis that completes the Bloch-sphere picture.

Common Pitfalls

Common Pitfalls
  • Don’t treat the ii in Y as “just a weird constant.” Those phase factors affect interference.
  • Don’t confuse global phase with relative phase. In the worked example, the overall factor ii is global (unobservable by itself), but Y can also introduce relative phase changes depending on the input.

Quick Check

Quick Check
  1. What axis does Y rotate around on the Bloch sphere?
  2. Compared to X, what extra feature does Y include?

What’s Next

Now we have the three Pauli gates X, Y, and Z. Next we introduce a gate that’s central for basis changes: the Hadamard (H) gate, which connects the Z-basis to the X-basis and makes interference extremely visible.