Stella NovaQuantum encoding
Quantum Fourier transform
Register 2ⁿ amplitudes
Qubits n
4 · 16 bins
Linear ramp φⱼ = α·2ʲ
Slope 0.00
A perfect 1:2:4:8 ramp is a pure tone, so one bin lights. Drag α to slide the tone across the spectrum. Nudge one φⱼ off the ramp to see energy leak into the neighbours.
Measurement finite shots
Shots Sexact
At S = exact you see the true state. Add shots to sample it. The rose histogram is one measurement run. It wobbles around the curve by √shot noise.
Phase rotations Rz(φⱼ) per qubit
Quantum Fourier transform: input to output

Four knobs, one spectrum

Turn n qubit phase rotations. The input encodes them as phase only. The output shows the smooth spectrum an ideal machine holds and the bins you measure.

Input signal the n rotations, encoded
|amplitude|constant modulus1/√N
phase θ(x)= Σ φⱼ·xⱼ
flat magnitude · phase ramp▼QFT
  — power spectrum of a constant-modulus sequence
Output smooth state vs measured histogram
P(k)probability over the 2ⁿ basis states
continuous spectrum |V(κ)|² (ideal) exact bin probability P(k) measured histogram (S shots)
peak bin
0
peak prob
100%
spread
1.0 bins
ramp → bin
0.0
What you're watching

The input is the least impulse-like thing there is. Every one of the 2ⁿ amplitudes has the same magnitude; all your information lives in the phase θ(x) = Σⱼ φⱼ·xⱼ. Because that phase is additive over the bits, n knobs only reach an n-parameter family of signals — you steer where the energy lands and how sharp it is, not an arbitrary shape.

The smooth curve is the ideal state; the bars sample it. An infinite-resolution machine would hold the continuous spectrum |V(κ)|². A real n-qubit register only has 2ⁿ slots, so it reads off that curve at the integer bins. When the ramp lands the peak exactly on an integer, every other bin sits on a zero of the curve → a single clean spike. Land it between integers and the bins sample the skirts → spectral leakage.

The leak law. Detune one qubit's phase by δ and the peak drops to exactly cos²(δ/2), the rest bleeding into neighbours — same for any qubit, because each splits the indices evenly.

The axis wraps around. Frequency bin N is the same state as bin 0 — the spectrum is periodic. So when the peak sits at |0…0⟩, the curve also climbs at the far-right edge: that's the same spike seen through the wrap, not a second peak at |1…1⟩. Trust the orange dots, not the rising skirt.

The math QFT, formally
Input state — flat magnitude, phase set by your n rotations
QFT amplitude on basis state
Measured probability and its smooth continuation
Clean-tone condition — a 1:2:4:8 ramp is a single frequency
Leak law — cost of detuning qubit by
Periodicity — why the curve rises again on the right