Career Prep
Quantum Computing Interview Questions
161 questions with model answers across 12 topics. Each answer states what is proven, what is believed and where people commonly slip. Use the topic pages to study in order, or the explorer to search and practise.
Reviewed December 2026. These are study questions based on common themes, not questions from any particular company. Figures that change (standards, resource estimates) carry the source, so check the original before quoting them.
Study by topic
Qubits, superposition and measurement
The questions every interview starts with: what a qubit is, what measurement does, and how to talk about probability amplitudes without hand-waving.
14 questions →
Gates and circuits
Single- and two-qubit gates, universality, decompositions, and reading a circuit diagram.
14 questions →
Entanglement, Bell tests and quantum communication
Entanglement, why it cannot send messages, Bell and CHSH inequalities, teleportation and superdense coding.
12 questions →
Quantum algorithms
Deutsch–Jozsa, Bernstein–Vazirani, Simon, Grover, the QFT, phase estimation, Shor and HHL, with the speed-ups stated carefully.
12 questions →
Variational algorithms, VQE and QAOA
Hybrid quantum–classical loops, ansatz design, barren plateaus, gradients, and honest answers about advantage.
11 questions →
Quantum error correction
Why errors are hard, the repetition and Steane codes, the surface code, thresholds, and Google’s Willow result.
11 questions →
Noise, decoherence and hardware platforms
T1 and T2, gate fidelity, depolarising noise, and how superconducting, trapped-ion, photonic and neutral-atom machines compare.
15 questions →
Quantum cryptography and post-quantum security
BB84, QKD limits, what Shor and Grover break, NIST’s post-quantum standards and migration planning.
14 questions →
Complexity theory and quantum advantage
BQP, NP, oracles, sampling experiments, and how to talk about quantum advantage without overclaiming.
15 questions →
Maths and linear algebra
Tensor products, eigenvalues, unitaries, Hermitian operators and the small calculations interviewers ask you to do by hand.
14 questions →
Quantum software and coding questions
Framework questions, transpilation, simulators, and short coding tasks interviewers like to set.
15 questions →
Careers, industry and behavioural questions
Why quantum, how to talk about hype, project stories, and questions to ask the interviewer.
14 questions →
Explorer and practice mode
What is a qubit, and how does it differ from a classical bit?Beginner · Qubits, superposition and measurement
A classical bit is either 0 or 1. A qubit’s state is a vector α|0⟩ + β|1⟩ with complex amplitudes α and β satisfying |α|² + |β|² = 1. Measuring gives 0 with probability |α|² and 1 with probability |β|², and afterwards the state is the one you saw. The extra information is in the amplitudes and their relative phase, which you cannot read out directly from one measurement.
Likely follow-up: How many real numbers describe a single qubit state?
Common mistake: Saying a qubit stores two bits. One qubit gives one bit when measured.
Go deeper: Qubit · What is a qubit?
What is superposition? Give a precise statement.Beginner · Qubits, superposition and measurement
Superposition means a quantum state can be a linear combination of basis states, for example (|0⟩ + |1⟩)/√2. It is not a hidden choice between 0 and 1: the relative phase between the terms changes how the state behaves under later gates, which a mere unknown classical value could not do. Measurement in the 0/1 basis gives each outcome with probability equal to the squared amplitude.
Likely follow-up: How could you tell (|0⟩ + |1⟩)/√2 from a coin that is secretly 0 or 1 half the time?
Common mistake: “It is in both states at once” without mentioning amplitudes or measurement.
Go deeper: Superposition · Superposition explained
What happens when you measure a qubit?Beginner · Qubits, superposition and measurement
The result is one of the basis outcomes, 0 or 1, with probabilities given by the squared amplitudes (the Born rule). The state then becomes the corresponding basis state, so repeated measurement in the same basis gives the same result. Measurement is irreversible and destroys the original superposition. To learn the amplitudes you must prepare the same state many times and collect statistics.
Likely follow-up: Why can’t you learn the full state from a single measurement?
Go deeper: Superposition
Two states differ only by a global phase, for example |ψ⟩ and −|ψ⟩. Are they different?Beginner · Qubits, superposition and measurement
No. A global phase multiplies every amplitude by the same factor of unit size and changes no measurement probability, so the two describe the same physical state. Relative phase between amplitudes is different: |+⟩ and |−⟩ differ by a relative sign and are distinguishable by a Hadamard followed by measurement.
Likely follow-up: Why does a global phase matter when a gate becomes controlled?
Common mistake: Treating all phases as unobservable.
What is the Bloch sphere?Beginner · Qubits, superposition and measurement
A way to draw any pure single-qubit state as a point on a sphere. |0⟩ is the north pole and |1⟩ the south pole, and the equator holds equal superpositions such as |+⟩ and |−⟩ with different phases. Single-qubit gates are rotations of the sphere. A mixed state is a point inside the sphere, and a fully mixed state is the centre.
Likely follow-up: Where is |+i⟩, and how would you rotate to it from |0⟩?
Go deeper: Bloch Sphere Lab · Bloch sphere
What is the difference between a pure and a mixed state?Beginner · Qubits, superposition and measurement
A pure state is a single state vector, such as a superposition, and is known completely. A mixed state is a probabilistic mixture of pure states, described by a density matrix. Mixed states arise from ignorance or from entanglement with something you are not looking at. A mixed state is not the same as a superposition: a 50/50 mixture of |0⟩ and |1⟩ gives no interference, while (|0⟩ + |1⟩)/√2 does.
Likely follow-up: What is the purity of a state and what is its range for one qubit?
Go deeper: Density matrices
What are the amplitudes and probabilities for H|0⟩, and what does a second H do?Intermediate · Qubits, superposition and measurement
H|0⟩ = (|0⟩ + |1⟩)/√2, so each outcome has probability ½. Applying H again returns |0⟩ with certainty, because the two paths to |1⟩ cancel (destructive interference) and the paths to |0⟩ add. This shows that the state after one H is not a classical coin flip: a coin flipped twice stays random.
Likely follow-up: What does HZH do to |0⟩?
Common mistake: Computing probabilities after the first H and then applying H to those probabilities instead of the amplitudes.
How many complex numbers describe an n-qubit state, and why does that matter?Intermediate · Qubits, superposition and measurement
2ⁿ amplitudes. A classical simulator storing them needs memory that doubles with each added qubit: at 16 bytes per amplitude, 30 qubits take about 16 GiB and 50 qubits about 16 PiB. This is why exact classical simulation stops being practical in the range of tens of qubits, and why quantum hardware is interesting. It does not mean you can read out 2ⁿ numbers: a measurement returns only n bits.
Likely follow-up: So where does the advantage of a quantum computer come from?
Common mistake: Claiming a quantum computer ‘tries all answers at once’ and returns all of them.
Go deeper: Memory cost table
Explain the Born rule.Intermediate · Qubits, superposition and measurement
If a state is expanded in an orthonormal basis, |ψ⟩ = Σ cₖ|k⟩, then measuring in that basis returns k with probability |cₖ|². For a general measurement with projectors Pₖ, the probability is ⟨ψ|Pₖ|ψ⟩. The rule connects the amplitudes of the theory to the counts in an experiment.
Likely follow-up: What is the probability of getting 1 on qubit 0 of (|00⟩ + |11⟩)/√2?
What is measurement in a different basis, and how do you do it on hardware?Intermediate · Qubits, superposition and measurement
Hardware usually measures in the computational (Z) basis. To measure in another basis, apply a gate that rotates that basis into the Z basis, then measure. For the X basis apply a Hadamard first. For the Y basis apply S† then H. The outcomes then tell you the result along X or Y.
Likely follow-up: Why does the sign of a |+⟩ and |−⟩ difference vanish when you measure in Z?
Write the Pauli matrices and state two of their properties.Intermediate · Qubits, superposition and measurement
X = [[0,1],[1,0]], Y = [[0,−i],[i,0]], Z = [[1,0],[0,−1]]. Each squares to the identity, each is Hermitian and unitary, and they anticommute pairwise: XY = iZ and YX = −iZ. Together with the identity they form a basis for all 2×2 matrices, and their eigenvalues are ±1.
Likely follow-up: What are the eigenstates of X?
Go deeper: The math of a qubit
Why can’t a measurement tell you the relative phase of a superposition in the computational basis?Advanced · Qubits, superposition and measurement
Z-basis probabilities depend only on |α|² and |β|². The phase information sits in the relative phase between α and β, which a Z measurement discards. You can access it by measuring in a basis that mixes the two components, for example X or Y, which is the same as applying H or S†H before measuring. This is why state tomography uses several measurement bases.
Likely follow-up: How many measurement settings are needed for single-qubit tomography?
What is projective measurement versus a POVM, and why would you use the latter?Advanced · Qubits, superposition and measurement
A projective measurement uses orthogonal projectors that sum to the identity. A POVM uses positive operators Eₖ that sum to the identity but need not be projectors, and gives probabilities Tr(ρEₖ). Any POVM can be implemented as a projective measurement on a larger system (Naimark’s dilation). POVMs are useful for tasks such as unambiguous state discrimination, where you accept an occasional inconclusive result to avoid errors.
Likely follow-up: Give an example where a POVM beats any projective measurement.
What does the density matrix of one qubit of a Bell pair look like, and what does it say about the qubit?Advanced · Qubits, superposition and measurement
Tracing out one qubit of (|00⟩ + |11⟩)/√2 gives I/2, the maximally mixed state: the Bloch vector is zero. Taken alone, the qubit is completely random even though the pair is in a pure state. All the information is in the correlations between the two qubits, and this is the signature of entanglement.
Likely follow-up: What is the entropy of that reduced state?
Go deeper: Entanglement Visualizer
Why are quantum gates unitary?Beginner · Gates and circuits
A unitary matrix preserves the length of a state vector, so total probability stays 1, and it is invertible, so every gate can be undone by its conjugate transpose. Unitarity is what lets amplitudes interfere without creating or destroying probability. The only non-unitary step in a circuit is measurement.
Likely follow-up: Which classical gates are reversible, and is AND one of them?
Go deeper: Quantum gate
What do the Hadamard, X and Z gates do?Beginner · Gates and circuits
X flips |0⟩ and |1⟩. Z leaves |0⟩ alone and flips the sign of |1⟩. H maps |0⟩ to |+⟩ = (|0⟩ + |1⟩)/√2 and |1⟩ to |−⟩ = (|0⟩ − |1⟩)/√2, and it swaps the roles of X and Z: HXH = Z and HZH = X. H is its own inverse.
Likely follow-up: What does H do to |+⟩?
Go deeper: Quantum gates lesson · Gate reference
What does a CNOT gate do?Beginner · Gates and circuits
It flips the target qubit when the control is 1 and does nothing when it is 0, so |a,b⟩ becomes |a, a⊕b⟩. Applied to a control in superposition it creates entanglement: CNOT on (|0⟩ + |1⟩)/√2 ⊗ |0⟩ gives the Bell state (|00⟩ + |11⟩)/√2.
Likely follow-up: What is the matrix of CNOT, and what is CNOT squared?
How do you create a Bell state?Beginner · Gates and circuits
Start with |00⟩. Apply H to qubit 0 to get (|00⟩ + |10⟩)/√2, then CNOT with qubit 0 as control and qubit 1 as target to get (|00⟩ + |11⟩)/√2. Measuring both qubits gives 00 or 11 with probability ½ each and never 01 or 10.
Likely follow-up: How would you create the other three Bell states?
Go deeper: Circuit Builder · Bell state in seven frameworks
What are the S and T gates?Beginner · Gates and circuits
Phase gates that leave |0⟩ alone and multiply |1⟩ by a phase: S by i (a quarter turn about Z) and T by e^{iπ/4} (an eighth of a turn). So T² = S and S² = Z. T is the gate that makes the Clifford set universal, and it is expensive on error-corrected machines.
Likely follow-up: Why is T expensive in fault-tolerant computing?
What is a universal gate set?Intermediate · Gates and circuits
A set of gates from which any unitary can be approximated to any accuracy. A standard choice is Clifford+T, i.e. H, S, CNOT and T. Single-qubit rotations plus CNOT also suffice. Exact synthesis of arbitrary rotations is impossible with a finite set, so approximation is used, and the Solovay–Kitaev theorem says the cost grows only polylogarithmically in the accuracy.
Likely follow-up: Why is {H, CNOT, S} not universal?
Common mistake: Claiming a finite gate set can produce every unitary exactly.
Go deeper: Quantum gates lesson
What is the Clifford group, and why do people care?Intermediate · Gates and circuits
The Clifford gates map Pauli operators to Pauli operators; H, S and CNOT generate them. Circuits built only from Clifford gates and Pauli measurements can be simulated efficiently on a classical computer (the Gottesman–Knill theorem), so they carry no computational advantage on their own. Non-Clifford gates such as T supply the extra power, and counting them (T-count) is a common cost measure.
Likely follow-up: What is a stabilizer state?
Compute the effect of HZH.Intermediate · Gates and circuits
HZH = X. You can check by acting on basis states: H|0⟩ = |+⟩, Z|+⟩ = |−⟩, H|−⟩ = |1⟩, so |0⟩ goes to |1⟩, and likewise |1⟩ goes to |0⟩. Conjugating by H swaps X and Z, which is the same as a change of measurement basis.
Likely follow-up: What is HYH?
What is phase kickback?Intermediate · Gates and circuits
When a controlled-U acts on a target that is an eigenstate of U with eigenvalue e^{iφ}, the phase appears on the control instead: the control state |1⟩ is multiplied by e^{iφ}, while the target is unchanged. Phase kickback is the trick behind Deutsch–Jozsa, Grover and phase estimation, because it turns a function value into a phase on a superposed register.
Likely follow-up: Which target state do you use for a bit-flip oracle?
Go deeper: Grover’s algorithm
How do you build a SWAP from CNOTs?Intermediate · Gates and circuits
Three alternating CNOTs: CNOT(a→b), CNOT(b→a), CNOT(a→b). Tracking basis states shows the bits are exchanged. On hardware with limited connectivity SWAPs are inserted so that distant qubits can interact, which is why connectivity affects circuit depth.
Likely follow-up: What does a SWAP cost on a line of qubits to move a state k places?
What is a Toffoli gate, and why can’t it be run directly on most hardware?Intermediate · Gates and circuits
A doubly controlled NOT: it flips the target only if both controls are 1. It is universal for classical reversible computing. Most devices natively support one- and two-qubit gates, so a Toffoli is decomposed into a few single-qubit gates and six CNOTs, which makes it expensive on noisy hardware.
Likely follow-up: How many T gates does a standard Toffoli decomposition use?
How can you decompose an arbitrary single-qubit unitary?Advanced · Gates and circuits
Up to a global phase, any single-qubit unitary can be written as Rz(α) Ry(β) Rz(γ), a Z-Y-Z Euler decomposition, three rotation angles. Compilers use this to merge long runs of single-qubit gates into a single rotation sequence, saving depth.
Likely follow-up: How many parameters does an arbitrary two-qubit unitary need?
Explain controlled-U versus a controlled phase and how the global phase becomes relevant.Advanced · Gates and circuits
A global phase of U is unobservable on its own, but once U is controlled, that phase becomes a relative phase between the control’s |0⟩ and |1⟩ branches and is observable. That is why compilers must track phase carefully when building controlled operations, for example in phase estimation, where the eigenphase is read out through exactly this effect.
Likely follow-up: How would you make a controlled-Z from a CNOT and Hadamards?
What are native gates, and what does a transpiler do?Advanced · Gates and circuits
Each device implements a small native set, such as √X, Rz and a two-qubit gate like CZ or ECR, depending on the technology. A transpiler rewrites your circuit into that set, maps logical qubits to physical ones respecting connectivity (routing, adding SWAPs), and optimises gate count and depth. The same logical circuit therefore compiles to quite different physical circuits on different machines.
Likely follow-up: Why does connectivity affect error rates?
Go deeper: Qiskit’s transpiler · pytket compilation
What is entanglement?Beginner · Entanglement, Bell tests and quantum communication
Two or more qubits are entangled when their joint state cannot be written as a product of separate states. The Bell state (|00⟩ + |11⟩)/√2 is the standard example: each qubit alone is random, but the two results always agree. The correlations are stronger than any classical hidden-variable story allows, as Bell tests show.
Likely follow-up: Is (|00⟩ + |01⟩)/√2 entangled?
Common mistake: Saying that measuring one qubit instantly changes the other and so sends a message.
Go deeper: Entanglement explained · Entanglement Visualizer
Can entanglement be used to send information faster than light?Beginner · Entanglement, Bell tests and quantum communication
No. Each party’s local outcomes look completely random regardless of what the other does. The correlation only appears when the two lists of results are compared, which needs an ordinary channel limited by the speed of light. This is the no-signalling principle.
Likely follow-up: What would break if signalling were possible?
Go deeper: Entanglement
What is the no-cloning theorem?Beginner · Entanglement, Bell tests and quantum communication
There is no operation that copies an arbitrary unknown quantum state. It follows from linearity: a cloner that works for |0⟩ and |1⟩ would fail on superpositions. The theorem is why quantum information cannot be backed up like classical data and why quantum key distribution can detect eavesdropping.
Likely follow-up: Is it possible to clone a known state?
Go deeper: No-cloning theorem
Walk through quantum teleportation.Intermediate · Entanglement, Bell tests and quantum communication
Alice holds an unknown qubit and one half of a Bell pair shared with Bob. She does a Bell-basis measurement on her two qubits and sends the two classical bits of the result to Bob. Bob applies one of I, X, Z or XZ depending on those bits and recovers the original state. Nothing travels faster than light because the two bits are needed, and Alice’s original is destroyed, which respects no-cloning.
Likely follow-up: What would Bob’s qubit look like before he receives the bits?
Common mistake: Saying matter is teleported. Only the state moves.
Go deeper: Teleportation Lab · Quantum teleportation
What is superdense coding?Intermediate · Entanglement, Bell tests and quantum communication
Using one shared Bell pair, Alice can send two classical bits by sending just one qubit. She applies I, X, Z or XZ to her half according to the two bits and then sends it. Bob, holding the other half, performs a Bell measurement and reads out the two bits. It is the mirror image of teleportation, which uses two classical bits to send one qubit.
Likely follow-up: Does it beat Holevo’s bound?
Go deeper: Teleportation Lab
What does the CHSH inequality say?Intermediate · Entanglement, Bell tests and quantum communication
For two parties who each choose between two measurements, any local hidden-variable theory gives the CHSH quantity |S| ≤ 2. Quantum mechanics allows up to 2√2 ≈ 2.83 (Tsirelson’s bound) using an entangled pair and suitably chosen measurement angles. Experiments find values above 2, which rules out local hidden variables, assuming certain loopholes are closed.
Likely follow-up: Which loopholes matter and have they been closed?
Go deeper: Entanglement
What are the four Bell states and how are they related?Intermediate · Entanglement, Bell tests and quantum communication
Φ⁺ = (|00⟩ + |11⟩)/√2, Φ⁻ = (|00⟩ − |11⟩)/√2, Ψ⁺ = (|01⟩ + |10⟩)/√2 and Ψ⁻ = (|01⟩ − |10⟩)/√2. They form an orthonormal basis of two qubits. Each is obtained from Φ⁺ by applying a Pauli operator to one qubit, and all four are maximally entangled.
Likely follow-up: How would you distinguish all four with one measurement?
How would you test whether two qubits are entangled?Intermediate · Entanglement, Bell tests and quantum communication
For a pure two-qubit state, trace out one qubit and check whether the remainder is mixed: a pure reduced state means a product state. In experiments, measure correlations in several bases and check a Bell inequality or compute a witness. Tomography of the full density matrix gives a complete answer at the cost of many measurements.
Likely follow-up: What is the entropy of entanglement of a Bell pair?
What is the Schmidt decomposition?Advanced · Entanglement, Bell tests and quantum communication
Any pure state of two systems can be written as Σ √λᵢ |aᵢ⟩|bᵢ⟩ with orthonormal sets |aᵢ⟩ and |bᵢ⟩ and non-negative λᵢ summing to 1. The number of non-zero terms is the Schmidt rank: one means a product state. The λᵢ are the eigenvalues of either reduced density matrix, so they give the entanglement entropy.
Likely follow-up: What is the maximum Schmidt rank for n qubits split in half?
What is monogamy of entanglement?Advanced · Entanglement, Bell tests and quantum communication
If two qubits are maximally entangled with each other, neither can be entangled with a third system at all. Entanglement is a shareable resource only in limited amounts. Monogamy is the basis of the security of device-independent key distribution and explains why an eavesdropper cannot copy the correlations.
Likely follow-up: How does monogamy relate to no-cloning?
How does entanglement relate to quantum networks and repeaters?Advanced · Entanglement, Bell tests and quantum communication
Long-distance quantum communication is limited by photon loss in fibre. A quantum repeater creates entanglement over short links, stores it in quantum memory, and uses entanglement swapping (a Bell measurement in the middle) to link adjacent segments. Entanglement purification is used to fix noise. Building memories with long storage times is the key technical challenge.
Likely follow-up: Why can’t you just amplify the signal like a classical repeater?
Go deeper: Quantum networking
What is the difference between entanglement and discord or ‘classical correlation’?Advanced · Entanglement, Bell tests and quantum communication
Classical correlations can be created by local operations and classical communication; entanglement cannot. Quantum discord captures quantum correlations that exist even in some separable states. An interviewer will not expect details, but you should know that ‘entangled’ is a precise technical statement and not a synonym for ‘correlated’.
Likely follow-up: Give an example of a separable state that is correlated.
What problem does Grover’s algorithm solve, and how fast is it?Beginner · Quantum algorithms
Unstructured search: find a marked item among N using an oracle that recognises it. Grover needs about (π/4)√N oracle calls, against about N/2 on average for a classical search. The speed-up is quadratic and provably optimal for this problem. For N = 1,000,000 that is about 785 iterations.
Likely follow-up: What happens if you run too many iterations?
Common mistake: Calling it exponential, or forgetting the oracle must be implemented as a circuit.
Go deeper: Grover’s algorithm · Grover’s Builder
Why is Shor’s algorithm important?Beginner · Quantum algorithms
It factors an integer in polynomial time on an ideal quantum computer, whereas the best known classical algorithms are sub-exponential but super-polynomial. Since RSA security relies on factoring being hard, a large enough fault-tolerant machine would break it. That threat is the main driver of the move to post-quantum cryptography.
Likely follow-up: Does Shor’s algorithm break AES?
Go deeper: Shor’s algorithm · Shor’s Lab
Describe the structure of Shor’s algorithm.Intermediate · Quantum algorithms
Factoring N reduces to finding the order r of a random a modulo N. The quantum part is period finding: prepare a superposition, compute a^x mod N into a second register, apply the QFT to the first register, and measure to get a value near a multiple of 2ⁿ/r. A continued-fraction step recovers r. Then, if r is even and a^(r/2) ≠ −1 mod N, gcd(a^(r/2) ± 1, N) gives factors. For N = 15 and a = 7 the order is 4, giving gcd(48, 15) = 3 and gcd(50, 15) = 5.
Likely follow-up: What if r is odd?
Go deeper: Shor’s Lab
How does Grover’s algorithm work geometrically?Intermediate · Quantum algorithms
The state lives in a two-dimensional plane spanned by the marked state and the uniform superposition of unmarked states. The oracle reflects about the unmarked axis, and the diffusion operator reflects about the uniform state. The two reflections compose to a rotation by 2θ, where sin θ = √(M/N). Each iteration moves the state about 2θ toward the marked state, so about π/(4θ) iterations are needed.
Likely follow-up: What if you do not know M, the number of marked items?
Go deeper: Grover’s Builder
What is the Deutsch–Jozsa problem and what does it show?Intermediate · Quantum algorithms
A function f on n bits is promised to be constant or balanced. Classically a deterministic solution may need 2^(n−1)+1 queries; the quantum algorithm needs one. It shows a separation between exact quantum and deterministic classical query complexity, but the problem is artificial, and a randomised classical algorithm solves it with a few queries and tiny error probability, so it is not evidence of practical advantage.
Likely follow-up: Why does a randomised classical algorithm weaken the claim?
Common mistake: Presenting it as proof that quantum computers are exponentially faster in general.
What do Bernstein–Vazirani and Simon’s algorithms do?Intermediate · Quantum algorithms
Bernstein–Vazirani finds a hidden bit string s from an oracle f(x) = s·x using one query, where a classical algorithm needs n. Simon’s algorithm finds a hidden period s with f(x) = f(x⊕s), using about n queries where any classical algorithm needs exponentially many. Simon’s problem inspired Shor’s algorithm.
Likely follow-up: What does a measurement in Simon’s algorithm return?
What is the quantum Fourier transform and how big is its circuit?Intermediate · Quantum algorithms
The QFT applies the discrete Fourier transform to the amplitudes of an n-qubit state. It can be built from Hadamards and controlled phase rotations, with n(n+1)/2 such gates in the textbook version (about n²/2), plus swaps. For n = 8 that is 36 gates against the FFT’s cost on 256 numbers. You cannot read out all amplitudes, so the QFT is only useful inside larger algorithms.
Likely follow-up: Why is the QFT not a faster FFT for general data?
Go deeper: Quantum Fourier transform
Explain quantum phase estimation.Intermediate · Quantum algorithms
Given a unitary U and an eigenstate |u⟩ with eigenvalue e^{2πiφ}, phase estimation finds φ to n bits using n counting qubits. Controlled-U^(2^k) operations kick the phase into the counting register, and an inverse QFT converts it into a bit string. It is the engine inside Shor’s algorithm, HHL and quantum chemistry energy estimation.
Likely follow-up: What accuracy do you get per extra counting qubit?
What are the caveats of the HHL algorithm?Advanced · Quantum algorithms
HHL prepares a quantum state proportional to the solution of Ax = b in time polylogarithmic in the dimension, under conditions: A must be sparse and well conditioned, the vector b must be loadable efficiently, and you get a quantum state, not the vector, so reading out all entries erases the gain. Dequantisation results show that some related machine-learning speed-ups can be matched classically.
Likely follow-up: What is dequantisation?
Common mistake: Saying HHL solves linear systems exponentially faster, with no caveats.
Why does amplitude amplification generalise Grover’s algorithm?Advanced · Quantum algorithms
Given any algorithm A that succeeds with probability p, amplitude amplification boosts success to near 1 using about 1/√p repetitions rather than 1/p. Grover is the special case where A prepares a uniform superposition. It underlies quantum counting and many quadratic speed-ups for search-like subroutines.
Likely follow-up: Give another use of the same trick.
What is the BQP complexity class and how does factoring relate to it?Advanced · Quantum algorithms
BQP is the set of decision problems solvable in polynomial time by a quantum computer with bounded error. Factoring (as a decision problem) is in BQP via Shor and is not known to be in P or to be NP-complete. Most researchers expect NP-complete problems to lie outside BQP, but that is not proven.
Likely follow-up: Is BQP known to be larger than P?
Go deeper: Complexity and advantage
Which algorithms give exponential speed-ups and which only polynomial ones?Advanced · Quantum algorithms
Exponential, with strong evidence: Shor’s factoring and discrete logarithms, and simulating quantum systems (Hamiltonian simulation). Polynomial: Grover search (quadratic), amplitude estimation, and many related results. Many other claimed speed-ups depend on input assumptions or have been matched by improved classical algorithms. A good answer names which category a proposed application falls into.
Likely follow-up: Where does optimisation fit?
Go deeper: Algorithms library
What is a variational quantum algorithm?Beginner · Variational algorithms, VQE and QAOA
A hybrid method. A parameterised quantum circuit (the ansatz) prepares a state, the device measures the expectation of a cost operator, and a classical optimiser updates the parameters to lower the cost. Repeat until convergence. The circuits are shallow, which suits noisy devices.
Likely follow-up: Why do shallow circuits matter on NISQ hardware?
Go deeper: Variational algorithm · VQE/QAOA Playground
What does VQE compute?Beginner · Variational algorithms, VQE and QAOA
The ground-state energy of a Hamiltonian. By the variational principle, the energy ⟨ψ(θ)|H|ψ(θ)⟩ of any trial state is at least the true ground energy, so minimising over θ gives an upper bound that approaches it as the ansatz becomes expressive enough. The Hamiltonian is split into Pauli terms whose expectations are measured separately.
Likely follow-up: Why does the variational principle make it safe to minimise?
Go deeper: VQE/QAOA Playground
What does QAOA do?Beginner · Variational algorithms, VQE and QAOA
It targets combinatorial optimisation, such as MaxCut. It alternates p layers of a cost unitary (phases set by the objective) and a mixer (usually X rotations), with 2p angles tuned classically. Increasing p can only improve the best achievable result, and in the limit of large p it can approach the optimum.
Likely follow-up: What is the cost of one extra layer?
Go deeper: QAOA
What is an ansatz, and how do you choose one?Intermediate · Variational algorithms, VQE and QAOA
The ansatz is the parameterised circuit family. Chemistry-inspired ansätze such as UCCSD encode physical structure but are deep. Hardware-efficient ansätze use native gates and are shallow but have no problem-specific structure, which can cause trainability problems. The choice trades expressibility against depth and trainability.
Likely follow-up: What symmetries could you build in?
Go deeper: Ansatz
What is a barren plateau?Intermediate · Variational algorithms, VQE and QAOA
A region where gradients of the cost vanish exponentially with the number of qubits, so the optimiser cannot find a direction without exponentially many shots. It appears for sufficiently random, deep, expressive circuits and also for global cost functions and with noise. Mitigations include local costs, shallower or structured ansätze and good initialisation.
Likely follow-up: Does noise cause plateaus too?
Go deeper: Barren plateau
How do you get gradients of a quantum circuit?Intermediate · Variational algorithms, VQE and QAOA
The parameter-shift rule: for a gate generated by a Pauli, the derivative equals half the difference of the expectation with the angle shifted by +π/2 and −π/2. It is exact on hardware, unlike finite differences, which amplify shot noise. The price is two circuit evaluations per parameter per gradient.
Likely follow-up: How does the cost scale with the number of parameters?
How does shot noise affect the optimisation?Intermediate · Variational algorithms, VQE and QAOA
Each expectation is estimated from a finite number of shots, with standard error shrinking as 1/√shots. So to resolve an energy difference ε you need roughly 1/ε² shots per term, and the Hamiltonian may have many terms. Shot budget, not qubit count, can dominate runtime, which limits what VQE can reach at chemical accuracy.
Likely follow-up: How can you reduce the number of measurement settings?
Do variational algorithms beat classical computers today?Advanced · Variational algorithms, VQE and QAOA
Not in any established, practically useful case. For small systems classical solvers match or beat them. Their potential relies on larger problems where classical methods struggle, but trainability, noise and measurement cost are open obstacles, and some results show classical algorithms can simulate certain variational circuits. The honest answer is that it is an active research question.
Likely follow-up: What would convince you otherwise?
Common mistake: Claiming VQE or QAOA already outperform classical methods.
Go deeper: Do variational algorithms beat classical computers?
How does QAOA at depth p=1 perform on MaxCut?Advanced · Variational algorithms, VQE and QAOA
It is well studied: for 3-regular graphs, p=1 QAOA has a proven approximation ratio of at least 0.6924, while the classical Goemans–Williamson algorithm guarantees about 0.878 for MaxCut in general. Higher p improves the QAOA ratio. On small graphs, you can compute the exact expectation, as the playground on this site does.
Likely follow-up: What is the ratio for the triangle graph at p=1?
Go deeper: VQE/QAOA Playground
What is error mitigation and how does it differ from error correction?Advanced · Variational algorithms, VQE and QAOA
Mitigation reduces the bias in expected values without extra encoded qubits, by running extra circuits and post-processing: zero-noise extrapolation, probabilistic error cancellation, symmetry verification. It costs extra shots, often exponential in circuit size. Error correction instead encodes logical qubits to suppress errors in the quantum state itself.
Likely follow-up: Why does mitigation not scale indefinitely?
Go deeper: Error mitigation
What alternatives to gradient descent are used, and why?Advanced · Variational algorithms, VQE and QAOA
Gradient-free methods (COBYLA, Nelder–Mead), noise-robust stochastic methods (SPSA, which needs only two evaluations per step independent of parameter count), quantum natural gradient, and Adam. The right choice depends on shot noise and parameter count, and landscapes can have many local minima.
Likely follow-up: Why is SPSA popular on hardware?
Why is quantum error correction harder than classical?Beginner · Quantum error correction
You cannot copy an unknown state (no-cloning), measuring destroys superpositions, and errors are continuous, not just bit flips. Quantum codes get around this by spreading the state over entangled qubits and measuring parities (syndromes) that reveal errors without revealing the data.
Likely follow-up: How can a continuous error be corrected by discrete measurements?
Go deeper: Error Correction Lab
Explain the three-qubit bit-flip code.Beginner · Quantum error correction
Encode α|0⟩ + β|1⟩ as α|000⟩ + β|111⟩. Two parity measurements (Z₁Z₂ and Z₂Z₃) identify which single qubit flipped, if any, without learning α or β, and an X on that qubit fixes it. It corrects one bit flip but not phase flips; Shor’s nine-qubit code combines two layers to handle both.
Likely follow-up: What is the logical error rate if the physical flip probability is p?
Go deeper: Error Correction Lab
What is the threshold theorem?Intermediate · Quantum error correction
If the physical error rate per operation is below a threshold, then arbitrarily long computations can be done with overhead that grows only polylogarithmically, by concatenating or enlarging codes. Below threshold, bigger codes give exponentially lower logical error; above it, bigger codes make things worse. Threshold values depend on the code and noise model, around 1% for the surface code with circuit-level noise in common estimates.
Likely follow-up: Why do threshold values differ across noise models?
What is the surface code and why is it popular?Intermediate · Quantum error correction
A code on a 2D grid of qubits with local stabiliser checks (X-type and Z-type parities of neighbouring data qubits). It needs only nearest-neighbour interactions, has a high threshold, and its distance can be raised by enlarging the grid. The cost is overhead: a distance-d rotated surface code uses d² data qubits and d²−1 measure qubits, so 2d²−1 in total, which is 97 for d = 7.
Likely follow-up: How many physical qubits for d = 25?
Go deeper: Surface code · Error Correction Lab
What is a stabiliser code?Intermediate · Quantum error correction
A code defined as the common +1 eigenspace of a set of commuting Pauli operators (the stabilisers). Measuring them reveals the error syndrome without disturbing encoded information. Logical operators commute with all stabilisers but are not in the stabiliser group. The Steane, Shor and surface codes are all stabiliser codes.
Likely follow-up: How is the code distance defined?
What is the difference between a physical and a logical qubit?Intermediate · Quantum error correction
A physical qubit is a real device element subject to noise. A logical qubit is encoded across many physical qubits and protected by error correction. Its error rate can be far lower than that of its constituents, provided the physical error rate is below threshold and the decoding is fast enough.
Likely follow-up: How do you do gates on logical qubits?
What does a decoder do?Intermediate · Quantum error correction
It takes the stream of syndrome measurements and infers the most likely error so it can be corrected, or tracked in software. Decoding must run in real time, keeping pace with the code cycle, or backlog accumulates. Common approaches include minimum-weight perfect matching and neural or union-find decoders.
Likely follow-up: Why does latency matter?
What did Google’s Willow experiment show?Advanced · Quantum error correction
In Google Quantum AI’s published result, logical memory built from surface codes of distance 3, 5 and 7 improved with size: each step up in distance cut the logical error by a factor Λ of about 2.14 ± 0.02, reaching 0.143 % error per cycle at distance 7 on 101 qubits, with real-time decoding. This is evidence of operation below threshold. It is a memory experiment, not a full fault-tolerant computation. Check the paper for the exact figures.
Likely follow-up: What does Λ > 1 mean?
Go deeper: Research library
Why is the T gate costly on error-corrected machines?Advanced · Quantum error correction
Clifford gates can often be done transversally or by lattice surgery, but T is not Clifford and cannot be done transversally in the common codes. It is implemented by consuming magic states that are prepared noisily and purified by distillation, which takes many physical qubits and cycles. Reducing T-count and magic-state cost is a major research area.
Likely follow-up: What is magic-state cultivation?
What are qLDPC codes, and why are they attracting interest?Advanced · Quantum error correction
Quantum low-density parity-check codes use stabilisers acting on few qubits each, like classical LDPC codes, but can encode many logical qubits per block with better rate than the surface code, at the price of non-local connectivity. Proposals, such as IBM’s bivariate-bicycle codes, aim to cut qubit overhead substantially. Whether hardware can supply the connectivity is an open question.
Likely follow-up: What is the trade-off with the surface code?
How many physical qubits would useful algorithms need?Advanced · Quantum error correction
It depends heavily on assumptions. Gidney’s 2025 estimate for factoring RSA-2048 is fewer than one million noisy qubits running for under a week, assuming 0.1% error and a 1 µs cycle, down from his 2019 figure of about 20 million qubits and 8 hours under different assumptions. Treat any such number as a model-dependent estimate and quote the assumptions.
Likely follow-up: What drove the reduction?
Go deeper: Cryptography and PQC
What is decoherence?Beginner · Noise, decoherence and hardware platforms
The loss of quantum behaviour through unwanted interaction with the environment. Superpositions decay toward classical mixtures, and entanglement with the environment leaks information out of the qubit. It sets a time limit within which a computation must finish.
Likely follow-up: How does isolation conflict with control?
Go deeper: Decoherence · Noise Lab
What are T1 and T2?Beginner · Noise, decoherence and hardware platforms
T1 is the energy-relaxation time: how long a qubit takes to decay from |1⟩ toward |0⟩. T2 is the dephasing time: how long phase coherence between |0⟩ and |1⟩ lasts. T2 is at most 2·T1. Gate times must be much shorter than both for useful circuits.
Likely follow-up: Why is T2 ≤ 2T1?
Go deeper: Coherence time
What is a gate fidelity?Beginner · Noise, decoherence and hardware platforms
A measure of how close an implemented gate is to the ideal one, with 1 being perfect. Error per gate is roughly one minus fidelity. A fidelity of 99.9 % sounds high, but over 1,000 gates the chance of no error is about 0.999¹⁰⁰⁰ ≈ 37 %.
Likely follow-up: What is randomised benchmarking?
How do you budget circuit depth from the error rate?Intermediate · Noise, decoherence and hardware platforms
If each gate fails independently with probability p, the chance a circuit of G gates runs error-free is about (1−p)^G ≈ e^(−pG). So to keep success above 50 % you need G ≲ 0.69/p. At p = 1 % that is about 69 gates; at p = 0.1 % about 693. Real errors correlate and some are benign, so use this as a rough guide.
Likely follow-up: How does this change with error mitigation?
Go deeper: Noise Lab
What is depolarising noise?Intermediate · Noise, decoherence and hardware platforms
A channel that, with probability p, replaces the state with the maximally mixed state (or equivalently applies a random Pauli). On the Bloch sphere it shrinks the vector uniformly toward the centre. It is a convenient model, though real noise is usually biased and structured.
Likely follow-up: What noise channel models T1 decay?
Go deeper: Noise Lab
Compare superconducting and trapped-ion qubits.Intermediate · Noise, decoherence and hardware platforms
Superconducting qubits have fast gates (tens of nanoseconds) and fabricate with chip techniques but sit at millikelvin temperatures, have fixed connectivity and shorter coherence. Trapped ions have long coherence, high fidelity, and all-to-all connectivity within a chain but slower gates (microseconds to milliseconds) and harder scaling of a single trap. Both are leading platforms.
Likely follow-up: Which suits error correction better?
Go deeper: Hardware overview
What are neutral-atom and photonic approaches?Intermediate · Noise, decoherence and hardware platforms
Neutral atoms held in optical tweezers can be arranged in large reconfigurable arrays and entangled via Rydberg interactions, with demonstrations of hundreds to thousands of atoms; gate speed and repeat-rate are slower. Photonic approaches use light, operate at room temperature for some components and suit networking, but need deterministic photon–photon interactions or measurement-based schemes and must manage photon loss.
Likely follow-up: What is the main obstacle for photonics?
What is crosstalk?Intermediate · Noise, decoherence and hardware platforms
Unwanted coupling where operating one qubit disturbs its neighbours, through shared control lines, always-on couplings or frequency collisions. It lowers fidelity and complicates scaling, and is handled by calibration, frequency planning, dynamical decoupling and better hardware layout.
Likely follow-up: What is dynamical decoupling?
What is quantum volume and what are its limits?Advanced · Noise, decoherence and hardware platforms
A single-number benchmark from IBM: the largest square random circuit (width equals depth) a machine runs with heavy-output probability above 2/3. It captures qubit count, connectivity and error rates together, but it is tied to random circuits and says little about performance on a specific application, so teams increasingly use application-oriented benchmarks.
Likely follow-up: Why not report just the qubit count?
Go deeper: Quantum volume
What is leakage and why does it hurt error correction?Advanced · Noise, decoherence and hardware platforms
Leakage is when a qubit leaves the computational subspace into a higher level, which standard Pauli-error codes do not handle. Leaked qubits can spread errors to neighbours over many cycles, so experiments add leakage-removal steps and decoders must account for it.
Likely follow-up: How would you detect leakage?
How would you pick between platforms for a given project?Advanced · Noise, decoherence and hardware platforms
Start from the workload: depth and width needed, connectivity, required fidelity, and access model. Short, wide circuits suit fast, many-qubit chips; deep circuits with all-to-all structure suit ions; large-scale simulation of lattices suits neutral atoms. Also weigh software stack, queue times, cost and roadmap risk. Say there is no universal best choice.
Likely follow-up: What would you measure on a trial run?
Go deeper: Frameworks compared
Why do quantum computers need to be so cold?Beginner · Noise, decoherence and hardware platforms
Superconducting qubits work at about 10–20 millikelvin so that thermal energy is far below the qubit transition energy and the circuits become superconducting. Warmer temperatures excite the qubits randomly and destroy coherence. Other platforms such as ions and atoms use vacuum and lasers instead of deep cooling for the qubits themselves.
Likely follow-up: Which platforms do not need dilution refrigerators?
What is readout error and how can you correct it?Intermediate · Noise, decoherence and hardware platforms
Measurement sometimes reports the wrong value, for instance reading 1 as 0 more often than the reverse. You can calibrate by preparing known basis states, build a confusion matrix, and invert it on the measured distribution, or use more scalable tensored approximations. It corrects readout only, not gate errors.
Likely follow-up: Why does inverting the matrix become costly with qubit number?
What is randomised benchmarking?Intermediate · Noise, decoherence and hardware platforms
A method that applies random sequences of Clifford gates of varying length, followed by an inverting gate, and measures how the survival probability decays. The decay rate gives an average error per gate largely independent of state-preparation and measurement errors, which makes it a robust fidelity estimate.
Likely follow-up: What does it fail to tell you?
What limits the scaling of superconducting qubit systems?Advanced · Noise, decoherence and hardware platforms
Wiring and control electronics per qubit, cooling power, fabrication yield and frequency collisions, crosstalk, and the need for fast decoding hardware. Solutions under research include cryogenic control chips, multiplexed readout, modular chips linked by couplers and denser 3D packaging.
Likely follow-up: Which of these is a physics limit and which engineering?
How does BB84 quantum key distribution work?Beginner · Quantum cryptography and post-quantum security
Alice sends qubits prepared in random bases (Z or X) with random bit values. Bob measures each in a random basis. They publicly compare bases, keep the positions where they matched (about half), and sample some bits to estimate the error rate. An eavesdropper measuring in the wrong basis disturbs the state, raising the error rate to roughly 25 % on the kept bits for an intercept-resend attack, which exposes her.
Likely follow-up: Why does no-cloning matter here?
Go deeper: BB84 Lab
What does Shor’s algorithm break, and what does it not?Beginner · Quantum cryptography and post-quantum security
It breaks public-key schemes based on factoring or discrete logarithms: RSA, Diffie–Hellman and elliptic-curve cryptography. It does not break symmetric ciphers or hash functions directly. Grover’s algorithm gives only a quadratic speed-up there, so doubling key lengths (AES-256 rather than AES-128) is the standard response.
Likely follow-up: Why does Grover only halve the key size in bits?
Common mistake: Saying quantum computers break all encryption.
What is post-quantum cryptography?Beginner · Quantum cryptography and post-quantum security
Classical algorithms, run on ordinary computers, believed to resist both classical and quantum attacks. They are based on problems such as lattices, hashes and codes. It is not quantum technology and needs no special hardware, which makes it the main practical defence.
Likely follow-up: How is it different from QKD?
Which post-quantum standards has NIST published?Intermediate · Quantum cryptography and post-quantum security
In August 2024 NIST finalised FIPS 203 (ML-KEM, derived from CRYSTALS-Kyber, for key establishment), FIPS 204 (ML-DSA, from CRYSTALS-Dilithium, for signatures) and FIPS 205 (SLH-DSA, from SPHINCS+, a hash-based signature). A further signature standard based on Falcon, FN-DSA, was expected as FIPS 206, and HQC was selected in 2025 as a backup key-encapsulation method. Check NIST for the current status.
Likely follow-up: Why have a hash-based signature as well as a lattice one?
Go deeper: Lesson: post-quantum cryptography
What is ‘harvest now, decrypt later’?Intermediate · Quantum cryptography and post-quantum security
An adversary records encrypted traffic today and decrypts it once a capable quantum computer exists. Data that must stay secret for many years, such as health, state or financial records, is at risk now even though no such machine exists yet. This is the main reason migration is urgent for long-lived secrets.
Likely follow-up: How would you prioritise what to migrate first?
What are the limits of QKD in practice?Intermediate · Quantum cryptography and post-quantum security
It needs dedicated quantum channels, range is limited by fibre loss unless trusted relay nodes or repeaters are used, rates are modest, and it protects key exchange only, so you still need authentication, usually via classical or post-quantum methods. Real devices have side channels that attacks have exploited. Several national security agencies recommend post-quantum cryptography over QKD for general use.
Likely follow-up: What is device-independent QKD?
Go deeper: BB84 Lab
What is crypto-agility?Intermediate · Quantum cryptography and post-quantum security
Designing systems so that algorithms can be swapped without redesigning everything: configurable negotiation, inventories of where cryptography is used, and the ability to run hybrid schemes that combine a classical and a post-quantum algorithm. It limits the cost of both migration now and further changes later.
Likely follow-up: What is a hybrid key exchange?
How large a quantum computer is needed to break RSA-2048?Advanced · Quantum cryptography and post-quantum security
Estimates fall as algorithms improve. Gidney and Ekerå’s 2019 estimate was about 20 million noisy qubits and 8 hours. Gidney’s 2025 paper estimates fewer than one million noisy qubits and under a week, with assumptions of 0.1 % physical error and a 1 µs cycle. Today’s machines have hundreds to low thousands of physical qubits without that error-corrected capacity, so RSA-2048 is not currently at risk, but planning horizons are driven by the trend.
Likely follow-up: Which assumptions would you stress-test?
Common mistake: Quoting a single number without its assumptions.
Go deeper: Shor’s Lab
Why are lattice problems believed to resist quantum attack?Advanced · Quantum cryptography and post-quantum security
No efficient quantum algorithm is known for problems like Learning With Errors or Short Integer Solution; Shor’s period-finding does not apply to them. Their hardness rests on worst-case-to-average-case reductions to lattice problems. This is a belief supported by years of cryptanalysis, not a proof, and one candidate (SIKE) was broken by a classical attack in 2022, which is why diversity of assumptions matters.
Likely follow-up: What happened to SIKE?
How would you plan an organisation’s migration?Advanced · Quantum cryptography and post-quantum security
Inventory all cryptographic use (protocols, libraries, certificates, hardware), classify data by required secrecy lifetime, prioritise long-lived confidential data and slow-to-change systems, adopt hybrid modes for key exchange first, test performance and size effects (post-quantum keys and signatures are larger), and track regulator timelines. Treat it as a multi-year programme.
Likely follow-up: Which systems are hardest to change?
Is Bitcoin safe from quantum computers?Beginner · Quantum cryptography and post-quantum security
Not guaranteed in the long term. Signatures based on elliptic curves could be forged by a large Shor-capable machine, and addresses whose public keys are already revealed are most exposed. Hashing is affected only by Grover’s quadratic speed-up. Today’s machines are far too small, and migrating to post-quantum signatures is a topic of active discussion.
Likely follow-up: Which part is more exposed, signatures or hashing?
Why are post-quantum keys and signatures larger?Intermediate · Quantum cryptography and post-quantum security
Lattice, code and hash-based schemes use bigger mathematical objects than elliptic curves to achieve their security level. Typical keys and signatures are hundreds to thousands of bytes or more, against tens of bytes for elliptic curves. This affects handshake size, certificates and constrained devices, so deployment needs testing.
Likely follow-up: What protocols are hit hardest by larger sizes?
What is quantum random number generation and is it cryptographically useful?Intermediate · Quantum cryptography and post-quantum security
Hardware that measures a quantum process such as photon path to produce random bits whose randomness rests on physics instead of algorithms. It can supply high-quality entropy, but practical devices still need testing for bias and a classical post-processing step, and a well-designed classical entropy source is also adequate for most uses.
Likely follow-up: What does a randomness extractor do?
What are the security assumptions behind BB84 and where can real systems fail?Advanced · Quantum cryptography and post-quantum security
Proofs assume ideal single-photon sources, perfect detectors and an authenticated classical channel. Real systems use weak laser pulses (opening photon-number-splitting attacks, countered with decoy states) and detectors that have been blinded in lab attacks. Security of an implementation is therefore about the device as built, not just the protocol.
Likely follow-up: What is the decoy-state method?
Can quantum computers solve NP-complete problems efficiently?Beginner · Complexity theory and quantum advantage
Not as far as anyone knows, and most researchers believe they cannot. Grover gives a quadratic speed-up for brute-force search, which is useful but does not make exponential problems polynomial. A claim that a quantum computer ‘tries every answer at once’ is a misconception, since measurement returns only one outcome.
Likely follow-up: What would it mean for BQP to contain NP?
Common mistake: Saying quantum computers solve NP-complete problems in polynomial time.
Go deeper: Myths, debunked
What is quantum advantage (or supremacy)?Beginner · Complexity theory and quantum advantage
A demonstration that a quantum device performs some task faster than any classical computer could. The first claims, from Google in 2019 and later from other groups, used random-circuit sampling, a task chosen to be hard to simulate but with no practical use. Classical simulation methods have since narrowed some of those gaps, so claims are best read with the classical baseline in mind.
Likely follow-up: Why is a useless task acceptable for a first demonstration?
Define BQP and relate it to P and NP.Intermediate · Complexity theory and quantum advantage
BQP: decision problems solvable by a quantum computer in polynomial time with error at most 1/3. P is contained in BQP, and BQP is contained in PSPACE. The relationship to NP is not known: it is believed that BQP does not contain NP, and also that BQP is not contained in NP, but neither is proven.
Likely follow-up: Why is proving P ≠ BQP hard?
What is an oracle separation?Intermediate · Complexity theory and quantum advantage
A result that relative to some oracle, two classes differ, for example Simon’s problem shows a quantum query advantage over classical randomised queries. Such results are evidence, not proofs of unrelativised separations, because the oracle may hide structure that real problems lack.
Likely follow-up: Give an example where relativisation misleads.
How should you evaluate a claim of quantum advantage?Intermediate · Complexity theory and quantum advantage
Check: which problem and input size; the strongest classical baseline, including recent tensor-network or approximation methods; whether the output can be verified; whether noise was handled honestly; and whether the task has any use. Wall-clock claims should state hardware on both sides.
Likely follow-up: What would count as practical advantage?
What is random circuit sampling and why is it hard to simulate?Intermediate · Complexity theory and quantum advantage
Run a random circuit and sample bitstrings from its output distribution. Exact classical simulation cost grows exponentially with the number of qubits and depth in general, and there is complexity-theoretic evidence that sampling from such distributions is hard under plausible assumptions. Verification is done statistically through cross-entropy benchmarking.
Likely follow-up: What is the cross-entropy benchmark measuring?
What is dequantisation?Advanced · Complexity theory and quantum advantage
Work by Ewin Tang and others showed that some quantum machine-learning speed-ups, such as for recommendation systems, vanish if the classical algorithm is given comparable sampling access to the data. It is a reminder that speed-ups often depend on input and output models, and that a fair comparison needs equal access assumptions.
Likely follow-up: How does this relate to HHL?
Go deeper: Quantum algorithms
Which problems have the strongest case for practical advantage?Advanced · Complexity theory and quantum advantage
Simulating quantum systems in chemistry and materials, where the problem itself is quantum, and factoring-type problems for cryptanalysis. For optimisation and machine learning the case is weaker and depends on unresolved questions. Claims should be matched to evidence, and ‘it depends on the problem size and error rates’ is a legitimate answer.
Likely follow-up: What resource estimates exist for chemistry?
What does the Gottesman–Knill theorem imply for claims of advantage?Advanced · Complexity theory and quantum advantage
Circuits of Clifford gates with Pauli measurements, even though highly entangled, are classically simulable in polynomial time. So entanglement alone is not the source of quantum speed-up, and non-Clifford resources such as T gates or magic states are required. Any advantage claim should state where non-Clifford power enters.
Likely follow-up: How do simulators exploit near-Clifford circuits?
What is the difference between P, NP and BQP in plain words?Beginner · Complexity theory and quantum advantage
P: problems a classical computer solves quickly. NP: problems whose answers can be checked quickly. BQP: problems a quantum computer solves quickly with small error. P sits inside BQP; whether BQP overlaps NP-complete problems is believed no, but is unproven.
Likely follow-up: Is factoring NP-complete?
Why does a quantum computer not just try all answers at once?Beginner · Complexity theory and quantum advantage
The state may hold amplitude on all answers, but measuring returns one at random according to probabilities. Algorithms work by arranging interference so that wrong answers cancel and right ones grow before measurement. If you cannot arrange that, you gain nothing.
Likely follow-up: Which algorithm shows this most clearly?
Go deeper: Myths, debunked
What is query complexity and why do researchers use it?Intermediate · Complexity theory and quantum advantage
It counts the number of calls to an oracle, ignoring other computation. It allows proven lower bounds, so results like Grover’s √N optimality are rigorous. The limitation is that a query speed-up may not turn into a time speed-up if the oracle is expensive to build.
Likely follow-up: What is the lower bound for unstructured search?
What is the Church–Turing thesis and does quantum computing challenge it?Intermediate · Complexity theory and quantum advantage
The thesis says anything effectively computable is computable by a Turing machine. Quantum computers compute the same set of functions, so computability is unchanged. The extended version, about efficient computation, is the one quantum computing challenges, since factoring is believed efficient quantumly but not classically.
Likely follow-up: Which version does Shor’s algorithm challenge?
What is the relationship between BQP and the polynomial hierarchy?Advanced · Complexity theory and quantum advantage
Relative to an oracle, BQP is not contained in the polynomial hierarchy (Raz and Tal’s oracle separation), which is evidence that quantum computers can do things beyond classical polynomial-hierarchy power. It is still an oracle result, so it is not a proof about the real world.
Likely follow-up: Why do oracle results not transfer directly?
What is the evidence that quantum speed-up for factoring is real?Advanced · Complexity theory and quantum advantage
Shor’s algorithm is a proven polynomial-time quantum algorithm, so the quantum side is solid. The classical side is the uncertain part: no polynomial-time classical algorithm is known and decades of effort failed, but absence of a proof is not a proof of impossibility. So the speed-up is conditional on that belief.
Likely follow-up: What would change if a fast classical factoring algorithm appeared?
What is the tensor product of two qubit states?Beginner · Maths and linear algebra
It builds the joint state of two systems: (a|0⟩ + b|1⟩) ⊗ (c|0⟩ + d|1⟩) = ac|00⟩ + ad|01⟩ + bc|10⟩ + bd|11⟩. Dimensions multiply, so n qubits need 2ⁿ amplitudes. A joint state that cannot be factored this way is entangled.
Likely follow-up: Is (|00⟩ + |11⟩)/√2 a product state? Prove it.
Go deeper: The math of a qubit
What is the difference between a Hermitian and a unitary matrix?Beginner · Maths and linear algebra
A Hermitian matrix equals its conjugate transpose and has real eigenvalues; observables are Hermitian. A unitary matrix has its conjugate transpose as its inverse, preserves lengths, and has eigenvalues of magnitude one; gates are unitary. Some matrices, such as the Paulis, are both.
Likely follow-up: Which of H, X, S is Hermitian?
What are bra-ket notation and the inner product?Beginner · Maths and linear algebra
|ψ⟩ is a column vector, ⟨ψ| its conjugate transpose, and ⟨φ|ψ⟩ the inner product, a complex number. |⟨φ|ψ⟩|² is the probability of finding the system in |φ⟩ when it is in |ψ⟩. States are orthogonal when the inner product is zero.
Likely follow-up: What is ⟨+|−⟩?
Find the eigenvalues and eigenvectors of X.Intermediate · Maths and linear algebra
X = [[0,1],[1,0]]. Solving det(X − λI) = λ² − 1 = 0 gives λ = ±1. The eigenvector for +1 is (|0⟩ + |1⟩)/√2 = |+⟩, and for −1 it is (|0⟩ − |1⟩)/√2 = |−⟩. So measuring in the X basis means projecting onto |±⟩.
Likely follow-up: What are the eigenvectors of Y?
What is the expectation value of an observable?Intermediate · Maths and linear algebra
⟨O⟩ = ⟨ψ|O|ψ⟩, the average of measurement results over many repeated preparations. For Z on α|0⟩ + β|1⟩ it equals |α|² − |β|². Variational algorithms estimate such expectations from shots.
Likely follow-up: What is ⟨X⟩ for |+⟩?
Compute the state after H⊗H on |00⟩.Intermediate · Maths and linear algebra
Each H gives (|0⟩ + |1⟩)/√2, so the joint state is (|00⟩ + |01⟩ + |10⟩ + |11⟩)/2, a uniform superposition with probability ¼ each. In general H⊗n on |0…0⟩ gives the uniform superposition over all 2ⁿ strings, the first step in many algorithms.
Likely follow-up: What does H⊗n do to |s⟩ for a general string s?
What is the trace and partial trace?Intermediate · Maths and linear algebra
The trace sums diagonal entries. The partial trace over subsystem B of a joint density matrix gives the reduced state of A, which describes everything measurable on A alone. For a Bell pair the reduced state is I/2.
Likely follow-up: Compute the reduced state of (|00⟩ + |01⟩)/√2 on qubit 1.
What is the spectral theorem and why does it matter here?Advanced · Maths and linear algebra
A normal operator (Hermitian and unitary matrices included) is diagonalisable in an orthonormal eigenbasis. For an observable, the eigenvalues are the possible measurement results and the eigenvectors the corresponding states; for a Hamiltonian, the lowest eigenvalue is the ground-state energy, which VQE estimates.
Likely follow-up: What does this say about a unitary’s eigenvalues?
What is the commutator, and what does it tell you?Advanced · Maths and linear algebra
[A,B] = AB − BA. Operators that commute can be measured simultaneously with definite results; those that do not obey an uncertainty relation. For Paulis, [X,Y] = 2iZ. Commutation also determines which Pauli terms of a Hamiltonian can share measurement settings.
Likely follow-up: State the generalised uncertainty relation.
Go deeper: Uncertainty principle
What is the Hilbert–Schmidt (or Frobenius) view of 2×2 operators?Advanced · Maths and linear algebra
Any 2×2 matrix can be expanded as a combination of I, X, Y and Z, with coefficients Tr(σM)/2. A density matrix therefore is ρ = (I + r·σ)/2 with Bloch vector r, which is why the Bloch picture works for mixed states too.
Likely follow-up: What constraint does positivity put on r?
What is a unit vector and why must states be normalised?Beginner · Maths and linear algebra
A vector of length one. Total probability must be one, so |α|² + |β|² = 1 for a qubit. Unitary gates preserve length, which keeps states normalised throughout a circuit.
Likely follow-up: Normalise (3|0⟩ + 4i|1⟩).
What is the outer product and how does it build projectors?Intermediate · Maths and linear algebra
|ψ⟩⟨ψ| is a matrix. For a normalised |ψ⟩ it is a projector onto that state, equal to its own square. Density matrices of pure states are exactly this, and measurement projectors in a basis are |k⟩⟨k|.
Likely follow-up: Write |+⟩⟨+| as a matrix.
Show that H = (X + Z)/√2.Intermediate · Maths and linear algebra
X + Z = [[1,1],[1,−1]], and dividing by √2 gives the Hadamard matrix. So H is a rotation of π about the axis halfway between X and Z on the Bloch sphere, which explains why it swaps the X and Z bases.
Likely follow-up: What is H² and why?
What is the singular value decomposition and where does it appear?Advanced · Maths and linear algebra
Any matrix factors as UΣV†, with unitary U and V and non-negative diagonal Σ. Applied to the coefficient matrix of a bipartite pure state it gives the Schmidt decomposition, and tensor-network simulators truncate small singular values to compress states.
Likely follow-up: What do truncated singular values cost in accuracy?
Write a circuit that makes a Bell pair and measures it. What counts do you expect?Beginner · Quantum software and coding questions
H on qubit 0, CNOT from 0 to 1, measure both. Over many shots you expect roughly half 00 and half 11 and essentially no 01 or 10 on a simulator; on hardware a few percent of the odd outcomes come from noise. The same circuit appears in all seven frameworks on this site’s comparison pages.
Likely follow-up: How would you add a third qubit for a GHZ state?
Go deeper: Frameworks compared · Circuit Builder
Which quantum framework would you pick for a first project, and why?Beginner · Quantum software and coding questions
A reasonable answer names one and justifies it by the task: Qiskit for IBM hardware and a broad ecosystem, Cirq for Google-style circuit control, PennyLane for variational and machine-learning work with automatic differentiation, Q# for resource estimation, Braket for multi-vendor cloud access, pytket for compilation, CUDA-Q for GPU-accelerated simulation. There is no single best.
Likely follow-up: What would make you switch?
Go deeper: Head-to-head comparisons
Why do bitstrings look reversed between frameworks?Intermediate · Quantum software and coding questions
Qubit ordering conventions differ: some frameworks treat qubit 0 as the least significant bit and print it on the right, others as the leftmost. The same circuit can therefore print “01” in one and “10” in another. Always check the convention before comparing results or converting circuits.
Likely follow-up: How would you detect this in a test?
Go deeper: Circuit Converter
How would you write a simple statevector simulator?Intermediate · Quantum software and coding questions
Store 2ⁿ complex amplitudes. To apply a single-qubit gate to qubit k, loop over index pairs differing in bit k and mix them with the 2×2 matrix; for a CNOT, swap pairs where the control bit is 1. Memory is 2ⁿ·16 bytes in double complex, so about 16 GiB at 30 qubits. Sampling: draw from the probabilities |amplitude|².
Likely follow-up: How would you handle measurement collapse?
What is transpilation, and what could go wrong?Intermediate · Quantum software and coding questions
Rewriting a circuit to a device’s native gates and connectivity. Possible problems: depth blow-up from SWAPs, accuracy loss from approximate synthesis, global phase dropped (harmful if the circuit is later controlled), and optimisations that assume ideal gates. Compare the transpiled circuit’s output to the original on a simulator.
Likely follow-up: How would you verify equivalence?
Go deeper: Qiskit
How would you test a quantum program?Intermediate · Quantum software and coding questions
Use small cases with known answers on a statevector simulator, assert on probabilities with a tolerance rather than exact equality, check invariants (normalisation, symmetries), use property-based tests, and keep separate hardware tests that account for noise through statistical bounds on counts.
Likely follow-up: How many shots do you need for a given tolerance?
Coding task: implement the oracle and diffusion for 2-qubit Grover marking |11⟩.Intermediate · Quantum software and coding questions
Prepare H on both qubits. Oracle: a controlled-Z between the qubits flips the sign of |11⟩. Diffusion: H on both, X on both, controlled-Z, X on both, H on both. For N = 4 with one marked item, one iteration finds |11⟩ with certainty, because sin θ = ½ gives θ = π/6 and (2·1+1)θ = π/2. Verify with a simulator. Code samples on this site are not executed by us, so run yours.
Likely follow-up: How many iterations for 3 qubits and one marked item?
Go deeper: Grover’s Builder
How can a simulator go beyond 50 qubits?Advanced · Quantum software and coding questions
Exact statevectors need 2ⁿ amplitudes, about 16 PiB at 50 qubits, so larger simulations use structure: tensor networks for low-entanglement or shallow circuits, stabiliser methods for Clifford-dominated circuits, Pauli propagation, or sampling methods. They trade generality for scale and can fail when entanglement or non-Clifford content grows.
Likely follow-up: When does a matrix-product-state simulator fail?
How would you design an API for running circuits on several hardware vendors?Advanced · Quantum software and coding questions
Define an intermediate representation for circuits (for example OpenQASM), separate the device description (native gates, connectivity, noise data) from the circuit, compile per backend, and return results in a common format. Handle job queues asynchronously, record backend calibration data with each result for reproducibility, and surface convention differences like qubit order explicitly.
Likely follow-up: What would you store with each result?
Go deeper: Circuit Converter
What is OpenQASM and why is it used?Beginner · Quantum software and coding questions
A text format for describing quantum circuits that many tools can read and write. It lets you move a circuit between frameworks, store it, and send it to hardware. Versions differ (2 and 3), and not every tool supports every feature, so check the version.
Likely follow-up: What might be lost in conversion?
Go deeper: Circuit Converter
How many shots should you run, and why does it matter?Beginner · Quantum software and coding questions
Each probability is estimated from counts, with standard error about √(p(1−p)/shots). For p = 0.5 and 1,000 shots the error is about 1.6 percentage points; for 10,000 shots about 0.5. Choose shots from the precision you need.
Likely follow-up: How many shots for ±0.1 percentage points at p = 0.5?
Write the steps to implement a quantum random number generator.Intermediate · Quantum software and coding questions
Put each qubit in |+⟩ with a Hadamard, measure, and concatenate the bits. On an ideal simulator each bit is unbiased. On real hardware noise causes bias, so you would test the output statistically and apply a randomness extractor before use in security. A simulator’s pseudo-randomness is not true randomness.
Likely follow-up: Why is a simulator output not suitable for key generation?
How would you debug a circuit that gives wrong probabilities?Intermediate · Quantum software and coding questions
Reduce it to the smallest failing case, check against hand-computed amplitudes on a statevector simulator, inspect gate order and qubit ordering conventions, verify the measurement mapping, and only then consider noise. Bisect the circuit by measuring after intermediate layers.
Likely follow-up: What is the most common cause you have seen?
What is parameter binding and why does it matter for variational code?Intermediate · Quantum software and coding questions
Building the circuit once with symbolic parameters and assigning numbers at run time avoids rebuilding and re-transpiling it for each optimiser step. It saves large amounts of time when thousands of evaluations are needed.
Likely follow-up: What else can you cache?
Go deeper: PennyLane
How would you estimate the resources of a fault-tolerant algorithm?Advanced · Quantum software and coding questions
Count logical qubits and T gates (or rotations), choose a code and distance from the target logical error, compute physical qubits per logical qubit, add magic-state factories, and divide total operations by the cycle time. Tools like Q#’s resource estimator automate this. The result depends strongly on the assumptions, so report them.
Likely follow-up: Which assumption moves the answer the most?
Go deeper: Q#
Why do you want to work in quantum computing?Beginner · Careers, industry and behavioural questions
Give a specific, honest reason: a problem you found compelling, a project you built, or a concrete application area. Mention that you understand the field is early and uncertain. Avoid generic claims about ‘changing the world’; interviewers hear them constantly.
Likely follow-up: What would you work on if quantum hardware stalled?
Explain quantum computing to a non-technical manager in 60 seconds.Beginner · Careers, industry and behavioural questions
A sample structure: classical computers use bits that are 0 or 1; quantum computers use qubits whose states can be combined so that, for certain problems, wrong answers cancel and right answers reinforce. It does not speed up everything; the promising areas are simulating molecules and materials and some cryptographic problems. Machines today are small and error-prone, so the near-term work is learning and benchmarking.
Likely follow-up: What question would they ask next?
Go deeper: Learn
How do you handle hype when advising a business?Intermediate · Careers, industry and behavioural questions
Ask what problem they have and what the classical baseline achieves. Separate the proven (cryptography risk, simulation) from the speculative (optimisation, machine learning), recommend low-cost preparation such as skills building and crypto inventory, and set measurable checkpoints before any larger investment.
Likely follow-up: Give an example of saying no to a quantum project.
Go deeper: Myths, debunked
Tell me about a technical project you are proud of.Intermediate · Careers, industry and behavioural questions
Use a structure: context, your specific role, the technical decision you made and its alternatives, the result with a measure, and what you would change. For a quantum project, include how you validated correctness, for example against a known answer or a simulator.
Likely follow-up: What went wrong, and how did you find out?
How do you keep up with a fast-moving field?Intermediate · Careers, industry and behavioural questions
Name concrete habits: reading arXiv quant-ph alongside a few review articles, following release notes of one framework, re-implementing a paper’s result, and writing up what you learned. Say how you judge claims, for example by checking the baseline and the assumptions.
Likely follow-up: Which recent paper changed your mind?
Go deeper: Research library
Which roles exist in quantum, and how do they differ?Intermediate · Careers, industry and behavioural questions
Common ones: hardware physicist or engineer (devices, control, cryogenics), quantum software or compiler engineer, algorithm or applications researcher, error-correction theorist, and customer-facing roles such as solutions engineer or developer advocate. Requirements vary a lot by employer, so read each job description closely.
Likely follow-up: Which fits your background best?
Go deeper: Careers
How would you plan an investigation of whether quantum computing suits a company’s problem?Advanced · Careers, industry and behavioural questions
Define the business metric; find the best classical solution and its cost; characterise the problem’s structure; check known quantum results for that structure; estimate the qubits and gates for a useful instance; if the estimate is far beyond hardware, record a trigger for revisiting. Deliver a short report with assumptions explicit.
Likely follow-up: What would make you recommend waiting?
Questions worth asking your interviewerAdvanced · Careers, industry and behavioural questions
Ask about the team’s current hardest problem, how they validate results against classical baselines, their access to hardware or simulators, how research turns into product, and how success in the role is measured. These show calibrated interest and give you information on the team’s maturity.
Likely follow-up: Which answer would worry you?
What background do you need to start in quantum computing?Beginner · Careers, industry and behavioural questions
Comfort with linear algebra (vectors, matrices, eigenvalues), basic probability and some programming, usually Python. Physics helps for hardware roles but is not required for software roles. A concrete route is to learn the maths, build circuits in one framework, and finish a small project you can explain.
Likely follow-up: Which gap in your background would you close first?
Go deeper: Linear algebra for quantum
How would you describe your quantum project in a CV?Beginner · Careers, industry and behavioural questions
State the problem, what you built, how you checked it and one measured result. For example: implemented Grover search on a simulator, verified against the analytic success probability, and compared iteration counts. Avoid vague words like ‘worked on quantum algorithms’.
Likely follow-up: What number would you put in the first line?
A colleague says a quantum approach will give a 1000× speed-up. How do you respond?Intermediate · Careers, industry and behavioural questions
Ask what is being compared: which classical baseline, which problem size, wall-clock or query count, and what input and output assumptions. Ask for the resource estimate in qubits and gates. Then offer to test a small instance. Challenge the claim, not the person.
Likely follow-up: What if they cannot give a baseline?
Tell me about a time you disagreed with a technical decision.Intermediate · Careers, industry and behavioural questions
Use a structure: the decision, why you disagreed, the evidence you gathered, how you raised it, and the outcome including if you were wrong. Interviewers want to see that you argue from data and can commit once a decision is made.
Likely follow-up: What would you do differently now?
How do you explain uncertainty in results to non-specialists?Intermediate · Careers, industry and behavioural questions
Give the result with its range and say what drives the range, such as shot noise or hardware error. Use a familiar comparison, like a poll with a margin of error, and say what further data would narrow it.
Likely follow-up: How many shots did you use and why?
How would you judge whether a quantum startup’s roadmap is credible?Advanced · Careers, industry and behavioural questions
Look for published, independently checkable results; error rates and qubit counts stated with the metric used; a path from current devices to the claimed target with named technical milestones; and consistency of past claims with what was delivered. Treat dates for fault-tolerant machines as forecasts, not facts.
Likely follow-up: Which single metric would you ask for first?
A four-step answer structure
Step 1
Define
State the term in one precise sentence.
Step 2
Example
Give a small numerical example or a two-qubit case.
Step 3
Limit
Say what it does not do, or what is assumed.
Step 4
Connect
Link it to an algorithm, a device or a real use.
Study plans
One-week sprint
- Day 1–2: fundamentals, gates, Bell state by hand
- Day 3: entanglement, teleportation, CHSH
- Day 4: Grover, Shor, phase estimation
- Day 5: noise, error correction, hardware trade-offs
- Day 6: build one circuit in a framework and test it
- Day 7: mock answers out loud, review weak topics
Four-week plan
- Week 1: linear algebra, qubits, gates, measurement
- Week 2: entanglement, algorithms, complexity
- Week 3: noise, error correction, variational methods, cryptography
- Week 4: coding practice, project stories, mock interviews
Practise with the labs
Frequently asked questions
What topics come up most in quantum computing interviews?
Qubits and measurement, gates and circuits, entanglement, the main algorithms (Grover, Shor, phase estimation), noise and error correction, and one hands-on framework. Research roles add complexity theory and hardware; software roles add coding and compilation.
Do I need a physics PhD to pass a quantum interview?
Not for every role. Research and hardware roles often expect advanced degrees, while software, developer-relations and applications roles frequently value strong programming, linear algebra and clear communication. Read each job description closely.
How should I prepare in one week?
Spend two days on fundamentals and gates (including hand calculations), two on algorithms and entanglement, one on error correction and hardware, one building a small circuit in a framework, and one on mock answers out loud.
Are these the actual questions companies ask?
No. They are model questions based on common themes in the field, written for study. Companies set their own questions, so use these to build understanding rather than to memorise.
How do I handle a question I cannot answer?
Say what you do know, state the assumption you would check, and reason from first principles. Interviewers usually value a clear thought process and honest limits over a guess.
Can I use this site’s labs to prepare?
Yes. The Bloch sphere, circuit builder, Grover, Shor, teleportation, error-correction, noise and VQE/QAOA labs let you test the ideas behind the answers.