Qubits and Quantum Gates
A qubit is a two-state quantum system ; gates are unitary matrices that rotate it before it is measured.
Needs a step first: 39
A qubit holds a superposition with , and measuring it gives a single classical bit. Gates are unitary matrices: the Pauli flips, changes the relative sign, and the Hadamard makes and undoes equal superpositions. A circuit is a product of such matrices, and its power comes from steering amplitudes so that wrong answers cancel and right ones add. With two or more qubits and gates like CNOT, circuits produce entanglement.
Where it shows up: Qubits and gates are the language of entanglement, Bell tests and quantum algorithms.
How to hold it: By hand, until automatic
Know by heart what , and do to , and , and push a state through a short circuit by multiplication as easily as a times table.
What knowing it looks like
- Apply a short sequence of gates to by matrix multiplication and give the measurement probabilities.
- Check that a given matrix is unitary.
- Explain why followed by returns the original state, as interference rather than as randomness.
Test yourself
Start a qubit in and apply , then , then . What is the final state, and what are the measurement probabilities? Which single gate is ?
Show the worked answer
Needs a step first: 39
Learn it with an AI
Copy this prompt into any AI assistant. It will take you through step by step at your level and finish with the test above.
Be my maths tutor. I'm learning "Qubits and Quantum Gates" (Frontier tier): A qubit is a two-state quantum system $\alpha|0\rangle + \beta|1\rangle$; gates are unitary matrices that rotate it before it is measured. I already know: Spin and the Pauli Matrices. Teach it Socratically: first ask what I already know; then explain the core idea with one concrete example and why it's true; then give me three problems, one at a time, easy to hard. Wait for my answer, check every step, and point out mistakes without giving the answer away. Finish by testing me with this: Start a qubit in $|0\rangle$ and apply $H$, then $Z$, then $H$. What is the final state, and what are the measurement probabilities? Which single gate is $HZH$? Use LaTeX for formulas. When you say where it's used later (machine learning, quantum mechanics), be specific.
Needs first
Leads to
On the way to
Recommended
- The Feynman Lectures on PhysicsCaltech · BookFeynman's three volumes on mechanics, electromagnetism and quantum mechanics, free to read online in Caltech's official edition.
- Quantum CountryAndy Matuschak and Michael Nielsen · InteractiveFree essays on qubits, quantum circuits and the search algorithm with built-in spaced-repetition questions, so what you read stays remembered.
- MIT 8.04 Quantum Physics IBarton Zwiebach, MIT OpenCourseWare · CourseBarton Zwiebach's lecture videos and problem sets on wavefunctions, the Schrödinger equation, the harmonic oscillator and scattering.
- Basics of Quantum InformationIBM Quantum · CourseA free IBM course on states, measurements, circuits, entanglement, teleportation and the CHSH game, with Qiskit code to try each idea.