How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Quantum Fourier-Transform Circuits
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Approximate Universality and Solovay–Kitaev
- Binary Operations, Monoids, Groups and Subgroups
- Bounded Linear Operators and Quotient Spaces
- Circuit Syntax, Denotational Semantics, and Measurement
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Coordinate and Path Transport
- Complex Differentiability and the Cauchy–Riemann Equations
- Complex Norms and Realification
- Complex Power Series and Analytic Functions
- Complex Subspace Realification
- Complexification, Realification and Real Structures
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Connectedness
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Continuous-Gate Universality and Exact Synthesis
- Controlled Gates, Phase, and Entanglement
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Determinants of Matrices over a Commutative Ring
- Diagonalisation and the Minimal Polynomial
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Eigenvalues, Eigenvectors and the Characteristic Polynomial
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Dimensional Normed Spaces and Riesz Lemma
- Finite Fourier Analysis and the Fast Fourier Transform
- Finite Probability Spaces and Random Variables
- Finite-Dimensional Complex Inner-Product Spaces and Matrix Interfaces
- Foundations of the Real Numbers for Analysis
- Free Modules, Exact Sequences, Projective and Injective Modules
- Fundamental Trigonometric Identities
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- Hilbert Space Geometry and Riesz Representation
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Measurements, POVMs, and Instruments
- Metric Spaces
- Modules, Submodules, Quotient Modules and the Isomorphism Theorems
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Normed and Banach Spaces
- Order, Zorn's Lemma, and the Axiom of Choice
- Partitions of Unity and Paracompactness
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Properties of the Integral and the Working FTC
- Pure and Mixed States, Ensembles, and Schmidt Decomposition
- Qubits, Bloch Sphere, Pauli Algebra, and One-Qubit Gates
- Registers, Tensor Products, and Partial Trace
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Separation Axioms: the Hierarchy
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Simple Field Extensions and the Construction of the Complex Numbers
- Sine, Cosine, and the Definition of Pi
- Splitting Fields
- Strongly Continuous Semigroups and Hille Yosida
- Subspaces, Products, and Quotients
- Suprema and Infima
- Sylow's Theorems, p-Groups and Nilpotent Groups
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- Tensor Products of Modules
- The Cantor Set, Baire Category, and Measure Zero in ℝ
- The Complex Exponential and Euler's Formula
- The Derivative and the Mean Value Theorems
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Exponential Function
- The Fundamental Theorem of Algebra
- The Fundamental Theorem of Finite Abelian Groups
- The Galois Correspondence
- The Logarithm and General Powers
- The Riemann Integral: Definition and Integrability
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The Topology of Euclidean Space
- The Total Derivative in ℝᵐ → ℝⁿ
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Trigonometric and Oscillatory Examples in One Variable
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
This page fixes the positive-sign cyclic QFT as the inverse of the negative-sign, unitary-normalized discrete Fourier transform. For binary registers it proves the product factorization, specifies the ordered Hadamard/controlled-phase circuit and final bit reversal, proves the three-CNOT SWAP identity, and counts ideal gates. It also proves that adding spectator wires preserves local gate operator norms, supplies a local cosine-series proof of , and uses these results to bound truncation and verify the finite example. Finite-alphabet synthesis is a separate conditional gate-count result under fixed-arity decomposition and Solovay–Kitaev interfaces; it makes no classical target-angle bit-time claim. The N=1 and cutoff-at-or-above-register-width cases are included. The exact circuit-denotation and generic resource-accounting suppliers are still required for the corresponding readiness claims.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Projective operator closeness bounds output distributions
Statement
Let be a nonzero finite-dimensional complex inner-product space (Real and complex inner product spaces, with the inner product linear in the first argument) with a fixed orthonormal computational basis (Orthogonal vectors and subspaces, orthogonal and orthonormal sets, and orthonormal bases), and let be unitary operators, meaning invertible linear isometries (Linear isometries, and orthogonal or unitary operators on finite-dimensional inner product spaces). For a unit vector , write and , and define their output laws by and . Unitarity and orthonormality make these finite probability laws (Finite probability spaces, outcome weights, events, and event probabilities). For laws on , define total variation by . Define projective operator distance by , where is the operator norm. If for , then
The same bound therefore holds for every computational-basis output law of the two operators. The proof verifies directly that multiplying a vector by a unit scalar leaves these coordinate probabilities unchanged.
Facts & Assumptions
Given: A nonzero finite-dimensional complex inner-product space, an orthonormal computational basis , unitary operators , a unit input , and .
A finite probability space is a finite outcome set with nonnegative weights summing to (Finite probability spaces, outcome weights, events, and event probabilities).
For finite real lists , (The Cauchy-Schwarz inequality for finite sums).
If has nonzero finite-dimensional domain, (The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||).
Unitary endomorphisms preserve vector norms (For an endomorphism in finite dimension, preserving lengths, preserving inner products, carrying orthonormal bases to orthonormal bases, and are equivalent).
Complex modulus is multiplicative and satisfies (Conjugation is an involutive real-field automorphism, , and modulus is definite, multiplicative, and subadditive).
In an orthonormal basis, the squared norm is the sum of squared coordinate moduli (Bessel's inequality for a finite orthonormal list and Parseval's identity for an orthonormal basis).
The norm induced by an inner product satisfies (The induced length is a norm).
Proof
Given: The objects and hypotheses above.
Fix any with , and set and . By [F4], [F7] and , both vectors have norm . Parseval [F6] makes their squared coordinate moduli nonnegative weights summing to , so [F1] gives the output probability laws. For each , [F5] applied to and then to the reversed pair gives . Factoring a difference of squares and applying [F2] gives . Expanding the last squared sum and applying [F2] to the two nonnegative coordinate lists bounds its square root by , so the total variation is at most .
If is the -th coordinate of , then and by modulus multiplicativity in [F5]. Hence . Also by [F3] and . Combining with step 1.1 gives for every unit scalar .
Taking the infimum over all in step 2.1 gives . No minimizing phase is required.
Remarks
The proof uses no axiom of choice: the inequality holds for each phase separately, then for their infimum. Standalone phase invariance follows directly from modulus multiplicativity, so no quantum-specific global-phase theorem is required.
The half-turn constant exceeds
Statement
With defined by the first positive zero of cosine, one has
Facts & Assumptions
Given: The cosine power series, its strict decrease on , the first positive zero , and the nonnegative square root .
The first positive cosine zero is the unique with , and (Cosine has a smallest positive zero, lying strictly between zero and two, Pi as twice the smallest positive zero of cosine).
Cosine is given by its alternating power series and is strictly decreasing on (Sine and cosine defined by their real power series, Sine is positive and cosine is strictly decreasing on (0,2), with cos 2 at most -1/3).
For a nonincreasing alternating series with terms tending to zero, its sum lies between consecutive partial sums (The alternating series test: if is nonincreasing with then converges, the sum lies between any two consecutive partial sums, and the error after terms is at most ).
The real numbers form a complete totally ordered field, so each nonnegative real has a unique nonnegative square root (The reals are complete, Square roots exist: a unique with ; the positives are ).
Proof
Given: The facts above.
Let , so and by [F4]. For put ; then , so decreases to zero. In the cosine series [F2], the terms for cancel because . Reindexing the remaining tail as an alternating series gives first two partial sums and ; [F3] bounds its sum below by . Thus .
One has : otherwise and would imply , contradicting from step 1.1. Hence .
By [F1], and . If , strict decrease of cosine on from [F2] would give , contradicting step 1.1. Therefore .
Positive-sign cyclic quantum Fourier transform
Definition
For an integer , let be the negative-sign, -normalized transform of The unitary discrete Fourier transform on . Define the cyclic quantum Fourier transform by . The inverse exists by Finite Fourier inversion for the unitary transform on , and its matrix on the standard basis indexed by is
Here the standard-basis ket convention is the one specified by Dirac Notation Conversion. Thus the transform has the positive sign and the same normalization as the inverse Fourier formula. At it is the identity on the one-dimensional register. In the binary specialization , the circuit page writes each index in its unique base-two expansion.
Binary factorization of QFT basis output
Statement
Let , , and take the input word in wire order . By the big-endian index convention, its integer is , with . For , set
With the register order , the standard-basis output is . The ordered factors immediately before the final wire-reversal permutation of the exact circuit are . For , both are the empty tensor product, interpreted as the scalar .
Facts & Assumptions
Given: The positive-sign transform of Positive-sign cyclic quantum Fourier transform, binary input encoding by Big-endian encoding of ordered bit strings, ordered tensor registers and reversal permutation by Ordered tensor registers, their inner product, and wire permutations, the standard ket convention of Dirac Notation Conversion, and bijectivity of the binary index.
The map is a bijection from length- bit strings to (Big-endian bit-string indices are bijective).
A bit tuple has big-endian index , so the first listed wire is most significant (Big-endian encoding of ordered bit strings).
The product basis is ordered lexicographically by factor indices, and a wire permutation sends a product-basis tuple to the tuple in the permuted factor order (Ordered tensor registers, their inner product, and wire permutations).
A ket denotes its vector, and the standard coordinate kets are the corresponding coordinate vectors (Dirac Notation Conversion).
The definition Positive-sign cyclic quantum Fourier transform gives the basis amplitude at output integer .
The Hadamard sends to for (Exact one-qubit gates and rotations).
The controlled phase fixes and multiplies by (Controlled Phase Rotation).
Proof
Given: , an input bit string , and the stated ordered-basis conventions.
For , bijectivity [F1] lets us index the output basis by all bit words in wire order; [F2] gives . Then . In the term indexed by , put . The fractional part of is : terms with are integers and the remaining powers have exactly these denominators. Thus the phase attached to output bit is the phase of .
Consequently . Summing over all bit strings factors as a tensor product of the two-term sums for the individual ; the normalization is the product of the factors . By [F3], in wire order the factor sequence is , and [F4] identifies these coordinate factors with the corresponding kets.
In the descending-target circuit, the block on applies followed by from each control with . Before this block, all lower wires are still in the basis states : previous blocks target only higher wires, and [F6] leaves basis controls unchanged. By [F5], the Hadamard contributes relative phase ; by [F6], the controlled phases multiply it by . Thus the block prepares without changing the lower wires or previously prepared higher factors. Induction down the finite loop gives before reversal. By [F3], reversal gives the output of step 2.1. At , the loop is empty, , and both states are the empty tensor .
Remarks
The binary fraction in is in base two. In particular, the output factor order and the pre-swap factor order differ; suppressing the final reversal changes the bit convention.
Operator Norm Is Unchanged by Spectator Registers
Statement
Let and be nonzero finite-dimensional complex inner-product spaces with specified finite orthonormal bases, and let be linear. With the product inner product on ,
If is a unitary wire permutation on a finite ordered tensor register, then conjugating an endomorphism by preserves its operator norm: . Thus a one- or two-register gate has the same operator norm after identity factors are added on spectators and its wires are moved to their declared positions.
Facts & Assumptions
Given: Nonzero finite-dimensional complex inner-product spaces with specified orthonormal bases, a linear endomorphism of , their ordered tensor register, and a unitary wire permutation when the conjugation clause is used.
The lexicographically ordered elementary product vectors form an orthonormal basis and their squared norms are computed by the product inner product (The product basis is orthonormal and tensor dimensions multiply).
The tensor map acts on elementary tensors by (Tensor products of finitely many linear maps).
The operator norm is on a zero-dimensional domain; on a nonzero finite-dimensional domain, (The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||).
Compatible products satisfy (The operator norm is submultiplicative and satisfies ||T^*T|| = ||T||^2).
A wire permutation is unitary and therefore preserves vector norms (Finite wire permutations are unitary basis permutations).
Proof
Given: The spaces, map and register above.
Write the specified orthonormal bases as for and for ; . By [F1], form an orthonormal basis of . Expand and set . Grouping this finite sum gives , while orthonormality gives . By [F2], . Hence [F3] gives , so .
Choose a unit vector attaining the maximum in [F3], and choose a unit vector . The product inner product gives , and [F2] gives . Thus , proving the first equality.
If the tensor register is zero-dimensional, both and have operator norm by [F3], proving the conjugation equality. Otherwise [F5] shows that and preserve norms, so each has operator norm by [F3]. Submultiplicativity [F4] gives . Applying the same inequality to gives the reverse inequality. Therefore in every case.
A SWAP Is Three CNOTs
Statement
On two ordered qubit wires, let be the wire-swap permutation . Let be the CNOT with wire 1 controlling wire 2, so , and define the reverse orientation by , extending both actions linearly; here is addition modulo two. The operator identity
holds, where products act right to left. Therefore the swap of two wires has an exact three-CNOT implementation with no ancillas.
Facts & Assumptions
Given: Two ordered qubit factors with computational basis , .
The first-to-second CNOT has action (CNOT and Control-Target Order).
The swap wire permutation sends to (Ordered tensor registers, their inner product, and wire permutations).
The four computational basis vectors form a basis of the two-qubit register (The product basis is orthonormal and tensor dimensions multiply).
Proof
Given: The basis actions in [F1]–[F3] and the explicit reverse CNOT action in the Statement.
Both CNOT maps are involutions: applying either twice uses and returns every basis vector to itself, so their linear extensions permute the orthonormal basis [F3] and are exact unitary gates. Now for any , apply the three maps from right to left: , then sends this to , and the final sends it to . The last equalities use .
This is exactly the action of in [F2] on every vector of the basis [F3]. Two linear maps agreeing on a basis agree on every vector, so . The displayed product contains three CNOTs on the same two wires and uses no ancillary register.
QFT ideal and finite-set gate-cost models
Definition
The ideal binary-QFT gate-count model treats each Hadamard and each exact controlled phase as one elementary gate, for integer , where
A named SWAP, the wire permutation from Ordered tensor registers, their inner product, and wire permutations, counts as one two-qubit gate. If the implementation expands each SWAP into three exact CNOT gates of CNOT and Control-Target Order, count those three CNOTs in place of that SWAP. These conventions refine the one-qubit alphabet, controlled-phase rotation and elementary circuit-resource interfaces of Exact one-qubit gates and rotations, Controlled Phase Rotation and Finite circuit resource accounting.
The finite-set synthesis model keeps ideal gate count separate from compiled gate count. A one- or two-qubit target block is assigned a projective operator-error tolerance ; a scalar phase returned by the compiler is retained as metadata for the whole standalone circuit. Each CNOT expanded from a SWAP is exact in this model. Any compiled-count theorem must state the fixed-arity decomposition, finite alphabet, inverse-closure, density, exact-arithmetic and compiler-threshold hypotheses it uses. In particular, it makes no claim about classical bit-time for computing an arbitrary target-angle description. This is a cost convention; correctness and compiler resource bounds are separate theorems.
The adjoint also counts as one ideal gate when it occurs in an inverse circuit.
Exact binary QFT circuit
Definition
Input: an -qubit register with ordered wires , . The input integer is encoded by in the computational basis, as specified by Big-endian encoding of ordered bit strings.
Output: the following finite gate list, defining a unitary by the circuit semantics of Denotational semantics of a finite layered circuit on the ordered-register syntax of Finite circuit syntax and ordered wire labels, and using no ancillas.
- For , complete the following block before proceeding to the next : apply to target ; then, for in that order, apply to the pair , with as control and as target. Here is the ideal controlled phase defined in QFT ideal and finite-set gate-cost models.
- After completing every block in the descending loop, for , swap with .
The chronological order is exactly the order listed. If , all loops are empty and the output is the empty circuit, i.e. the identity on the one-dimensional register.
Exact binary QFT circuit correctness
Statement
For every , the exact binary circuit of Exact binary QFT circuit implements Positive-sign cyclic quantum Fourier transform at : it maps each computational basis vector , , to
with the declared output register order. Hence its denotation is on every state. Reversing the gate list and replacing every gate by its adjoint gives the negative-sign inverse QFT with the same ideal gate count.
Facts & Assumptions
Given: An integer , an -wire ordered computational register, and the exact circuit of Exact binary QFT circuit.
On a basis input , the QFT output factors as in the ordered output wires; before the final reversal it is (Binary factorization of QFT basis output).
and in control-first basis order; the ideal model also counts as one gate (QFT ideal and finite-set gate-cost models).
Ordered tensor factors retain the displayed wire order, and the final wire permutation reverses the corresponding product-basis factors (Ordered tensor registers, their inner product, and wire permutations).
A ket denotes its vector and standard coordinate kets are the corresponding coordinate vectors (Dirac Notation Conversion).
Inverse access to a chronological unitary list reverses the order and replaces each gate by its adjoint (Inverse Unitary Access).
A unitary on a specified ordered tuple of wires has a unique unitary global embedding that acts as that unitary on those wires and as the identity on the others (A local gate has a unique global wire embedding).
The positive-sign QFT is the inverse of the negative-sign unitary DFT, so its inverse uses the negative-sign convention (Positive-sign cyclic quantum Fourier transform).
Denotational semantics of a finite layered circuit identifies the chronological gate list with the right-to-left product of its embedded gate operators.
Proof
Given: The basis input and circuit above.
If , the exact algorithm has no gates, so [A1] gives the identity on the one-dimensional register; by [F1], is also the identity. Thus the claimed basis action holds in this case. Now suppose and fix a basis input . In the descending loop, before the step targeting , every lower wire with is still in its original basis state : earlier gates targeted only higher wires, and the lower wires occur only as controls, which the diagonal controlled-phase matrix in [F2] leaves unchanged. The local embedding action [F6] therefore leaves those control bits unchanged. The Hadamard on contributes relative phase , while the controlled phases from lower controls contribute . Thus target has state . The state before the final swaps is . The tensor order and coordinate-ket convention are [F3] and [F4]; interpreting this finite gate trace as the circuit's operator product requires [A1].
For , the final swaps reverse those ordered factors by [F3], producing ; [F1] identifies this with the positive-sign Fourier output on . Together with the case established in step 1.1, the circuit agrees with on every basis vector.
Both the circuit denotation and are linear operators by [A1], so equality on the standard basis [F4] implies equality on every finite linear combination of basis vectors. Reversing the gate sequence and taking adjoints is its inverse by [F5]; the reverse list has the same number of gates, and each adjoint is still a Hadamard, controlled phase of opposite angle, or SWAP. The adjoint controlled phases have unit ideal cost by [F2], so the inverse QFT has the same ideal gate count and uses the negative-sign convention by [L1].
Exact binary QFT ideal gate count
Statement
For , the exact circuit uses Hadamards, controlled phase rotations, SWAP gates, no ancillas, and
ideal gates in the model of QFT ideal and finite-set gate-cost models. If every SWAP is expanded into three exact CNOTs, the circuit instead has CNOTs in place of the SWAPs.
Facts & Assumptions
Given: An integer , the exact circuit of Exact binary QFT circuit, and the ideal gate model of QFT ideal and finite-set gate-cost models.
The exact circuit applies one on each wire, one controlled phase for each pair , then reversal swaps (Exact binary QFT circuit).
Each , controlled phase and named SWAP counts as one ideal gate; an expanded SWAP uses three CNOTs (QFT ideal and finite-set gate-cost models).
The two-wire SWAP equals the exact three-CNOT sequence (A SWAP Is Three CNOTs).
Proof
Given: The circuit and gate-count convention above.
The loop has one Hadamard for each of the wires. Its controlled phases are indexed by pairs with ; summing the possible lower controls for each target gives . The final reversal consists of exactly one swap for each pair with , hence swaps.
By [F2], the ideal count is the displayed sum and there are no other gates or ancillas. For , the sum is at most , so it is ; at all counts vanish. Replacing each counted SWAP by the exact identity [F3] gives exactly CNOTs.
Truncated binary QFT
Definition
Input: an -qubit ordered register as in Exact binary QFT circuit and an integer cutoff .
Output: run the exact binary QFT circuit except omit every controlled phase with denominator index . Retain every Hadamard and every final reversal SWAP. The resulting gate list is finite and unitary for every under Denotational semantics of a finite layered circuit. If , no controlled phase is omitted and the circuit is exactly the full circuit. The ideal gate-count convention is QFT ideal and finite-set gate-cost models.
Operator-norm error of QFT truncation
Statement
Let , , and let be an integer. For ,
For , the truncated circuit is exact and the error is zero. In particular, for , the cutoff gives operator-norm error at most .
Facts & Assumptions
Given: The exact and truncated circuits on a nonzero -dimensional register, with , and an integer cutoff .
The exact and truncated gate lists agree except that each controlled phase with denominator index is replaced by the identity (Exact binary QFT circuit, Truncated binary QFT).
The ideal controlled phase is (QFT ideal and finite-set gate-cost models).
For a nonzero finite-dimensional domain, the operator norm is the maximum over unit vectors (The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||).
Compatible products satisfy (The operator norm is submultiplicative and satisfies ||T^*T|| = ||T||^2).
In finite dimension, a unitary is an isometry and its adjoint is its inverse (For an endomorphism in finite dimension, preserving lengths, preserving inner products, carrying orthonormal bases to orthonormal bases, and are equivalent).
The vector norm induced by an inner product satisfies (The inner-product norm is definite, homogeneous, and satisfies the triangle inequality).
For real , and (, , and ).
for real (Sine and cosine are -Lipschitz on ).
The exact circuit denotes (Exact binary QFT circuit correctness).
A wire permutation of an ordered tensor register is unitary (Finite wire permutations are unitary basis permutations).
Adding spectator factors or moving the selected wires preserves the operator norm of a local gate (Operator Norm Is Unchanged by Spectator Registers).
A tensor map acts on elementary product vectors by applying its factor maps (Tensor products of finitely many linear maps).
The two-qubit computational basis is orthonormal (The product basis is orthonormal and tensor dimensions multiply).
Coordinates in a finite orthonormal basis satisfy Parseval and Bessel bounds (Bessel's inequality for a finite orthonormal list and Parseval's identity for an orthonormal basis).
A unitary gate on distinct ordered wires has a unique unitary global embedding acting by the local gate on those wires and by the identity on the others (A local gate has a unique global wire embedding).
Denotational semantics of a finite layered circuit identifies the chronological gate list with the right-to-left product of its embedded gate operators.
Proof
Given: The circuits and hypotheses above.
For real , [F7] and [F10] give . By [F8]–[F9], , hence .
For an omitted gate at level , set and on its two-qubit target. By [F2], has only one nonzero diagonal entry, , in the orthonormal basis [F15]. For any unit vector, Bessel's inequality [F16] bounds its coordinate in modulus by , so ; equality is attained at . Thus by step 1.1, and embedding it on the full register preserves this norm by [F13].
By [A1], let be the embedded operators in chronological order, so the exact circuit product is and the truncated product replaces omitted by . The local embedding action is [F17]. By [F11], the exact product is . Their difference telescopes as . Each is unitary by direct multiplication of its matrix in [F2]; each is unitary because it is diagonal with unit-modulus entries by [F2,F7]; each SWAP is unitary by [F12], and each omitted gate is replaced by . A local unitary tensored with has inverse by [F14], and conjugating by the unitary wire permutation preserves unitarity. Thus every outside product is unitary and has norm by [F3,F5]. For any operators , [F6] and the definition [F3] give ; submultiplicativity [F4] therefore bounds the telescoping sum by the sum of the omitted-gate norms from step 2.1.
At level , the pairs satisfying have , so there are such gates. Summing step 2.1 over the omitted levels gives the first bound. Since and , this is at most .
If , no gate is omitted by [F1], so the error is zero. Otherwise the displayed sum bound applies. For , , hence ; taking selects either this case or .
Remarks
No axiom of choice is used. The key local proof obligation is the telescoping operator-norm estimate: the cited QFT treatments motivate the cutoff but do not supply this complete operator-norm argument. The sine/cosine suppliers are published and read; the QFT circuit suppliers remain in the assigned cross-pair dependency set.
Truncated QFT ideal gate count
Statement
For and integer , put . The truncated binary QFT uses Hadamards, controlled phases, SWAP gates and no ancillas. Its ideal gate count is therefore
For fixed , if , , and , then and this count is ideal gates. Expanding the reversal replaces each SWAP by three exact CNOTs; no finite-set synthesis count is asserted here.
Facts & Assumptions
Given: The truncated circuit with and integer cutoff .
The truncated circuit retains every Hadamard, every controlled phase with , every final reversal SWAP, and no ancillas (Truncated binary QFT).
Each retained Hadamard, controlled phase and SWAP has ideal cost one; a SWAP may instead be expanded to three exact CNOTs (QFT ideal and finite-set gate-cost models).
Each two-wire SWAP equals the exact three-CNOT sequence (A SWAP Is Three CNOTs).
For , choosing gives the stated truncation error at most (Operator-norm error of QFT truncation).
Proof
Given: The circuit and counting convention above.
For each target , the exact circuit has controlled phases. A retained denominator level corresponds to pairs with , namely , and so has gates. The cutoff retains precisely . If , then and every phase is retained.
There are target wires, final swaps, and no other gates or ancillas by [F1]. Summing their costs by [F2] gives the formula. Since and , the total is at most , hence . Under the cutoff in [F4] and , , so . The CNOT expansion is exact by [F3] and changes only the final reversal term; it does not compile any rotation.
Finite universal-gate compilation cost for the truncated QFT
Statement
Each retained Hadamard or complete controlled-phase block has an exact no-ancilla decomposition with at most four one-qubit gates and two CNOTs, uniformly in its angle. Fix an integer bounding both counts for the chosen decompositions; always suffices. Assume QC12's fixed inverse-closed dense one-qubit alphabet , its exact-real compiler, and a fixed rational within the certified compiler range.
Let , rational , and put
Compile each truncated-circuit block using that exact decomposition, compile each resulting one-qubit special-unitary factor to operator-norm error at most by QC12, and keep every phase scalar as metadata for the entire standalone circuit. Expand final SWAPs into exact CNOTs. Then the compiled unitary satisfies
so every unit-input computational-basis output law differs from that of by total variation at most . Its finite-set gate count is
This is a gate-count claim under the stated exact-real compiler interface; it gives no classical bit-time bound for generating arbitrary target-angle descriptions and makes no outer-controlled-QFT compilation claim.
Facts & Assumptions
Given: , rational , the exact fixed-arity decompositions, QC12's SU(2) compiler hypotheses, and a computational-basis measurement of the compiled standalone circuit.
The truncated circuit retains Hadamards, the controlled phases with , and the final reversal swaps (Truncated binary QFT).
Its operator-norm error from the exact QFT is at most when , and zero when (Operator-norm error of QFT truncation).
The gate-cost model counts exact CNOTs and keeps compiler scalar phases for the whole standalone circuit (QFT ideal and finite-set gate-cost models).
Projective operator distance at most bounds each unit-input computational-basis output-law distance by (Projective operator closeness bounds output distributions).
The operator norm is the maximum over unit vectors, is submultiplicative, and satisfies a triangle inequality (The operator norm is zero on the zero domain and otherwise is max_{||v||=1} ||Tv||, The operator norm is submultiplicative and satisfies ||T^*T|| = ||T||^2, The inner-product norm is definite, homogeneous, and satisfies the triangle inequality).
Finite-dimensional unitaries preserve vector norms and have operator norm one (For an endomorphism in finite dimension, preserving lengths, preserving inner products, carrying orthonormal bases to orthonormal bases, and are equivalent).
The QC12 compiler takes a target and rational , using exact-real arithmetic (Solovay–Kitaev Unitary Compiler for SU(2)).
For , the compiler returns a word with operator-norm error at most and length (Solovay–Kitaev Error and Resource Bound).
is a fixed inverse-closed dense finite subset of (Inverse-Closed Dense SU(2) Gate Set).
The determinant of a finite-dimensional unitary has modulus one (Orthogonal and unitary operators form groups, and their determinants have modulus one).
Every complex number has a square root (Every complex number has a square root, by an explicit Cartesian formula).
Complex modulus is multiplicative (Conjugation is an involutive real-field automorphism, , and modulus is definite, multiplicative, and subadditive).
Adding spectator factors or moving target wires preserves the operator norm of a local gate (Operator Norm Is Unchanged by Spectator Registers).
Tensor maps act linearly on each factor; in particular (Tensor products of finitely many linear maps).
Each final SWAP has an exact three-CNOT implementation (A SWAP Is Three CNOTs).
A local unitary on a specified ordered tuple of wires has a unique unitary global embedding acting by that gate on those wires and by the identity on the others (A local gate has a unique global wire embedding).
Exact Controlled One-Qubit Unitary with Two CNOTs supplies the exact decomposition of a controlled into two CNOTs and the four one-qubit gates displayed in its proof. In Controlled Phase Rotation, each complete controlled phase is for the unitary . A Hadamard is itself one one-qubit gate.
Finite circuit resource accounting counts declared gate occurrences and includes every workspace wire in width; the decompositions in [A1] use the two data wires only.
Denotational semantics of a finite layered circuit assigns a chronological gate list its right-to-left product, using the unique embedding of each local gate.
A Controlled Global Phase Becomes a Relative Control Phase proves that a scalar phase on a controlled block becomes a relative control phase; its inspected draft statement and full proof supply the outer-control caveat.
Proof
Given: The parameters, circuit and compiler and exact decomposition interfaces above.
If , then , so [F2] gives truncation error at most . If , the truncated circuit is exact by [F2]. Thus in either case the ideal truncated unitary is within of the exact QFT.
There are retained one- or two-qubit blocks. For , each summand in is at most , hence . The final reversal uses swaps, or exact CNOTs by [F15] and the resource convention [A2].
For any factor , [F10] gives . Choose with by [F11]. Then [F12] gives , so . The matrix is unitary and has determinant , hence . By [F7]–[F9] and , compile to a word with and gates. Thus . The local error lifts to the full register with the same operator norm by [F13]. By [F14], the embedded scalar remains one scalar on the entire standalone circuit.
Apply [A1] to each retained block: use one gate for a Hadamard and, for , the three target gates and one control phase gate from the controlled-unitary proof, with its two exact CNOTs. The phase gate is retained, so this is the complete controlled phase. These lists prove the uniform bound with , independently of the angle. For any chosen lists bounded by as in the statement, the total number of one-qubit factors obeys , and at most CNOTs occur. Keep the Hadamards as one-gate lists, so . No ancilla or unproved QSD optimization is used.
By the circuit denotation interface [A3], compose the compiled factors in chronological order, leaving every decomposition CNOT exact. The global embeddings act on their specified wires by [F16]. The exact-minus-compiled product telescopes with one local difference per one-qubit factor. Every surrounding factor is unitary and has norm one by [F6]; [F5] bounds the norm of the sum by the sum of local errors, at most . The product of the scalars from step 1.3 is one scalar for the whole standalone circuit.
Let be the compiled circuit and let be the total scalar from step 3.1. The triangle inequality, step 1.1 and step 3.1 give . By the max-over-unit-vectors definition in [F5], operator-norm homogeneity gives ; the first vectors differ by the scalar , and . Choosing in the defining infimum proves . Applying [F4] gives the asserted total-variation bound for every unit input.
The scalar in step 3.1 is harmless for this standalone output law because the conclusion uses projective distance and [F4]. It cannot be silently discarded if this entire compiled block is placed under outer control, by [A4]; no outer-controlled compilation claim is made.
By [F8], the compiled one-qubit factors use gates. The decomposition CNOTs contribute at most and the final SWAP expansion contributes exact CNOTs by [A2,F15]. Since and with fixed , . Therefore the total is . No step bounds the classical bit-time for target-angle descriptions.
Remarks
No axiom of choice is needed once the finite exact factor lists are supplied: the scalar roots and finite compiler outputs are selected for the finitely many explicit gates. The uniform fixed-arity factor count follows from the explicit controlled-unitary construction in step 2.1; the compiler assumptions remain those stated above.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Ronald de Wolf, Quantum Computing: Lecture Notes (arXiv:1907.09415v6)
- Andrew M. Childs, Lecture Notes on Quantum Algorithms
- John Preskill, Quantum Information, Chapter 6: Quantum Algorithms
- C. Schmeiser, Introduction to Analysis
- John Watrous, The Theory of Quantum Information, §1.1.3
- Ronald de Wolf, Quantum Computing: Lecture Notes, Appendix A.6
- Ronald de Wolf, Quantum Computing: Lecture Notes, arXiv:1907.09415v6
- Vivek V. Shende, Stephen S. Bullock, and Igor L. Markov, Synthesis of Quantum Logic Circuits
- Christopher M. Dawson and Michael A. Nielsen, The Solovay–Kitaev Algorithm