Everything strange about quantum computing and quantum sensing follows from that one sentence. This page builds it up from things you already use. Complex amplitudes. Phase. Interference. Truth tables. Every figure below is live, so drag it and change it.
Start where the audience already lives. A classical gate throws information away, and that is the hinge the whole quantum story turns on.
A bit is a switch. A classical gate is a lookup table on switches. Nothing here is mysterious, but one property of these tables is easy to miss because it is so familiar.
Most classical gates destroy information. An AND gate takes two bits in and returns one bit out. If the output is 0 you cannot say which of three inputs produced it. The gate is a one way street. Run the table below and watch the count of inputs that collapse onto each output.
Hold onto the reversible entries in that list. NOT and CNOT lose nothing. You can run them backwards and recover the input exactly. Every quantum gate has that property, and not by choice. It is forced by the physics.
You already carry the right mental object. It is the Jones vector of a polarized wave, and the sphere it lives on is the Poincaré sphere under a different name.
Take a plane wave travelling toward you. Its electric field has two orthogonal components, horizontal and vertical. Each carries an amplitude and a phase, so each is a complex number. Stack them and you get two complex numbers describing one wave.
That is a qubit. Rename the horizontal component α and call it the amplitude on |0⟩. Rename the vertical component β and call it the amplitude on |1⟩.
Two complex numbers is four real numbers. Two constraints remove two of them. Normalization fixes the total power to one. Global phase is unobservable, exactly as the choice of time origin for a phasor is unobservable. Four minus two is two, and two real parameters is the surface of a sphere.
Latitude sets the odds. Longitude sets the phase. The polar angle θ controls how the probability splits between 0 and 1. The azimuth φ is the relative phase between the two amplitudes. Measurement is blind to φ, and yet φ is where every quantum advantage comes from. Move both sliders and watch the polarization ellipse on the right respond.
Write the state as a column vector and the measurement as a projector. The probability of reading 0 is the squared overlap with the |0⟩ axis.
The Bloch vector is the expectation of the three Pauli operators. It is the Stokes vector of the polarization picture, component for component.
A pure state has |r| = 1 and sits on the surface. Anything inside the ball is a statistical mixture, which is what noise does to a qubit. Section 06 puts that to work.
Every single qubit gate is a rigid rotation of that sphere. Pick an axis, pick an angle, and you have named the gate.
A gate has to preserve total probability, so it has to preserve the length of the state vector. A length preserving linear map on a sphere is a rotation. That is the whole classification.
X is a half turn about the x axis, which swaps the poles, so it is the quantum NOT. Z is a half turn about the vertical axis. It leaves both poles alone and leaves every measurement probability untouched, which makes it look like it does nothing. It flips the sign of β. Section 04 shows how much that matters.
H, the Hadamard, is a half turn about the tilted axis halfway between x and z. It carries a pole to the equator. It is the gate that creates superposition, and it is the exact analogue of a 50:50 coupler.
Build a sequence below. The dashed line shows the rotation axis of the gate as it runs.
A rotation by angle γ about the unit axis n is generated by the Pauli operators.
The half angle is not a typo. The state lives on a sphere of directions, and a 360° rotation of that sphere returns the state to minus itself. That sign is a global phase, so it is invisible, which is why the two pictures stay consistent.
Setting γ = π recovers the familiar gates up to a global phase.
Accumulated unitary for the current sequence, to three decimals:
Coupler, phase shifter, coupler, detector. The quantum circuit H · Rz(φ) · H is the same instrument written in different notation.
Split a signal into two arms with a 3 dB coupler. Delay one arm. Recombine with a second coupler. Which detector lights up depends entirely on the relative phase between the arms. No engineer finds that surprising.
Now replace the two arms with the two states of one qubit. The first H is the input coupler. The phase shifter is Rz(φ). The second H is the output coupler. The detector is the measurement.
This single result is the engine of both halves of the field. Quantum computing arranges φ so that wrong answers cancel. Quantum sensing lets the world set φ and then reads it off the fringe.
They are still available, but they cost an extra wire. Reversibility is not a style choice. It is the price of being a rotation.
A rotation can always be undone by rotating back. So every quantum gate is invertible, and an invertible map needs as many outputs as inputs. A two in, one out AND gate cannot be a rotation of anything.
The fix is old and it is classical. Keep the inputs and write the answer onto a spare wire. CNOT does this for XOR. The Toffoli gate, a doubly controlled NOT, does it for AND.
Because NAND is universal for classical logic and Toffoli gives you NAND for free, any classical circuit can be run on a quantum computer. Flip the inputs below and watch the third wire.
The best visual definition of entanglement. Each qubit individually has no direction left, and yet the pair is perfectly defined.
Two bits have four possible values. Two qubits carry four complex amplitudes, one for each of those values. Ten qubits carry 1024 amplitudes. Fifty qubits carry more than a quadrillion, which is why simulating them on a classical machine is hopeless.
The trap is to imagine those amplitudes as a warehouse of parallel answers. They are not. Measuring n qubits returns exactly n bits. The amplitudes are not an output, they are an internal ledger, and the only way to profit is to arrange for the unwanted entries to cancel.
Now the strange part. Run H on the first qubit and then CNOT onto the second. The pair is in a perfectly definite state. But look at either qubit on its own and the Bloch arrow has shrunk to nothing.
Grover's search on four items, in full. One oracle call, and the answer comes out with certainty. Nothing is hidden in this example.
Four boxes. One has a prize. Classically you open boxes until you find it, which takes 2.25 tries on average. Quantum mechanically you need one query, and the answer is certain rather than probable.
The trick has two moves. The oracle flips the sign of the marked amplitude, which no probability could ever do because probabilities cannot be negative. Then the diffusion step reflects every amplitude about their mean. The marked entry was below the mean, so it is thrown far above it. The other three land on zero.
Step through it. Watch the bars go below the axis. That is the whole reason quantum computing works.
Same interferometer. Same fringe. This time the world supplies the phase shift and you want to know what it was.
Put a qubit on the equator with an H. Now leave it alone for a time τ. If the qubit has a magnetic moment and sits in a field B, it precesses about the vertical axis at the Larmor rate. It accumulates phase.
This is a Ramsey sequence, and it is the backbone of atomic clocks, magnetometers with nitrogen vacancy centers in diamond, and molecular spin qubits. The qubit is a lock-in amplifier whose reference oscillator is itself.
Two things fight each other. Longer τ accumulates more phase per unit of field, so sensitivity improves. But the environment scrambles the phase, and the fringe contrast decays as exp(−τ/T₂). The optimum is not at the coherence time. It sits at exactly half of it.
Averaging N independent probes beats down noise as 1/√N. Entangling them first gets you 1/N. The catch is real and worth stating.
Every measurement of a qubit is one coin flip. Repeat with N independent qubits and the phase uncertainty falls as 1/√N. Engineers know this as shot noise. In this field it is called the standard quantum limit, and it is not a law of nature. It is the law for uncorrelated probes.
Entangle the N qubits into a GHZ state and the accumulated phase is Nφ instead of φ. The fringe gets N times finer, and the uncertainty falls as 1/N. That is the Heisenberg limit, and the gain over shot noise is √N.
The catch. A GHZ state also decoheres about N times faster. With realistic noise much of the advantage is eaten, and the honest engineering answer is that entangled sensing wins in narrow regimes rather than everywhere. Toggle the noise below and watch the crossover appear.
Very little of the work is quantum mechanics. Most of it is control, signal integrity, thermal design, and coding theory, done to unusual tolerances.
The four ideas on this page carry most of the conceptual load. A qubit is a normalized complex pair. A gate is a rotation. Entanglement moves information from the parts into the correlations. Interference converts unreadable phase into readable outcomes.
From there the work looks familiar.
Gates are shaped pulses. Amplitude and phase errors of a fraction of a percent are the difference between a working and a useless processor.
Attenuation, filtering, and heat budgets between 300 K and 10 mK. A microwatt in the wrong place ends the experiment.
Error correction needs syndrome decoding inside the coherence time. That is an FPGA and latency problem with a hard deadline.
Surface codes are linear codes over GF(2) with a geometric constraint. Anyone comfortable with LDPC decoding is already most of the way there.
T₂ is set by two level defects, surface chemistry, and dielectric loss. Section 08 showed why every factor of two here is worth chasing.
Tomography, randomized benchmarking, and drift tracking. This is instrumentation engineering with a quantum readout.