Free quantum computing
Jacques Carette, Chris Heunen, Robin Kaarsgaard, Neil J. Ross, Amr Sabry

TL;DR
This paper introduces a new framework for quantum computing that simplifies its foundations and clarifies its relationship with classical computing.
Contribution
A novel discrete and symbolic framework for quantum computing is proposed, replacing traditional continuous models with discrete axioms and a category-theoretical model.
Findings
The framework isolates quantum advantage in the ability to take well-behaved square roots.
The free model allows combinatorial optimization and automated verification of quantum computations.
The model is computationally universal and can be linked to various quantum hardware platforms.
Abstract
Quantum computing holds great promise, but its foundations and the source of its advantages remain conceptually obscure. We develop a framework that contains no extraneous mathematical assumptions and clearly separates what is truly quantum from what is just classical computing in disguise. Instead of relying on the infinite precision of continuous complex numbers, this symbolic approach uses a small finite number of discrete building blocks that reflect physical implementations. Unlike traditional models, this model supports purely symbolic combinatorial reasoning, enabling the use of powerful classical computer science techniques. This framework is just as effective as traditional ones, and offers a rigorous, simpler foundation to understand and engineer quantum computation. Quantum computing improves substantially on known classical algorithms for various important problems, but the…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Fig. 2
Fig. 3Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture · Quantum Mechanics and Applications · Computability, Logic, AI Algorithms
Quantum computing improves substantially on known classical algorithms for certain problems (1) including prime factorization (2), boson sampling (3), and Hamiltonian simulation (4). The nature of the relationship between classical and quantum computing is not yet fully understood. The literature only identifies several notions that do not explain the difference on their own (5), including superposition (6), entanglement (7), nonlocality (8), contextuality (9), and interference (10). The advantage of quantum computing over classical computing is often considered quantitatively: just how much advantage does a specific quantum algorithm have over classical ones (11)? Here, we consider it qualitatively: does a model of computation allow algorithms that have advantage over classical ones, or does it not?
The question is difficult partly because quantum computing is often implicitly confined to a standard model, that uses complex linear maps (12). For a meaningful comparison, both classical and quantum computing must be situated within a larger landscape of models. We use as models bipermutative categories, the most permissive notion of model of computation possible. Within this framework, we identify a unified free model of quantum computing that can express all quantum algorithms with advantage over classical ones.
To explain the free property of a model by way of example, consider combinatorics. The natural numbers can be completed with negatives in multiple ways: embeds into while preserving addition as , but also as or . The fact that these are completions with negatives means that an additive inverse for the number 1 is adjoined, and entails that all these embeddings are in fact the same up to an unimportant global scalar. The fact that it is the free completion means that any other completion has to encompass it. The real numbers also contain and allow subtraction, but additionally have many other properties that are superfluous for counting. Any addition-preserving embedding factors uniquely through the free model (of natural numbers with negatives). In this sense, the integers are the smallest model, devoid of extraneous assumptions or constraints, of natural numbers with negatives. This is exactly what being a free model captures. See Fig. 1. Generally, free models are unique: they are completely determined by their defining properties (such as having negatives) up to a unique isomorphism (such as an unimportant global scalar).
This article explains the relationship between classical and quantum computing in a similar way. Like adjoining to the natural numbers, we adjoin a small number of generators with physical significance to reversible classical computing and show that reversible quantum computing arises as the free completion. Like the real numbers, any other model of reversible quantum computing, including the standard model of complex unitary matrices, must factor uniquely through this free one. Conversely, we can canonically identify classical computing within any model of quantum computing by the latter’s (bipermutative) structure. The free model has the same computational universality as the standard model: it can express any quantum algorithm to any desired accuracy. But it has additional virtues.
The main advantage of this free model over the standard model is that it enables automated reasoning about quantum algorithms. For example, deciding whether two quantum circuits represent the same quantum computation is an intractable problem (13), among other reasons because there are continuously many degrees of freedom. But because the free model is entirely discrete and concerns only finitely many equations, the full power of combinatorial optimizations and computer science methods of equational rewriting can be brought to bear (14). As a simple example, we will prove that the Hadamard gate is an involution; this fact is not deep, but the point is that this equality can be derived automatically, as can all others.
A second advantage of the free model is foundational: it does not conflate physical concepts. We thus isolate the difference between quantum and classical computation in the ability to take well-behaved square roots, or in other words, the ability to stop some classical computations half-way. The free model is explained from operational first principles, unlike the foundationally unsatisfactory reliance on complex numbers (15). Similarly, it does not need or allow intermediate unphysical matrices that have to be made unitary again at a later stage, circumventing the inefficiency of circuit synthesis that plagues other approaches (16).
A third advantage of the free model is practical: it does not resort to unempirical numbers that cannot experimentally be determined with arbitrary precision in finite time, but accounts for accuracy precisely. We will not discuss quantitative results in individual models of computation, like the density theorems (17, 18) that show how efficiently a unitary matrix can be approximated by quantum circuits. Nevertheless, as an example we will analyze the relationship between accuracy in the free model and efficiency of its implementation of the quantum Fourier transform.
A substantial literature has explored structural and equational approaches to quantum computation, most notably categorical quantum mechanics (19, 20) and diagrammatic formalisms such as the ZX-calculus (21). These frameworks replace matrices by generators and rewrite rules, enabling symbolic manipulation and circuit optimization. Our aim is related but conceptually distinct. Rather than giving sound and often complete presentations of specific models—typically Hilbert spaces or fragments thereof—we construct the free model generated by a set of axioms with physical connotations. The result is not a calculus for reasoning within a fixed quantum model, but a universal quantum programming language for that axiomatization.
Auxiliary Qubits
The quantum computing literature focuses mostly on universality of finite gate sets, rather than explicit comparison to classical computation (22). Here, our focus is on models of quantum computation that reuse the infrastructure of classical computation and are reached by a finite set of axioms. We fix one set of axioms, containing square roots and a precision parameter , and investigate its free model. We show that the precision level can be increased by at the cost of auxiliary qubits. For the free model encompasses Clifford+Toffoli quantum circuits; encompasses Clifford+ quantum circuits; encompasses Clifford+ + quantum circuits; and higher precision encompasses Clifford cyclotomic quantum circuits (23). Other axioms, for example using cube roots, give other free models. See Fig. 2. In general it makes no sense to compare models for different axioms, but we conjecture that as tends to infinity, the free model of the axioms using square roots coincides with that using cube roots or roots for any other radix. Our axioms distinguish themselves by having physical connections beyond the mathematical and computational advantages discussed above.
The landscape of models of quantum computing and their relations. Solid arrows indicate inclusion of one model into another. Incomparable models are connected with dotted lines. For each k, Πk is the free model for the axioms of bipermutative categories augmented with axioms [1]–[3]. The standard model of unitaries over the complex numbers also satisfies these axioms. For each k, Πk embeds in any model that also satisfies the same axioms. For another example, the model of Clifford+T3 circuits is also computationally universal (24) but incomparable to any Πk.
In addition to increased precision, auxiliary qubits also provide the opportunity to extend our free model of reversible quantum computing with quantum measurement. A second free construction allows mid-computation measurements to control the flow of the quantum computation (25). We will show that the ability to measure out auxiliary qubits strengthens the completeness of our free model: two irreversible quantum computations are equal if and only if they follow from our axioms, without any need for auxiliary qubits.
Axioms
The standard postulates of reversible quantum computing may be replaced by the following; we will discuss (irreversible) quantum measurements later. The axioms of reversible quantum computing, with precision level , extend reversible classical computing with two generators and and three relations
where is a coherent quantum version of the classical NOT gate, and is defined in terms of , as explained in more detail below (26). Classical reversible computing corresponds to the free bipermutative category with no further assumptions, which embeds into any other bipermutative category.
These axioms isolate (well-behaved) square roots as a singular source of any difference between quantum computing and classical computing. We will also consider a weaker form of equivalence which identifies computations when they are equal in the presence of auxiliary qubits. This weak equivalence becomes irrelevant when including (irreversible) quantum measurement and state preparation.
Interpretation
Before we go into detail, observe the advantages of this axiomatization. It consists of a finite number of equations, without continuous variables or logical quantifiers. Therefore they are eminently amenable to automation, and can benefit from combinatorial optimization, including brute force computer search (27).
Moreover, all three equations have direct realizations in important physical models of computation, along with links to conceptual principles, notably superposition and interference.
Axiom [1] can be read as saying that the gate has a square root. This is enacted in trapped-ion quantum computing by pulsing the laser for half the duration or intensity needed to enact the gate (28). Similarly, is a native gate in superconducting quantum computers (1). The gate having a square root induces superposition, but here, the ability to halt some computations halfway is primary, and the existence of some superpositions is merely derived. Constructing all superpositions is impossible in a model that extends classical reversible computing with only finitely many axioms.
Axiom [2] is the defining equation for the 3-strand braid group, linking this axiomatization to anyonic quantum computing (29). See Fig. 3.
An illustration of Axiom [2], interpreting V as swapping the leftmost two wires, and S as swapping the rightmost two wires.
Axiom [3] concerns constructivity. General complex numbers in principle take forever to determine with infinite precision. The free model instead uses numbers that one can empirically construct or measure exactly. Positing a nontrivial phase, in combination with the superposition afforded by , induces interference. We choose a primitive th root of unity as our primitive nontrivial phase. The scalars in the free model (as defined in “Bipermutative categories: formalizing the main results” below) are therefore the cyclic group of order , consisting of powers of . One can clearly approximate any complex number on the unit circle with such constructive scalars by choosing sufficiently large, additionally making these scalars useful in parametrized rotation gates, photonic quantum computing, and variational quantum algorithms. Notice that the free model has no need for addition of scalars, but the standard model of unitary matrices uses many more scalars.
Reversible Classical Computing
To understand the axiomatization and explain what we mean by a model in more detail, we first discuss reversible classical computing. In this paradigm, computations are deterministic when run either forward or backward (30). It relates to physics, as experiments have verified that irreversibly changing information stored in a computer dissipates heat (31), in accordance with Landauer’s principle (32, 33).
The standard model of classical reversible computing is given by circuits of reversible Boolean gates. For example, the gate , also known as the Toffoli gate, which transforms three input bits into , is universal in the sense that any Boolean function can be implemented by a circuit of CCX gates.
A general model for classical reversible computing is given by the notion of a bipermutative category, which has objects and processes that can be combined using combinators and (34). This is the bare minimum that any model of computation needs to represent: the ability to compose instructions sequentially (using ), the ability to consider data in parallel (using ), and the ability to use one such concurrent piece of data to influence another (using ). In the standard model, the unit object for is analogous to a singleton set, and models the bit. The swap process models a NOT gate, and is typical of modeling controlled operations as .
The free model of classical reversible computing consists of permutations of finite sets, or equivalently, permutation matrices. Because every permutation of a finite set is a composition of transpositions, the NOT gate generates all of these. The free bipermutative category is thus identified with the free model of classical reversible computing: the and gates are already modeled by the axioms of bipermutative categories.
Reversible Quantum Computing
Similar combinators and extend quantum computing from a single qubit to multiple controlled qubits. We can now understand Axioms [1]–[3] in detail. Start with the free bipermutative category, i.e. the free model of classical reversible computing, and choose an integer . Add generators and , and consider the free bipermutative category satisfying Axioms [1]–[3], where . Theorem 1 below shows that this free model exists. Notice that if we only used , adding merely yields physically irrelevant global phases; it is the presence of that yields relative phases with nontrivial computational consequences. The combinator gives the ability to represent qudits for all dimensions rather than only qubits, which harmonizes with the need for quantum algorithms such as Shor’s prime factoring to allocate storage for values to the nearest power of 2, some of which will not be used in the actual computation.
The standard model of unitary matrices also satisfies Axioms [1]–[3] with
Hence there is an interpretation of the free model in the standard matrix model (Fig. 1). Theorem 2 below shows that this interpretation is in fact an isomorphism when to a subset of the standard matrix model. Free models are unique up to unique isomorphism: given two free models, setting one to be the “Free model” and instantiating “Any model” in Fig. 1 to be the other and vice versa gives two maps that are each other’s inverse. We conclude that the free model (which has ) is formed by unitary matrices with entries from the smallest ring containing and . Vice versa, for each , we may think of the free model as a programming language with which to construct reversible quantum programs.
The standard matrix interpretation answers two computer science questions (35) about this quantum programming language. First, the word problem is decidable: given two expressions in the programming language, there is an algorithm that can decide whether they compute the same function, by comparing the matrices they induce. Second, normalization by evaluation (36) is possible: one can optimize a quantum program by synthesizing a normal form from the matrix it induces. This is akin to quantum circuit optimization.
Finally, by foregoing matrices and working with the free model no reasoning power is lost. It follows from Theorem 2 below that two quantum programs denote the same matrix if and only if they are provably equal under substitutions using Axioms [1]–[3]. It thus becomes possible to automate verification of quantum programs, and to use automated proof assistants (37) to construct, transform, and reason about quantum computations.
Precision and Conditional Circuits with Auxiliary Qubits
Theorem 3 establishes that for every , the free model is topologically dense in the standard model of unitary matrices over the complex numbers. In other words, any target unitary can be approximated to arbitrary accuracy by a program in the free model, justifying its status as a model of (reversible) quantum computation.
Theorem 4 further shows that the precision parameter does not affect expressivity once a clean auxiliary qubit is available: can be simulated exactly by using a single auxiliary qubit. Thus only influences the size and convenience of terms, not which unitaries are definable. In particular, already suffices for universal approximation. Larger can produce much shorter terms for the same target unitary, and can make it easier to reason about programs and prove algebraic properties within the syntax, since fewer identities must be expressed through long compiled sequences. Indeed, certain highly structured unitaries benefit dramatically from having more primitive phases. A notable example is the quantum Fourier transform (QFT), whose phase angles are exact powers of , making it an ideal case study for the impact of on synthesis cost.
Each -qubit QFT contains controlled-phase gates with angles for (12). Because includes all phases with denominator as primitives, only smaller-angle rotations require approximation, at a cost of per rotation, where is the accuracy of the approximation (18, 38). Increasing reduces the number of rotations to approximate until reaches , after which all rotations are native and the size plateaus at . This sharp cutoff is a consequence of the QFT’s structured angles; for generic unitaries, which lack such alignment, increasing can only improve constant factors and does not remove the synthesis overhead.
Beyond reducing the cost of phase synthesis, the formalism also yields smaller controlled circuits. Recent compilation techniques show how to decompose multicontrolled operations linearly without helper qubits, by exploiting higher-order roots and reusing idle qubits as temporary workspace (39). This means that increasing not only shortens the phase-synthesis portion of a program, but also reduces the overhead of conditionals and controlled subroutines, further amplifying the practical benefits of higher precision.
Measurement
Finally, we discuss a free replacement of the standard postulate about measurement, by incorporating (mid-computation) quantum measurement, initialization of auxiliary qubits, and classical control into the above account of reversible quantum computing. Measurement necessitates working with mixed rather than pure states. This means that the objects of the free model can no longer be natural numbers modeling dimensions. Instead, they will be lists of natural numbers, modeling dimensions branched on measurement outcomes, enabling classical control.
An irreversible quantum computation from to qubits can be simulated perfectly by a reversible quantum computation from to qubits using quantum information effects (25). This is another free construction that introduces the ability to hide information in a way that respects both sequential composition ( ) and parallel composition ( ) according to the einselection interpretation of decoherence (40). It may be thought of as a further programming language, in which auxiliary qubits, classical control, and measurements can be used at will anywhere in the quantum program, that gets compiled into a quantum program with a single measurement at the end. Theorem 5 below states that two such programs including measurement denote the same quantum channel if and only if they are provably equal under substitutions using a finite set of equations—see SI Appendix for details. The physical irrelevance of global phase arises in this construction from the uniformity of information hiding, squashing all global phases into a single point.
Similar to how mixed states of qubits correspond to quantum channels , states of some object in the free model correspond to morphisms . An input state evolves along an operation by composition to give output state . Probabilities are thus a derived concept in the free model, with mixed states given by the equivalence class of their purifications.
Bipermutative Categories: Formalizing the Main Results
Let us now sketch the technical development, leaving full detail to SI Appendix. A category consists of objects and morphisms between those objects, such that morphisms and can be composed to (typically shortened to ) in an associative way, and there are identity morphisms on each object (41). Categories can fully characterize quantum theory without referring to the standard model (42). A strict symmetric monoidal category additionally has objects for any two objects and , and morphisms for any morphisms and , a unit object with , and a swap morphism , such that and (20). Morphisms are called scalars, any morphism can be scaled by a scalar to form , and this scalar multiplication commutes with all other operations (20). A bipermutative category is a category that is strict symmetric monoidal in two ways, and , such that and three natural equations hold (43). A category is free with some property when it satisfies the condition of Fig. 1 (41).
Theorem 1There exists a free bipermutative category with generators and satisfying Axioms [1]–[3].
Recall that, like any free model, is unique up to unique isomorphism. For example, is the category whose objects are natural numbers, whose morphisms are permutations of , and which only has one trivial scalar. Another example of a bipermutative category is Unitary(R), where objects are natural numbers, morphisms are unitary matrices over the involutive ring , and scalars are elements of . For example, could be the ring of dyadic rational numbers , with a primitive th root of unity adjoined.
Theorem 2There is an isomorphism of bipermutative categories.
Proof sketch: Freeness of gives a functor from to that is bijective on objects. That it is bijective on morphisms follows because satisfies the equations generating (26).
Just as a quantum circuit is merely a formal diagram, morphisms in are the source code of a quantum program. To physically perform the computation, a meaning has to be assigned to it, just like how quantum circuits are interpreted as unitary matrices. This assignment of meaning preserves the structure of computations.
Theorem 3There is an inclusion from into for any precision level , and for its image is dense.
Proof sketch: Already at precision , the category contains the gate as well as all Clifford gates (up to a global phase). This suffices to approximate arbitrary complex unitary matrices without auxiliary qubits (44).
Similarly, a translation between bipermutative categories is a function that preserves and .
Theorem 4There is a translation from to for such that and in satisfy if and only if in .
Proof sketch: This construction generalizes (22) by emulating a square root of a given scalar using one auxiliary qubit, and noticing that satisfies this.
SI Appendix details a free construction that adds initialization morphisms, decoherence morphisms, and classical control to a bipermutative category to turn it into a strict monoidal category (25), and an equivalence that identifies computations when they are equal in the presence of auxiliary qubits.
Theorem 5There is an inclusion from to the category of completely positive linear maps between finite-dimensional C-algebras for any precision level* , and if and only if in . Computations and in are equal in if and only if up to a global phase.
Proof sketch: The category of quantum channels has a known presentation (45), and it suffices to verify that satisfies its equations.
Reasoning
Reasoning in is exact, symbolic, and complete. Even for a seemingly trivial identity such as , standard approaches face difficulties. One option is to work with matrices whose entries involve algebraic numbers, making exact proofs extremely delicate and number-theoretic in nature. While there are decision procedures for these, their complexity is unwieldy. The fundamental issue is that the theory of algebraic numbers cannot be finitely axiomatized. In contrast, and all other gates are represented in as combinatorial objects governed by a small, finite set of equations. These equations are both sound (every derivable equality holds in all models satisfying the axioms) and complete (every valid equality in such models is derivable). As a result, all reasoning, from the simplest identities to the most involved optimizations, proceeds without approximation, without special-purpose constants, and without leaving the symbolic framework.
For a simple example, let us prove the identity entirely within . In with , define
Starting from :
Unfolding the definition and using the fact that the -swap respects gives
Substituting back:
Thus, is derivable in for all using only the three axioms [1]–[3] and the axioms of bipermutative categories (which include all algebraic properties of scalars used, such as centrality and distributivity).
Conclusion
We have provided an equational axiomatization of quantum computing and an accompanying free model, that does not use complex numbers and is entirely discrete and combinatorial in nature. The induced quantum programming language suffices to express any quantum computation (as stated in Theorem 3), and does not lose any universality or reasoning power with respect to the standard model. Complex linear algebra is not required, and in this universal model of quantum computing the full power of combinatorial optimization can be brought to bear on the problem of manipulating quantum programs in an automated way for optimization, specification, and verification of correctness. Whether two Boolean circuits are equivalent is an intractable problem in the worst case (46), but cases arising in practice can efficiently be dealt with heuristically (47). Whether two quantum circuits are equivalent is an even more intractable problem (13), as it additionally requires comparing whether two real numbers are equal. Because it is efficient to decide whether two elements of are equal, our free model can be dealt with efficiently with heuristics. Furthermore, the axiomatization is foundationally satisfactory, building on classical reversible computing, linking to various quantum computing hardware platforms, and isolating quantum advantage in the ability to take well-behaved square roots.
The literature mostly works with unitary groups that are parametrized by the number of qubits, but otherwise do not observe any relationships between individual groups in the family. Working with bipermutative categories instead means that there are no bounds on the completeness of the free model of Theorem 1 with respect to circuit size or gate count. More precisely, instead of having sets of equations that grow with, and depend on, the number of qubits or number of gates (48), the set of axioms [1]–[3] is complete for all circuits expressible in at once.
Supplementary Material
Appendix 01 (PDF)
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1F. Arute , Quantum supremacy using a programmable superconducting processor. Nature 574, 505–510 (2019).31645734 10.1038/s 41586-019-1666-5 · doi ↗ · pubmed ↗
- 2P. W. Shor, Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM J. Comput. 26, 1484–1509 (1997).
- 3A. P. Lund , Boson sampling from Gaussian states. Phys. Rev. Lett. 113, 100502 (2014).25238340 10.1103/Phys Rev Lett.113.100502 · doi ↗ · pubmed ↗
- 4D. S. Abrams, S. Lloyd, Simulation of many-body Fermi systems on a universal quantum computer. Phys. Rev. Lett. 97, 2586–2589 (1997).
- 5V. Vedral, The elusive source of quantum speedup. Found. Phys. 40, 1141–1154 (2010).
- 6D. Deutsch, Quantum theory, the Church-Turing principle and the universal quantum computer. Proc. R. Soc. A 400, 97–117 (1985).
- 7G. Vidal, Efficient classical simulation of slightly entangled quantum computations. Phys. Rev. Lett. 91, 147902 (2003).14611555 10.1103/Phys Rev Lett.91.147902 · doi ↗ · pubmed ↗
- 8R. Jozsa, N. Linden, On the role of entanglement in quantum-computational speed-up. Proc. R. Soc. Lond. A 459, 2011–2032 (2003).
