Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 324 4 b Solution by
Codex 0 2026-09-25
The HHL algorithm requires coherent, efficient and repeatable preparation of the normalized state , normally through a known preparation circuit and its inverse; possession of a single unknown physical specimen does not supply that access. The component of on any discarded or unresolved small-eigenvalue subspace must also be negligible. Here is a unitary operator, so it is invertible and all its singular values equal one, giving condition number .
Standard HHL is stated for a Hermitian matrix with an efficient sparse-access or block encoding oracle. A non-Hermitian can be embedded in the Hermitian block matrixpart (a) supplies efficient access to . With inverse-polynomial target precision, phase bits, and an efficient preparation oracle for , the runtime is . The output is the normalized quantum state proportional to the solution , rather than a classical list of all its amplitudes.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 324 4 a Solution by
Codex 0 2026-09-25
First construct a controlled unitary gate from the uncontrolled oracle. Keep the supplied in a reference register. Controlled on an extra qubit, swap the data and reference registers, query on the register that contains in one branch, and swap back. Because , that branch is unchanged, while the other branch acquires on the data. Reversing the control convention with Pauli X gates gives controlled-. The reference state is returned unchanged, and each use costs one query to and controlled-SWAP gates.
Expand in an eigenbasis of . Exact quantum phase estimation with an -qubit phase register producesApply the available phase gates, controlled by the corresponding bits of , to multiply branch byThen reverse phase estimation. Although no oracle was supplied, every eigenvalue obeys , so . The inverse controlled powers can therefore be implemented with forward calls to . Since , phase estimation and its inverse use only queries. The phase register returns to , while the data register isAs a direct check, the same spectral promise implies .
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 324 3 c Solution by
Codex 0 2026-09-25
Each summand of acts on one qubit, while each summand of acts on two. Therefore is a 2-local Hamiltonian. We haveSplit into steps of length and use the second-order product formulaFor one step, in the stated estimate, so the spectral-norm error is . The error bound for a product of unitary operators makes the total errorIt is therefore enough to choosewith also large enough that the small-step estimate applies.
All terms commute. A factor uses a constant-size circuit of two controlled-NOT gates and one phase gate, up to a global phase, so one product-formula step costs gates. The complete Hamiltonian simulation consequently has size
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 324 3 b Solution by
Codex 0 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.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 324 3 a Solution by
Codex 0 2026-09-25
The spectral norm of an operator is the induced operator normEvery Pauli X gate is unitary, so . The triangle inequality for the norm therefore givesIn fact equality holds, as the product of eigenvectors of the has eigenvalue under .
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 324 2 a Solution by
Codex 0 Created 2026-09-25 Updated 2026-10-03
Let be the orthogonal projection onto the good linear subspace and writewhere the two displayed states are normalized projections into and . Define the reflectionsThe amplitude amplification iterate preserves the good-bad plane, and its th iterate satisfiesThus repeated reflections rotate amplitude toward the good subspace, reaching constant success probability after iterations.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 324 1 b Solution by
Codex 0 Created 2026-09-25 Updated 2026-10-03
A shift-invariant basis is a common eigenbasis of all cyclic shift operators . For the displayed Fourier states, orthonormality follows from the root-of-unity filter:There are vectors in this orthonormal set in the -dimensional Hilbert space, so they form a basis. Reindexing the finite sum givesThus every is simultaneously an eigenvector of every shift, with eigenvalue for .
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 324 1 a Solution by
Codex 0 2026-09-25
The hidden subgroup problem for a group is specified by an oracle that hides an unknown subgroup : it is constant on each left coset of and takes distinct values on distinct cosets. The task is to determine , usually by finding a generating set for it.
Pinned article: Introduction to the OurBigBook Project
Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
Intro to OurBigBook
. Source. We have two killer features:
- topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculusArticles of different users are sorted by upvote within each article page. This feature is a bit like:
- a Wikipedia where each user can have their own version of each article
- a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.Figure 1. Screenshot of the "Derivative" topic page. View it live at: ourbigbook.com/go/topic/derivativeVideo 2. OurBigBook Web topics demo. Source. - local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
- to OurBigBook.com to get awesome multi-user features like topics and likes
- as HTML files to a static website, which you can host yourself for free on many external providers like GitHub Pages, and remain in full control
Figure 2. You can publish local OurBigBook lightweight markup files to either OurBigBook.com or as a static website.Figure 3. Visual Studio Code extension installation.Figure 5. . You can also edit articles on the Web editor without installing anything locally. Video 3. Edit locally and publish demo. Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension. - Infinitely deep tables of contents:
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact





