DeepPractise
DeepPractise

What is a Quantum Gate?

Track: Quantum Gates & Circuits · Difficulty: Beginner · Est: 12 min

What is a Quantum Gate?

Overview

In Foundations, you learned how to describe a quantum state and how to predict measurement outcomes.

To do computation, we need one more ingredient: a controlled way to change the state before measuring. A quantum gate is that controlled change.

This page introduces gates as state updates that are:

  • deliberate (chosen by you),
  • repeatable (same input state → same output state), and
  • distinct from measurement (they do not “collapse” the state).

Intuition

A helpful mental split is:

  • Measurement asks a question and produces a classical outcome (and generally changes the state).
  • Evolution changes the state without producing a classical outcome.

A quantum gate lives on the “evolution” side.

If you picture a single qubit on the Bloch sphere, a gate is like grabbing the arrow and rotating it smoothly to a new direction. Nothing has been “read out” yet; you are simply preparing the state you intend to measure later.

This is why gates act on states (kets like ψ|\psi\rangle), not on bits. A bit is already classical information. A gate is a physical operation whose job is to shape amplitudes and phases before measurement turns them into probabilities.

Formal Description

A quantum state (for one qubit) is a ket

ψ=α0+β1,|\psi\rangle = \alpha|0\rangle + \beta|1\rangle,

where α\alpha and β\beta are complex amplitudes and α2+β2=1|\alpha|^2 + |\beta|^2 = 1.

A quantum gate is a rule that maps an input state to an output state:

ψ    ψ.|\psi\rangle \;\mapsto\; |\psi'\rangle.

Two important points:

  1. A gate updates the entire state, including phase.

  2. A gate does not itself produce a measurement outcome. You can apply several gates in a row and only then measure.

At this stage, we will talk about gates as abstract state transformations. Later, we will represent them with concrete mathematical objects (operators) and learn how to combine them.

Worked Example

Start with the computational-basis state 0|0\rangle.

Imagine applying a gate that rotates the Bloch-sphere arrow from the north pole to the +xx direction. The resulting state is commonly written as

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

Now compare two experiments:

  • If you measure immediately in the computational basis, you get 0 or 1 with probability 1/21/2 each.
  • If you apply another gate first (another rotation), you can change those probabilities.

So gates are how you steer measurement statistics by changing the state beforehand.

Turtle Tip

Turtle Tip

A good test for whether something is a “gate” in our sense is: does it produce a classical outcome right away? If yes, it’s measurement-like. If no, and it deterministically updates the state, it’s gate-like.

Common Pitfalls

Common Pitfalls
  • Don’t think “a gate flips a bit.” A gate updates a quantum state, which includes phase as well as probabilities.
  • Don’t confuse “applying a gate” with “observing.” Gates are controlled evolution; measurement is readout.

Quick Check

Quick Check
  1. In your own words, what is the difference between a gate and a measurement?
  2. Why do we say gates act on states, not bits?

What’s Next

We’ve described gates as controlled state evolution. Next we make that idea precise: we will see that (in the idealized theory) gates must be unitary, which is the mathematical way of saying they preserve normalization and are reversible.