Review
Each recall prompt you answer in a lesson is scheduled to come back here: after 5 days, then 2 weeks, then a month, and so on, doubling each time you remember it. A card you forget drops back a step and returns straight away.
Loading your review queue…
A qubit's state is written . What are and ?
Complex numbers called amplitudes, one for each basis state.
What condition must the amplitudes in satisfy?
Normalisation: .
Write and as column vectors.
and .
How are the states and defined?
and .
Is an amplitude a probability?
No. An amplitude is a complex number and can be negative. The probability is its squared magnitude.
You measure . What is the probability of getting 0?
. This is the Born rule.
A measurement gives the outcome 1. What state is the qubit in afterwards?
. The original amplitudes are gone.
What does the Hadamard gate do to and to ?
and .
Measuring and directly gives the same 50/50 statistics. How can you tell them apart?
Apply first, then measure. always gives 0 and always gives 1.
What is applied twice, and why?
The identity. The two paths to have opposite amplitudes and cancel: interference.
What property must the matrix of every quantum gate have?
It must be unitary: . This keeps states normalised and makes every gate reversible.
What do and do to the basis states?
swaps and . leaves alone and sends to .
What single gate equals ?
. Likewise .
What is a global phase, and can it be measured?
A factor multiplying the whole state. No measurement can detect it.
How are , and related?
and . They put phases , and on .
How many amplitudes describe the state of qubits?
, one for each bit string.
What does CNOT do?
It flips the target qubit exactly when the control qubit is 1.
Starting from , which two gates make the Bell state ?
on the first qubit, then CNOT with the first qubit as control.
What does it mean for a two-qubit state to be entangled?
It cannot be written as a product of one state for each qubit.
You measure one qubit of and get 1. What will the other qubit give?
1, with certainty.
What does teleporting one qubit use up?
One shared entangled pair, and two classical bits sent from Alice to Bob.
Why does teleportation not violate the no-cloning theorem?
Alice's measurement destroys her copy. The state exists only at Bob's end afterwards.
Why can't teleportation send information faster than light?
Until Alice's two classical bits arrive, Bob's qubit is completely random to him. Those bits travel at ordinary speeds.
In teleportation Alice measures on her original qubit and on her half of the pair. What does Bob apply?
if , then if .
What does superdense coding achieve?
It sends two classical bits by transmitting one qubit, using up one shared entangled pair.
In superdense coding, how does Alice encode her two bits?
She applies if the first bit is 1 and if the second bit is 1, to her half of the pair only.
A source emits state with probability . What is its density matrix?
.
What three properties does every density matrix have?
It is Hermitian, it has trace 1, and it has no negative eigenvalues.
What do the diagonal and off-diagonal entries of a density matrix tell you?
The diagonal entries are the measurement probabilities. The off-diagonal entries, the coherences, record superposition.
What is the purity of a state, and what values does it take for a qubit?
. It is 1 for a pure state and falls to for the maximally mixed state.
What is the state of one qubit of a Bell pair, taken on its own?
The maximally mixed state .
How does a gate act on a density matrix?
.
What is the general form of a quantum channel?
with . The are called Kraus operators.
What does the phase-flip channel with probability do to a density matrix?
It multiplies the off-diagonal entries by and leaves the diagonal alone.
What does the depolarizing channel do to the Bloch vector?
It shrinks it towards the centre of the ball by the same factor in every direction.
What does amplitude damping model, and where does it send every state eventually?
Energy loss. Every state ends up in .
Where does noise come from, physically?
The qubit interacts with an environment and becomes entangled with it. Ignoring the environment leaves the qubit in a mixed state.
How is the von Neumann entropy of a state defined?
, which is the Shannon entropy of the eigenvalues of .
What is the entropy of a pure state, and of a maximally mixed qubit?
0 bits and 1 bit.
How do you measure how entangled a pure state of two parts is?
By the entropy of the reduced state of either part. A Bell pair has 1 bit.
What is the best chance of telling apart two equally likely pure states and ?
. It reaches 1 only when the states are orthogonal.
How much classical information can qubits carry, with no shared entanglement?
At most bits. This is the Holevo bound.
What does Deutsch's algorithm decide, and with how many queries?
Whether is constant or balanced, with one query. Classically it takes two.
What is phase kickback?
With the target in , the oracle leaves the target alone and puts a phase on the query qubit: .
In Deutsch's algorithm, what does measuring 1 on the first qubit mean?
The function is balanced. Measuring 0 means it is constant.
Quantum algorithms do not work by "trying every answer at once". What do they rely on instead?
Interference: amplitudes for wrong answers cancel and amplitudes for right answers add.
What is the promise in the Deutsch–Jozsa problem, and what must you decide?
The function is either constant or balanced (0 on exactly half of the inputs). Decide which.
In the Deutsch–Jozsa algorithm, what does measuring all zeros mean?
The function is constant. Any other outcome means it is balanced.
Against which classical algorithms is Deutsch–Jozsa exponentially faster?
Only deterministic ones that must be certain. A randomised algorithm gets the answer with a tiny error from a handful of queries.
What does the Bernstein–Vazirani algorithm find, and with how many queries?
The hidden string in , with one query. Classically it takes .
What does a row of Hadamards do to the basis state of qubits?
.
How does the quantum Fourier transform act on a basis state of a register with values?
.
What is the QFT on a single qubit?
The Hadamard gate.
A state on points has period . Where are the peaks after the QFT?
At the multiples of (or the whole numbers nearest to them).
What happens to the QFT output when the input state is shifted sideways?
Only the phases change. The measurement probabilities stay the same.
Which gates build the QFT on qubits, and roughly how many?
Hadamards and controlled phase gates, about of them, followed by swaps to reverse the order of the wires.
Why is the QFT not a faster way to compute the Fourier transform of a list of data?
The output amplitudes cannot be read, only sampled once per run, and loading arbitrary data into amplitudes takes about steps.
What does phase estimation compute?
Given a gate and an eigenstate with , it writes the binary digits of into a register.
Why does phase estimation use controlled- and not itself?
On its own the eigenvalue is a global phase. With a control in it becomes a relative phase: .
What are the three steps of phase estimation?
Put the counting qubits in , apply controlled powers of onto the eigenstate, then apply the inverse QFT to the counting qubits and measure.
In phase estimation with counting qubits, which powers of are used?
, one per counting qubit, with the highest power on the most significant qubit.
How many uses of does phase estimation need to reach an error in the phase?
About : reading binary digits takes uses.
What does phase estimation return if the register holds a superposition of eigenstates?
The phase of one eigenstate , chosen with probability , and the register is left in that eigenstate.
To what problem does Shor's algorithm reduce factoring ?
Finding the order of a number modulo : the smallest with .
Given an even order of modulo , how do you get factors of ?
Compute and . This works unless .
What is the quantum step in Shor's algorithm?
Phase estimation on the gate , whose eigenvalues are .
Why does Shor's algorithm run phase estimation on the state ?
is an equal superposition of all the eigenstates of multiplication by , so the result is for a random .
In Shor's algorithm, how is the order recovered from the measured number ?
. The continued fraction expansion finds the closest fraction with denominator below , and its denominator is or a divisor of it.
Which cryptography does Shor's algorithm break, and which does it leave standing?
It breaks RSA, Diffie–Hellman and elliptic-curve cryptography. Symmetric ciphers and hash functions are not broken by it.
How many oracle queries does Grover's algorithm need to find one marked item among ?
About . A classical search needs about on average.
What are the two operations in one round of Grover's algorithm?
The oracle flips the sign of the marked amplitude. The diffusion reflects every amplitude about the mean.
What is the success probability after rounds of Grover's algorithm?
, where .
What happens if you run more Grover rounds than the best number?
The success probability falls again. Each round is a rotation by a fixed angle, and it overshoots the marked state.
Could a cleverer quantum algorithm search unstructured items in far fewer than queries?
No. On the order of queries are provably necessary, so quantum computers do not brute-force NP-complete problems efficiently.
What is amplitude amplification?
Grover's method applied to any quantum procedure that succeeds with probability : it raises the success probability to nearly 1 in about rounds.
What is the task called Hamiltonian simulation?
Building a circuit that applies , the evolution of a quantum system with Hamiltonian over a time , to within a chosen error.
Why is simulating a quantum system hard for a classical computer in general?
The state of particles has amplitudes.
State the first-order Trotter formula and how its error behaves.
for steps, with error proportional to .
When is exactly?
When and commute, .
What circuit applies ?
A CNOT, a rotation on the target qubit, and the same CNOT again.
How can a quantum computer find an energy of a Hamiltonian ?
By phase estimation on , whose eigenvalue phases are the energies. The starting state must overlap well with the eigenstate wanted.
Why can't we protect a qubit by making three copies of it?
An unknown quantum state cannot be copied (no-cloning), and measuring it to learn it would destroy it.
How does the three-qubit bit-flip code encode ?
As . This is one entangled state, not three copies.
What do the two syndrome bits of the bit-flip code record?
Whether qubits 0 and 1 agree, and whether qubits 1 and 2 agree (two parities).
Why does measuring the syndrome leave the encoded state intact?
The parities are the same for the and parts, so the outcome says nothing about and .
Name an error the three-qubit bit-flip code cannot correct.
A phase flip () on any qubit. Two simultaneous bit flips also defeat it.
How does the three-qubit phase-flip code encode ?
As : the bit-flip code followed by an on every qubit.
How do you measure on two data qubits using an ancilla?
on the ancilla, a CNOT from the ancilla onto each data qubit, on the ancilla again, then measure it.
How is the nine-qubit Shor code built?
By concatenation: encode with the phase-flip code, then encode each of its three qubits with the bit-flip code. is three copies of .
What are the eight checks of the Shor code?
Two parities inside each block of three, which find bit flips, and two six-qubit checks comparing the signs of neighbouring blocks, which find phase flips.
Why does correcting , and errors correct every single-qubit error?
Any single-qubit error is a combination of , , and , and measuring the syndrome collapses that combination onto one of them.
What is a degenerate code?
One in which different errors act identically on encoded states, so they need not be told apart. In the Shor code a on any qubit of a block has the same effect.
How do you tell whether two Pauli strings commute?
Count the positions where both have a non-identity letter and the letters differ. Even: they commute. Odd: they anticommute.
What is the code space of a stabilizer code?
The set of states left unchanged ( eigenstates) by every generator, where the generators are commuting Pauli strings.
A stabilizer code has qubits and independent generators. How many logical qubits does it hold?
. Each generator halves the dimension of the space.
In a stabilizer code, what is the syndrome of a Pauli error ?
The list of generators that anticommute with . Those are the ones whose measurement gives .
What is a logical operator of a stabilizer code?
A Pauli string that commutes with every generator but is not a product of generators. It changes the encoded state and fires no check.
What is the distance of a code, and how many errors can a distance- code correct?
The smallest weight of a logical operator. It corrects errors on up to qubits.
For a classical linear code with check matrix , what is the syndrome of a codeword corrupted by an error ?
modulo 2. It depends only on the error.
What is special about the syndrome of the Hamming code?
Column of its check matrix is in binary, so the syndrome of a single flipped bit spells out its position.
What condition must the check matrices and of a CSS code satisfy, and why?
Every row of one must share an even number of positions with every row of the other, , so that the -type and -type generators commute.
In a CSS code, which generators detect which errors?
-type generators detect errors and -type generators detect errors. The two are decoded separately.
What is the Steane code?
The CSS code that uses the Hamming check matrix for both its -type and its -type generators.
What is a transversal gate, and why is it valuable?
A logical gate done by acting on each physical qubit of a block separately. A single faulty gate then damages only one qubit per block.
What are the checks of the surface code?
Four-qubit and checks on alternating squares of a grid of data qubits, like a chessboard, with two-qubit checks along the edges.
What are the parameters of a surface code patch?
: one logical qubit, however large the patch.
What do the checks of the surface code reveal about a chain of errors?
Only its endpoints. A chain is invisible along its length, and an end that reaches a suitable edge of the patch is invisible too.
What are the logical operators of a surface code patch?
Chains that cross the whole patch: 's from one pair of opposite edges, 's between the other pair. They cross at one qubit, so they anticommute.
Give two reasons the surface code suits real hardware.
Every check involves only four neighbouring qubits on a flat grid, and its threshold is high, very roughly 1%.
How do errors spread through a CNOT?
An on the control is copied to the target. A on the target is copied to the control. The other two cases do not spread.
What does it mean for a procedure to be fault-tolerant?
A small number of faults anywhere in it causes only a small number of errors in each code block, few enough for the code to correct.
State the threshold theorem.
If every physical operation has an error rate below a fixed threshold, arbitrarily long quantum computations can be done to any accuracy with modest overhead.
With threshold and physical error rate , what is the logical error rate after levels of concatenation?
. Below threshold it falls doubly exponentially in .
What does the Eastin–Knill theorem say, and how is it worked around?
No code has a universal set of transversal gates. The missing gate, usually , is supplied by distilling magic states and teleporting the gate.
Below threshold, how does the surface code's logical error rate change when the distance goes from to ?
It is multiplied by roughly , since .
What is a decoder's job?
Given a syndrome, to choose a correction. It is a classical program.
A decoder applies correction when the true error was . When has it succeeded?
When is a product of generators. It fails when is a logical operator. It need not find itself.
How does minimum-weight perfect matching decode the surface code?
It pairs each fired check with another fired check or with an edge of the patch so that the total length of the connecting chains is as small as possible, and flips the qubits along them.
How does a decoder cope with faulty syndrome measurements?
The checks are measured over many rounds and the decoder works with changes between rounds. A measurement error shows up as a pair of changes separated in time.
Why must a decoder be fast?
Syndromes arrive continuously, about every microsecond on superconducting hardware. A decoder that falls behind builds up a backlog and stalls the computation.
What is a variational quantum circuit?
A circuit whose gates have tunable angles. Its measured output depends on those angles, and a classical optimiser adjusts them.
What are the three stages of a variational classifier?
Encode the data into a state, apply the trainable gates, then measure an expectation value.
State the parameter-shift rule for a rotation gate with angle .
: an exact gradient from two more runs of the same circuit.
What is the expectation value of for the state ?
.
Name three ways to encode classical data in a quantum state.
Basis encoding (bit strings to basis states), angle encoding (features as rotation angles) and amplitude encoding (features as amplitudes).
How many qubits does amplitude encoding need for features, and what is the catch?
Only qubits. But preparing an arbitrary state takes about gates, unless the data has special structure or a quantum RAM exists.
As a function of the input , what kind of function does a circuit of rotation gates compute?
A Fourier series. The encoding gates fix which frequencies appear, and the trainable gates set the coefficients.
What is data re-uploading, and what does it buy?
Encoding the same input several times, with trainable gates in between. Each repetition adds higher frequencies to the functions the model can represent.
What functions of can , , on produce as ?
Only a constant plus a multiple of : .
How is a quantum kernel defined from a feature map ?
, the overlap of the two encoded states.
How do you estimate one value on a quantum computer?
Run , then the inverse , and measure. The fraction of runs in which every qubit reads 0 estimates the kernel.
In a quantum kernel method, which part is quantum and which is classical?
The quantum computer estimates the kernel value for each pair of data points. Finding the weights and making predictions is classical.
What is exponential concentration of a quantum kernel?
For very expressive feature maps on many qubits, the kernel values of almost all pairs of inputs crowd around one tiny number. Telling them apart takes exponentially many shots.
What two conditions must a quantum kernel meet to give an advantage?
It must be hard to compute classically, and it must suit the data. Hardness alone is not usefulness.
What is a barren plateau?
A cost landscape in which the gradient is exponentially small in the number of qubits almost everywhere. Its variance shrinks roughly like for deep unstructured circuits.
Roughly how many shots does it take to detect a gradient of size ?
About , because the statistical error of an average over shots is about .
What is the difference between a global and a local cost function, and why does it matter?
A global cost depends on all qubits at once and has a barren plateau even for shallow circuits. A local cost is a sum of few-qubit terms and keeps usable gradients at shallow depth.
Name three causes of barren plateaus.
Deep unstructured (highly expressive) circuits, global cost functions, and hardware noise. Too much entanglement is a fourth.
What is the catch with circuits designed to avoid barren plateaus?
The structure that keeps their gradients large often also makes them efficient to simulate classically.
Does a gradient-free optimiser escape a barren plateau?
No. The landscape itself is flat, so differences in cost between nearby points are exponentially small too.
State the variational principle.
For every state, , the ground-state energy. Equality holds only for a ground state.
What are the steps of VQE?
Prepare a parametrised state (the ansatz), measure the energy as a sum of Pauli terms, and let a classical optimiser change the angles to lower it. Repeat.
How is the energy of a Hamiltonian measured on a quantum computer?
Write as a sum of Pauli terms, estimate the expectation value of each term from many runs, and add them up with their coefficients.
What is the cost operator for MaxCut?
over the edges. It counts the edges whose two ends are in different groups.
What does one round of QAOA consist of?
A cost layer , which puts a phase on each bit string according to its quality, then a mixer layer on every qubit.
Have VQE or QAOA shown a practical advantage over classical methods?
No. Both have been run on small problems, but neither has beaten the best classical methods on a problem of practical interest.
What are the three pieces of fine print on HHL-style exponential speedups?
The input must be loaded as a quantum state, the matrix must be sparse (or similarly structured) and well conditioned, and the output is a quantum state from which only a summary can be read.
What is dequantization?
Showing that a classical algorithm, given sampling access to the data comparable to what the quantum algorithm assumed, does nearly as well. Tang's 2018 result for recommendation systems was the first.
Why are variational models on classical data squeezed from two sides?
Very expressive circuits are untrainable because of barren plateaus, and circuits structured enough to train are often classically simulable.
Is there any learning problem with classical data where a quantum advantage is proved?
Yes: a classification problem built on the discrete logarithm, solved by a quantum kernel. The data is constructed for the purpose, so it shows what is possible in principle.
Where is the evidence for quantum advantage in learning strongest?
Learning from quantum data. Processing several copies of a state together in quantum memory can need exponentially fewer experiments than measuring them one at a time.
Name three questions to ask of any claimed quantum advantage in machine learning.
Is the whole pipeline counted, including data loading and readout? Is the classical baseline the best available? Is the claim about scaling, on a problem someone needs solved?
In BB84, which rounds do Alice and Bob keep?
The rounds where Bob happened to measure in the basis Alice prepared in, about half of them.
What error rate does an intercept-and-resend eavesdropper cause in the sifted key?
About 25%.
Why does intercept-and-resend cause 25% errors?
Eve guesses the wrong basis half the time. When she does, Bob's result is random, so it is wrong half of those times.
What do Alice and Bob say in public during BB84, and what do they keep private?
They announce which bases they used, after Bob has measured. They keep the bit values private, apart from a sample sacrificed to estimate the error rate.
State the no-cloning theorem.
No physical process can copy an unknown quantum state. A single machine can copy two states only if they are orthogonal (or identical).
Why can a machine that copies and not copy ?
Gates are linear, so it gives . A copy would be the product state, with terms and as well.
What does the CNOT "copier" produce from ?
The Bell state . Each qubit on its own is maximally mixed.
Name two things the no-cloning theorem does not forbid.
Any two of: copying a known state, copying orthogonal states such as classical bits, moving a state by teleportation, making imperfect copies.
What can an eavesdropper learn about two non-orthogonal states if she leaves both undisturbed?
Nothing. Her probe must end in the same state for both. Information gain requires disturbance.
After sifting, what are the three stages of classical processing in QKD?
Parameter estimation (measure the error rate), information reconciliation (make the keys identical), privacy amplification (remove what Eve knows).
Why does error correction cost key in QKD?
Every parity announced over the public channel is heard by Eve. At least bits per key bit must be revealed, and all of it removed later.
How does privacy amplification work?
Alice and Bob hash the key to a shorter one, for example by keeping random parities of it. If the output is a little shorter than Eve's uncertainty, she knows essentially nothing about it.
What is the asymptotic secret key rate of BB84 per sifted bit, at error rate ?
, where is the binary entropy: for error correction and for privacy amplification.
Above roughly what error rate does standard BB84 yield no key?
About 11%, where .
Why is QKD called a key-growing protocol?
The classical channel must be authenticated, which needs a short shared secret to begin with. QKD turns a short key into a long one.
How do Alice and Bob get key bits from shared Bell pairs?
Each measures their qubit in a randomly chosen basis. When the bases match, their results agree, and those rounds form the key.
Write the CHSH quantity .
, where is the average product of the two results.
What are the classical and quantum limits on in the CHSH test?
2 for any results fixed in advance, and in quantum mechanics.
Why does a CHSH violation imply the key is secret?
Results that violate the bound cannot have been determined in advance, so no one could have known them beforehand. A maximal violation means the pair is correlated with nothing else.
What is the monogamy of entanglement?
If two qubits are in a pure maximally entangled state, neither can be correlated with any third system.
What does "device-independent" security mean?
Security is inferred from the observed statistics alone, such as a Bell violation, without trusting how the devices work inside.
Which widely used cryptosystems does Shor's algorithm break?
RSA, Diffie–Hellman and elliptic-curve cryptography: everything based on factoring or discrete logarithms.
What does Grover's algorithm do to symmetric ciphers such as AES, and what is the fix?
It reduces a search over keys to about steps. Doubling the key length restores the security margin.
What is "harvest now, decrypt later"?
Recording encrypted traffic today in order to decrypt it once a quantum computer can break the key exchange.
What is the learning with errors (LWE) problem?
Find a secret vector from many random linear equations in , modulo , each of which has a small error added.
What are the first three NIST post-quantum standards, and what are they for?
ML-KEM (key exchange, lattices), ML-DSA (signatures, lattices) and SLH-DSA (signatures, hash functions).
How does the security of post-quantum cryptography differ in kind from that of QKD?
Post-quantum cryptography rests on problems believed hard to compute. QKD rests on physics, given correctly working devices and an authenticated channel.
What does a Wiesner banknote consist of?
A serial number and qubits, each in a random one of . The bank privately records the basis and bit of each.
With what probability does a measure-and-copy forgery of an -qubit Wiesner note pass the bank's check?
.
What is the main practical limitation of Wiesner's scheme, apart from needing quantum memory?
Only the bank can verify a note, because verification needs the secret record of bases.
Can quantum mechanics provide unconditionally secure bit commitment?
No. Any such protocol can be cheated using entanglement (Mayers; Lo and Chau, 1997).
What would public-key quantum money be, and what must its security rest on?
Money anyone can verify but nobody can copy. It needs a computational hardness assumption in addition to no-cloning.
Your data
Everything you do here is stored in this browser only. Export a backup to move it to another device or to keep it safe before clearing your browser data.