Measurement Bases — You Can Measure in Any Direction
Every measurement so far asked one question: is the qubit 0 or 1? That is only one of infinitely many questions you could ask. Change the direction you measure in — and the same qubit gives you completely different, equally valid information. You can only ask one question per qubit. Choose carefully.
You've Only Been Asking One Question
A qubit is in the state |+⟩ = (|0⟩ + |1⟩)/√2 — a perfect equal superposition. You measure it in the standard Z basis (asking "is it 0 or 1?"). What do you get?
Every measurement in this track so far has done exactly the same thing: take a qubit, look at it, and ask — is it 0 or 1? The qubit collapses to one of those two answers. Done.
But here is something we have not told you yet. That is not the only question you can ask.
You can ask a completely different question — and the qubit gives you a completely different answer. Not a wrong answer. Not a worse answer. A genuinely different piece of information, extracted by a genuinely different kind of measurement.
This idea — that a quantum state can be measured in different ways, each revealing different information, and that you can only choose one — is called measurement bases. It is one of the most practically important ideas in the whole subject, and it is the foundation of quantum cryptography.
The Compass Analogy
Before any quantum notation, here is the everyday version of choosing a measurement direction.
Someone asks: "Is the needle pointing north or south?" You look along the north-south axis and answer. It is closer to north — you say north. That is your measurement in the north-south basis.
Someone else asks: "Is the needle pointing east or west?" You look along the east-west axis. It is closer to east — you say east. That is your measurement in the east-west basis.
Same needle. Different question. Different answer. Both are correct — they describe the needle from different angles.
The "north-south axis" is the Z basis in quantum computing — the standard 0-or-1 question. The "east-west axis" is the X basis — a completely different question about the same state. You can only pick one axis to measure along. Choosing one permanently destroys all information about the other.
The crucial difference from a real compass: after you measure a qubit in one basis, the state collapses into that basis. You cannot then measure the same qubit in a different basis — it is gone. You had one chance, one question. What you chose determined what you learned, and everything else was permanently lost.
The "wrong basis" effect — the most counterintuitive result
Here is the part that feels almost unfair. Suppose someone prepares a qubit in state $|{+}\rangle$ — a perfectly definite, known state in the X basis. If you measure in the X basis, you get the answer "plus" every single time. No randomness. Completely predictable.
But measure the same state in the Z basis — and you get 0 or 1 with 50% probability each. It looks like random noise. The qubit has not changed. The randomness came entirely from asking the wrong question.
The Three Standard Bases
On the Bloch sphere, every direction through the centre is a valid measurement axis — there are infinitely many. But three come up again and again in quantum computing and cryptography, corresponding to the X, Y, and Z axes of the sphere.
Each basis has exactly two outcomes — because every quantum measurement on a qubit is binary, always collapsing to one of two states. What changes between bases is which two states are being chosen between.
The X basis states written out — you have seen them before
The states $|{+}\rangle$ and $|{-}\rangle$ that form the X basis are not new. They are the states the Hadamard gate creates from $|0\rangle$ and $|1\rangle$:
$$|{+}\rangle = \frac{1}{\sqrt{2}}\bigl(|0\rangle + |1\rangle\bigr) \qquad |{-}\rangle = \frac{1}{\sqrt{2}}\bigl(|0\rangle - |1\rangle\bigr)$$Both are equal superpositions of $|0\rangle$ and $|1\rangle$ — they have identical probabilities in the Z basis. They look completely identical to a Z-basis measurement. But they are distinct, orthogonal states: the X-basis measurement distinguishes them perfectly. The Z-basis measurement cannot tell them apart at all.
Mutually unbiased bases — why Z and X are special together
The Z and X bases are called mutually unbiased: any eigenstate of one basis has equal probability across all outcomes of the other. If you know the state is perfectly defined in Z (say, definitely $|0\rangle$), then measuring in X gives you completely random results. And vice versa.
This mutual randomness is not a coincidence. It is a geometric property of how these two axes are oriented on the Bloch sphere — perpendicular to each other. Two bases that are maximally incompatible in this way are exactly what quantum cryptography needs.
The Maths of Basis Change — and Why It Breaks Classical Cryptography
Measuring in a different basis means re-expressing your state as a combination of the basis states you are measuring in — then applying the Born rule to those components. Here are the three most important examples.
BB84 — how measurement bases make eavesdropping physically impossible
Measurement bases are not just a theoretical curiosity. They are the foundation of the most important quantum cryptography protocol ever invented. The key insight is brutal and elegant.
Alice sends Bob qubits, each randomly chosen from {|0⟩, |1⟩, |+⟩, |−⟩}. Bob measures each one — but doesn't know Alice's basis, so he randomly picks Z or X. Half the time he guesses right, half wrong. After all qubits are sent, they publicly compare which bases they used (not the results). They keep only the matching-basis measurements. Those bits form the secret key.
Now here is why it is unbreakable. If Eve intercepts a qubit and measures it, she doesn't know Alice's basis either. If she guesses wrong, she gets a random result — and must resend something to Bob. But she doesn't know the original state, so she resends the wrong thing. When Alice and Bob compare a sample of their key bits, they will find errors introduced by Eve. No errors = no eavesdropper. Errors = someone was listening.
Eavesdropping leaves a physical trace — guaranteed by the laws of quantum measurement. Classical encryption is hard to break. Quantum key distribution is physically impossible to break without detection.
Measurement Basis Explorer
Drag the state arrow on the 3D Bloch sphere to any direction — theta (up/down) and phi (around) — then choose a measurement basis and measure. See exactly how the same state gives certain or random results depending on which axis you ask about.
2. Click |+⟩ → preset. The state vector points along the X axis. Switch to X basis — probability shows 100%/0%. Now switch to Z — shows 50%/50%. Rotate the sphere by left-dragging to see why: the state vector is perpendicular to the Z axis, so Z measurement is maximally uncertain.
3. Click |i⟩ ⊙ preset. This is the Y-axis state — impossible to see in a 2D cross-section. Switch to Y basis — probability shows 100%/0%. Switch to X or Z — completely random. Left-drag to orbit the sphere and observe the state vector pointing directly out of what used to be the screen plane.
4. BB84 in 3D. Right-drag (or Shift+drag) to set the state vector to a random direction. Measure in Z — note the result (Alice's bit). Reset. Set the same direction again. Measure in X instead (Eve measuring in the wrong basis): random result. Reset and use Y: random again. Eve cannot know Alice's basis, so every wrong-basis measurement introduces detectable errors.
5. Random State Challenge. Hit 🎲 Random State — Measure All Three Bases. A random qubit lands on the sphere; three identically-prepared copies are measured in Z, X and Y simultaneously. Watch the probability column: one basis will show a high-confidence result, the others will be close to 50/50. That high-confidence basis is the one most "aligned" with the state. Hit it repeatedly — every random state tells a different story about which basis sees it most clearly.
What You Now Know About Measurement Bases
-
A measurement basis is a choice of questionThe Z basis asks "0 or 1?" The X basis asks "|+⟩ or |−⟩?" Any direction through the Bloch sphere is a valid basis. Different questions reveal different information — and you can only ask one per qubit.
-
Certainty in one basis means randomness in a complementary basisA state definite in Z gives completely random results in X, and vice versa. This mutual unpredictability is not a flaw — it is a deep consequence of the geometry of quantum states, and it is what makes quantum cryptography possible.
-
Measuring in a new basis means re-expressing the state — then Born ruleTo find probabilities in a given basis, write the state as a superposition of the basis states and square the amplitudes. The probabilities depend on the overlap between your state and the basis — not on some absolute "randomness" of the qubit.
-
BB84 uses measurement bases to make eavesdropping physically detectableAn eavesdropper who intercepts qubits must guess the basis — wrong guesses introduce errors that Alice and Bob can detect. The security comes not from computational difficulty but from the fundamental laws of quantum measurement. Classical encryption can theoretically be broken. BB84 cannot be broken without leaving evidence.
-
Measurement bases appear throughout all of quantum computingTeleportation, error correction, Grover's, Shor's — the ability to choose which question to ask, and the consequences of that choice, run through all of quantum information science. The Hadamard gate is literally a basis-change operation. You will use this concept again and again.
Superposition. Interference. Entanglement.
You've built a Bell pair. You understand measurement bases.
Now — how do these three superpowers work together
in a real quantum computation?
- Nielsen, M. A. & Chuang, I. L. — Quantum Computation and Quantum Information, Cambridge, 2000. §2.2.3 "Projective measurements." — Standard reference for measurement bases and Born rule.
- Bennett, C. H. & Brassard, G. — "Quantum Cryptography: Public Key Distribution and Coin Tossing." Proc. IEEE International Conference on Computers, Systems and Signal Processing, 1984. — The original BB84 paper.
- Preskill, J. — Ph219 Lecture Notes, Chapter 2. theory.caltech.edu/~preskill/ph219/
- IBM Qiskit Textbook — "Single Qubit Gates" and "Quantum Protocols and Quantum Algorithms." qiskit.org/learn