Question 1: Quantum Computing and Its Computing Architecture
Source: Chapter 00, slides 7-32
Why questions (Q&A)
Q1. Why does classical transistor scaling (Moore’s law) fail to keep delivering exponential speedup, and why is this used to motivate quantum computing?
Step 1, the physical wall. Transistor density scaling runs into physical limits around the few-nanometer node: quantum tunneling through gate oxides, heat dissipation per unit area, and lithography cost all stop improving at the historical exponential rate.
Step 2, the mismatch with problem difficulty. Classical compute-per-dollar growth is flattening, even as some problems (factoring, quantum chemistry simulation, unstructured search) have classical cost that itself grows exponentially in the problem size .
Step 3, where the quantum resource comes from instead. Quantum architectures do not rely on packing more transistors. They get their exponential resource, the -dimensional state space of qubits, from adding qubits linearly:
So the motivation is structural (a different scaling law entirely), not a continuation of fabrication trends.
Q2. Why is a quantum algorithm staged as preparation, then computation, then measurement, and why must measurement come last?
Step 1, which stages are reversible. Only preparation and computation are unitary and reversible. Measurement is a projective, non-unitary operation that collapses superposition and destroys the phase relationships between amplitudes.
Step 2, why phase relationships must survive. Interference, the mechanism that produces a speedup, needs those phase relationships to survive across the whole computation. Measuring early would throw away exactly the information later gates need in order to interfere constructively toward the correct answer.
Step 3, why the non-reversible step is deferred. The non-reversible step is deferred to the end. (Mid-circuit measurement is used only in specific protocols, such as error-correction syndrome extraction, where the measured qubit is not carrying the answer, so collapsing it early costs nothing.)
Q3. Why does superposition alone not give a computational advantage without interference?
Step 1, what a bare superposition gives you. A uniform superposition over basis states, if measured immediately, returns one uniformly random -bit string, no better than a classical random guess.
Step 2, where the advantage comes from. The advantage comes from the gate sequence shaping the amplitudes so that:
- paths leading to wrong answers cancel (destructive interference), and
- paths leading to the correct answer reinforce (constructive interference),
before the final measurement.
Conclusion. Superposition supplies the many parallel amplitudes; interference is what turns them into a biased, useful probability distribution.
Q4. Why does measurement collapse a superposition, and why is this irreversible while unitary computation is reversible?
Step 1, the algebraic reason measurement has no inverse. A projective measurement operator is a rank-reducing projection onto an eigenspace of the observable. Many distinct input states can map to the same post-measurement outcome, so the map has no inverse.
Step 2, why a unitary gate is different. A unitary gate satisfies , so every unitary step can be undone exactly and no information about the input is lost.
Conclusion. Measurement is the one place in the pipeline where information is discarded (turned into a single classical outcome) rather than merely transformed.
Q5. Why is a quantum computer not just a faster classical computer? Which architectural phenomenon does each pipeline stage rely on?
Preparation typically uses superposition, and often entanglement (via multi-qubit gates such as a controlled-NOT), to spread the state across many basis components at once.
Computation uses unitary gates to steer relative phases, maintaining superposition while building up interference patterns.
Measurement is where interference becomes observable, as a skewed probability distribution over outcomes rather than a single definite classical value.
Conclusion. None of these three ingredients (superposition, entanglement, interference) has a classical analogue that scales the same way, so raw clock speed is not the relevant point of comparison.
Q6. Why do real quantum devices need error correction while the idealized circuit model in the slides does not mention it?
Step 1, the physical source of error. Physical qubits decohere (lose their quantum state to the environment) on a timescale set by , and each physical gate has a nonzero error rate (commonly to for current hardware).
Step 2, the consequence for circuit depth. Without correction, circuit depth is bounded by how many gates can run before accumulated error makes the output useless.
Step 3, what error correction buys back. Quantum error correction encodes one logical qubit across many physical qubits, so that errors can be detected and corrected without collapsing the encoded information.
Why the idealized model skips this. The idealized circuit model in an introductory chapter assumes perfect gates and infinite coherence time, so this overhead layer is out of scope there.
Q7. Why is quantum parallelism fundamentally different from multi-core classical parallelism?
Step 1, the classical picture. A multi-core machine runs independent registers, each holding its own classical value, and produces separate outputs at once. The resource cost scales linearly with .
Step 2, the quantum picture. A superposition over basis states is a single register in one exponentially large joint state. There are not separate physical copies computing independently, and a measurement yields exactly one sample, not answers.
Conclusion. Extracting a useful global property (not just one random sample) requires the interference-based algorithm design described in Why Q3, not just having many amplitude terms present at once.
Math questions (Q&A)
Q1. How many real parameters describe a general (normalized, up to global phase) state of qubits, versus a classical probability distribution over 3 bits?
Step 1, count the raw complex parameters. A 3-qubit state vector lives in , so it has 8 complex amplitudes, which is 16 real numbers.
Step 2, subtract the physical constraints.
- Normalization () removes one real degree of freedom.
- Global phase is physically unobservable (Question 2, Why Q4), removing one more.
Step 3, the classical comparison. A classical distribution over outcomes has 8 probabilities constrained to sum to 1:
Conclusion. The quantum state carries roughly twice as many free real parameters as the classical distribution over the same number of basis labels ( versus ).
Q2. For qubits, compare the number of gates needed to prepare an equal superposition of all basis states with the number of classical function evaluations needed to check every input.
Step 1, the quantum preparation cost. Preparing from takes exactly 10 Hadamard gates, one per qubit, since and the qubits are independent at that point.
Step 2, the classical enumeration cost. A classical algorithm that needs to inspect for every needs
Step 3, the gap. The gate count for preparation grows linearly (10), while the classical exploration cost grows exponentially (1024).
Caveat. This gap is why preparation is cheap. It says nothing yet about the cost of extracting a useful answer, which depends on the interference structure of the rest of the circuit (Why Q3 above).
Q3. Trace the three-stage pipeline for a 2-qubit circuit that starts at , applies to qubit 1, applies a controlled-NOT (control qubit 1, target qubit 2), and then measures both qubits. Give the state after each stage and the measurement probabilities.
Preparation. Start at in the ordered basis .
Computation, step 1 ( on qubit 1).
Computation, step 2 (controlled-NOT, control 1, target 2). The term has control , so its target flips:
the Bell state.
Measurement.
Only or can ever be observed, each with probability one half.
Q4. A qubit is prepared in and measured in the computational basis. Compute the Shannon entropy of the outcome distribution before and after the measurement, and interpret the drop.
Step 1, entropy before measurement. The outcome distribution is , so
the uncertainty about the eventual classical outcome.
Step 2, entropy after measurement. A single measurement produces a definite classical bit (say ), so the post-measurement entropy about that already-obtained outcome is
Interpretation. The 1 bit of uncertainty was resolved by the measurement, and the qubit’s superposition (which carried more than 1 bit of continuous amplitude/phase information before collapse) is gone; only the 1 classical bit survives.
Q5. Compare classical linear search and Grover’s quantum search for an unsorted list of items with one marked item: give the expected number of classical queries and the number of Grover iterations.
Step 1, classical cost. Classical unstructured search needs, on average,
(worst case ).
Step 2, Grover’s cost. Grover’s algorithm needs approximately
so 3 iterations in practice.
Conclusion. This is a quadratic reduction (8 versus about 3), a different and smaller gap than the linear-versus-exponential comparison in Math Q2, which was for full enumeration rather than search for one marked item.
Q6. (Chapter 00 slide 9’s worked example, reproduced.) Convert the decimal integer 30 to its 5-bit binary representation using the slide’s method of repeatedly subtracting the closest power of 2.
Step 1. Closest power of 2 not exceeding 30 is : , digit at is .
Step 2. Closest power not exceeding 14 is : , digit at is .
Step 3. Closest power not exceeding 6 is : , digit at is .
Step 4. Closest power not exceeding 2 is : , digit at is .
Step 5. Remainder is , so digit at is .
Assembling the digits, reading from down to :
matching from the slide.
Q7. (Chapter 00 slide 24’s worked example, reproduced.) Derive the NOT gate matrix from its state mapping , using the outer-product construction, then verify against matrix-vector multiplication on .
Step 1, build the outer-product sum.
Step 2, expand each outer product as a matrix.
Step 3, add them.
matching the slide’s derivation.
Verification 1, by matrix multiplication.
Verification 2, by linearity on the state mapping.
the same result written in Dirac notation.
Conclusion. The outer-product matrix and the linear state-mapping expansion agree exactly, as the slide’s side-by-side comparison shows.