Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 2 15D b Solution Created 2026-09-24 Updated 2026-10-03
Quantum no-signalling says that, without communicating a measurement outcome, any local trace-preserving operation performed on subsystem leaves all outcome probabilities for measurements on subsystem unchanged; equivalently, it leaves the reduced density matrix unchanged.
The two Bell states are orthogonal. Applying the inverse Bell-state preparation circuit, namely a Controlled-NOT gate from to followed by a Hadamard gate on , givesA computational-basis measurement therefore distinguishes them perfectly, soIf only is accessible, however,Every measurement on consequently has the same outcome distribution under both hypotheses. With equal prior probabilities no information is available, andthe error probability of a random guess.
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 3 10D a Solution Created 2026-09-24 Updated 2026-10-03
Apply a Pauli X gate and then a Hadamard gate to the third qubit, and apply Hadamard gates to the first two. This preparesOne application of the Boolean quantum oracle now gives, by quantum phase kickback,The answer qubit is unentangled and may be ignored. If all three qubits must be restored to the displayed register form, applying and then to the answer qubit maps back to . Thus the first register is exactly after one use of .
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 324 3 a iii Solution Created 2026-10-03 Updated 2026-10-05
The printed sum contains although the stated labels end at . We use the natural periodic convention , with . If an open chain was intended, omitting the final term gives the same asymptotic bound.
Set , with indices modulo , and implement the product-formula Hamiltonian simulationEach factor acts on two qubits, so it is a two-qubit unitary operator. More explicitly, if , , and is a controlled-NOT gate,where is a Hadamard gate. This gives a constant number of one-qubit and two-qubit gates per factor; one-qubit gates can also be viewed as two-qubit gates tensored with the identity.
The spectral norm obeys the triangle inequality, submultiplicativity of the operator norm, and invariance under multiplication by unitary operators. In particular, the telescoping bound for products of operators gives for unitary . The first-order unitary product-formula error bound consequently yieldsOnly neighboring terms can have a nonzero commutator, because all other supports are disjoint. There are neighboring unordered pairs, and . Thus . Choosing givesThe coarser bound that counts all pairs also proves the often-used construction. Locality improves that cubic estimate to the quadratic bound above; neither assertion is a lower bound on the best possible circuit.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 324 4 a ii Solution Created 2026-10-03 Updated 2026-10-05
Write the normalized input as , where and . Use a data register, an -qubit eigenvalue register, and a flag quantum ancilla. Begin with .
Apply exact quantum phase estimation to . Its controlled evolutions and inverse quantum Fourier transform produceApply the HHL controlled reciprocal rotation, with :The function of is computed by quantum arithmetic; the rotation is a quantum variable rotation. On a zero eigenvalue label with no input amplitude, define any unitary action, for example no rotation.
Run the inverse phase-estimation circuit. Because each amplitude multiplier depends only on , the eigenvalue register is reset to on both flag branches. Measuring the flag and conditioning on outcome one leavesThe successful unnormalized branch is , giving the probability in the preceding part. The operations independent of are the Hadamard gates preparing the phase register, the inverse quantum Fourier transform, the reversible reciprocal/angle arithmetic, the controlled fixed-angle rotations, and the final flag measurement. Uncomputation removes all arithmetic workspace; the -dependent controlled evolutions and the -dependent state-preparation circuit supply the input-specific operations.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 2 10C i Solution Created 2026-09-24 Updated 2026-09-29
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 2 15C a Solution Created 2026-09-24 Updated 2026-10-03
Starting from the -qubit computational basis state , apply one Hadamard gate to every qubit. Since ,Thus parallel Hadamard gates prepare the uniform quantum superposition.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 2 15C b Solution Created 2026-09-24 Updated 2026-09-29
The Hadamard gate conjugates the Pauli X gate into the Pauli Z gate:When the control qubit is , all three circuits act as the identity on the target. When it is , the right-hand circuit acts on the target as . It therefore agrees with the Controlled-Z gate on every computational basis state, provingConjugating both sides by and using immediately gives the reverse identity
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 2 15C d i Solution Created 2026-09-24 Updated 2026-09-29
After the first Hadamard gate, the joint state isThe controlled SWAP gate then givesAfter the second Hadamard gate, it is
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 3 15C b i Solution Created 2026-09-24 Updated 2026-10-03
Starting from , the first layer of Hadamard gates givesThe Boolean quantum oracle then givesUsing the Walsh-Hadamard transform identitythe final state is
Past exam of the mathematics course of the University of Cambridge 2021 ii Paper 2 10D Solution Created 2026-09-24 Updated 2026-09-25
Apply a Hadamard gate to every qubit. The amplitude of becomesIt equals in case (I) and in case (II). A computational-basis measurement therefore returns with certainty in case (I) and never returns it in case (II). This is the Deutsch-Jozsa algorithm.
For the distributed problem, Alice preparesusing one query to her quantum oracle, and sends these qubits to Bob. Bob applies his phase oracle, producingThe function is constant zero in case (1) and balanced in case (2). Bob applies and measures as above: outcome identifies case (1), while every other outcome identifies case (2), with certainty.
Prepare an ancilla qubit in . To measure , apply a Hadamard gate to each data qubit, apply a controlled-NOT gate from each data qubit to the ancilla, measure the ancilla in the computational basis, and apply a Hadamard gate to each data qubit again. The ancilla records the parity of the two rotated computational-basis bits, so outcome corresponds to eigenvalue and outcome to eigenvalue . The data register is projected by , so its complete post-measurement state is retained. For , perform the same ancilla-assisted Pauli measurement but apply the basis-changing Hadamard gates only to the second data qubit.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 324 1 a i Solution 2026-09-28
A measurement is a quantum measurement in the computational basis. To measure , apply a Hadamard gate, measure , and apply another Hadamard gate to the measured qubit. Since , this gives the outcome and leaves the qubit in the corresponding eigenstate.
Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 4 10D a Solution Created 2026-09-24 Updated 2026-09-25
Letwhere is the Hadamard gate. For a computational-basis string , define the phase reflectionThus changes the sign of , while changes the sign of the marked state.
Conjugating by reflects in the hyperplane perpendicular to , sois the Grover diffusion operator, the reflection about . The Grover iteration operatoris the product of two reflections. It acts as a rotation through in the plane spanned by the marked state and the normalized uniform superposition of unmarked states, whereIt is the identity up to sign on the orthogonal complement of that plane.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 324 1 b i Solution 2026-09-28
Put and . After the first Hadamard gate and the two controlled Pauli gates, the joint state isThe final Hadamard gate changes this toConditioned on ancilla outcome , the normalized data state is therefore
Write the input in the two eigenspaces of aswhere the displayed eigenstates are normalized. A direct PBC measurement giveswith probabilities and . Hence the ancilla circuit and the Pauli measurement have identical outcome distributions and conditional data states after identifying the Pauli outcome with .
Since the Hadamard gate conjugates to ,For , each exponential is , soFor ,Using givesso one convenient logarithm isBoth products are Clifford operations: the first is the identity and the second is a one-qubit Pauli Y gate up to global phase.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 2 10D b i Solution Created 2026-09-24 Updated 2026-10-03
Yes. The states and are orthogonal, sinceA joint projective measurement in the Bell basis therefore distinguishes them with certainty. Concretely, a controlled-NOT followed by a Hadamard gate converts the Bell basis into the computational basis before measurement.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 3 15D a Solution Created 2026-09-24 Updated 2026-09-25
Apply the gates from left to right. The first Hadamard gate and the first controlled-NOT gate produce the Bell stateThe parallel gates then produceThe final controlled-NOT has the lower qubit as control; it interchanges and , whose amplitudes here are equal. Thus the output isBy quantum measurement in the computational basis, every basis outcome has probability equal to the squared modulus of its amplitude:
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 3 15D d Solution Created 2026-09-24 Updated 2026-09-25
After the first Hadamard gate and the controlled unitary gate, the state isThe final Hadamard gate givesHence the Hadamard test returns one with probabilityIf , then and the outcome is zero with certainty. If , then modulo and the outcome is one with certainty. The single measurement therefore distinguishes the two promised cases exactly.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 324 3 b Solution 2026-09-25
The operators act on different qubits and therefore commute, soSince ,The scalar is a global phase. Thus each factor uses two Hadamard gates and one phase gate, and applying the factors in parallel or sequentially gives an exact quantum circuit of elementary gates.