Tensor networks in physics can be traced back to a 1971 paper by Penrose (1). Such network diagrams appear in digital circuit theory, and they form the foundations of quantum computing—starting with the work of Feynman and others in the 1980s (2) and further extended by Deutsch in his ’’quantum computational network model’’ (3). Building on a series of results (4–6), Liu et al. (7) recently developed a topological variant of tensor networks that, among other results, led to their discovery of an elegant charged string braiding for the controlled NOT gate (also known as the Feynman gate).
Fig. 1.
Lafont’s 2003 categorical model of quantum circuits included the bialgebra (D) and Hopf (G) relations between the building blocks needed to form a controlled NOT gate. The practical utility of using Baez–Dolan categories (10) to describe quantum circuits (6, 9) is that category theory provides a graphical language that fully dictates the types of admissible relationships and transformations to reason about the interaction of network components. (A) Associativity; (B) gate unit laws; (C) symmetry; (E) copy laws; (F) unit scalar given as a blank on the page. Redrawn from ref. 9.
Category theory is a branch of mathematics well suited to describe a wide range of networks (8). Quantum circuits were first given a ’’categorical model’’ in pioneering work by Lafont in 2003 (9), and dagger compact closed categories (10), also called Baez–Dolan categories, were first derived to describe standard quantum theory as well as classes of topological quantum field theories in seminal work published in 1995 (10). (See ref. 8 for a well-written review of categorical quantum mechanics.) Liu et al. (7) formulated their topological model, in part, using category theory. For practical purposes, the graphical language turns out to be mathematically equivalent to the categorical formulation. So one can work with the diagrams. However, for those worried about the formalism, it’s been fully worked out and applied to quantum physics for a few decades now, pioneered in the seminal work of Baez and Dolan (10) and connected to quantum circuits by Lafont (9).
Lafont’s algebraic theory of logic gates (9) was cast into the setting of tensor network states—as used at the crossroads of condensed matter theory and quantum computation—by myself with several colleagues (11–13). We adapted these tools and discovered efficient tensor network descriptions of finite Abelian lattice gauge theories (14). These tools also led to the discovery of a wide class of efficiently contractable tensor networks, representing counting problems (15).
The Feynman gate is a (if not the) central building block for quantum information processing tasks. In the braided tensor network model, the braiding sequences to represent a Feynman gate are painfully complicated—resembling perhaps a musical score—and hence salient intuitive features are lacking. The known tensor network frameworks differ strikingly from the topological underpinnings in ref. 7. Constructing the Feynman gate as a concatenation of building blocks is, however, similar. Let’s recall the building blocks used in the tensor network construction of the Feynman gate.
Tensor Network Building Blocks
A universal model of computation can be expressed in terms of networks (i.e., circuits built from gates). The first gate to consider copies binary inputs ( and ) like this,
| [1a] |
| [1b] |
In the diagrammatic tensor network language, the copy gate is
![]() |
and, graphically, Eqs. 1a and 1b become
![]() |
The next gate performs the exclusive OR operation (XOR). Given two binary inputs (say and ), the output () is iff exactly a single input is (that is, addition modulo 2). The gate is drawn as
![]() |
The XOR gate allows one to realize any linear Boolean function. Let be a function from -long bit strings to single bits . Then is linear over if it can be written as
| [2] |
where is any -long Boolean string. Hence, there are linear Boolean functions; note that negation is not allowed. When negation is allowed, a constant is added (mod 2) to Eq. 2, and, for , the function is called affine. In other words, negation is equivalent to allowing constant as
![]() |
[3] |
which sends Boolean variable to . Using the polarity representation of ,
| [4] |
we note that linear Boolean functions index the columns of the -fold tensor product of Hadamard matrices [that is, , where the th to th entry of each is ]. Importantly,
![]() |
[5] |
up to isometry as there could be an omitted scale factor, depending on conventions. By Eq. 5, one can think of XOR as being a copy operation in another basis. We send binary to and to , where is transpose. Then XOR acts as a copy operation,
| [6a] |
| [6b] |
using , , and .
Concatenating the copy and XOR gates (12) yields the logically reversible Feynman gate,
![]() |
[7] |
A simplistic methodology to connect quantum circuits with indexed tensor networks starts with the definition of two tensors, in terms of components.
![]() |
In tensor a, we have
| [8] |
where the indices (, , and ) take values . In other words, the following contractions evaluate to unity:
![]() |
Likewise, for tensor b, we have
| [9] |
where the following contractions evaluate to unity (the XOR tensor is fully symmetric, hence the three rightmost contractions are identical by wire permutation):
![]() |
Then the Feynman gate (CN) is given as the following tensor contraction:
| [10] |
[Eq. 10 expands to ], where we raised an index on . All quantum circuits can be broken into their building blocks and thought of as indexed tensor contractions in this way.
Reversible Logic
A reversible computer is built using gates that implement bijective functions. Quantum gates are unitary; hence reversible classical gates are a subclass. Let us recall the critical implication of reversible logic.
We will consider -long bit strings in lexicographic order indexed by natural numbers . So , , etc. We will further consider inputs as being uniformly distributed over and define the change in Shannon’s entropy between a circuit’s input and output (implementing ) as
| [11] |
where the probability for the uniform distribution. Eq. 11 vanishes identically iff is a reversible function.
For nonreversible (also known as a noninjective surjective function), there exists at least one pair , such that , and hence, information is lost, as the input cannot be uniquely recovered from the output (so the Shannon entropy of the output distribution is strictly ); hence, Eq. 11 is nonvanishing. The vanishing of Eq. 11 is a central implication of reversible computation, and it provides an abstract argument related to Landauer’s principle.
Universal classical computation can be realized with reversible logic gates. However, using the Feynman gate is not enough, because it can only be used to implement linear functions. An additional reversible gate must be added, such as the Toffoli or Fredkin gate(s) (Open Problem 1). However, the Feynman gate can provide universal quantum computation provided specific 1-qubit gates are included. Such an approach was taken by Liu et al. in ref. 7.
Stabilizer Tensor Networks
Stabilizer circuits use gates from the normalizer of the -qubit Pauli group—generated by the Clifford gates (16). The gates include (gate i) the single-qubit Pauli gates , , and ; (gate ii) the Feynman gate; (gate iii) the Hadamard gate; and (gate iv) the phase gate .
We will illustrate that (i) a vector , (ii) the Hadamard gate, (iii) the XOR and copy tensors, and (iv) a covector can be contracted to simulate any stabilizer quantum circuit. We will establish this by recovering the Clifford gates (gates i to iv).
By linearity, the copy tensor induces a product between vector pairs, producing a third vector where the coefficients of the input vector pair are multiplied; this allows us to recover from item i the family for integer as, for instance,
![]() |
[12] |
which recovers the vector from Eq. 6a.
Then, from item iv, we can recover a cup (or cap) depending on how we arrange things, and importantly, 13b illustrates that
![]() |
[13] |
The state lifts to a unitary operator where the Clifford gate is recovered for —thereby establishing item iv. For , we recover the standard Pauli matrix; then and . So we recover the Pauli gates (gate i). The Feynman gate was constructed in 7, establishing gate ii, and the Hadamard gate (gate iii) was assumed.
Frontiers in the Jaffe–Liu–Wozniakowski Model
We will conclude by stating a few open challenges that relate to the expressiveness and applications opened up by the Jaffe–Liu–Wozniakowski (JLW) model. There are, of course, many avenues that can be explored. The challenges listed here are related to quantum computation (applying the JLW model to develop new quantum protocols has been considered in ref. 6).
Open Problem 1 (Universal Reversible Logic in the JLW Model)
In principle, the JLW model has the capability to simulate universal quantum computation. There are, hence, indirect methods to create a Toffoli gate (which implements a reversible variant of the logical AND operation). However, a direct mapping to universal reversible computing (without having to necessarily create these operations using gates that are outside of the language) would be highly desirable. Several three-body gates exist—i.e., the Fredkin gate—and determining an elegant braiding relation for one of these gates would be an interesting advancement that could (i) pave the way for a topological understanding of reversible logic and (ii) moreover be used in quantum algorithms that require such gates in their oracles.
Open Problem 2 (Gottesman–Knill Theorem by Confluent Rewrites in the JLW Model)
The Gottesman–Knill theorem (17) proves that the Clifford gates can be efficiently simulated classically. The Clifford operations take a particularly elegant form inside the JLW model. Formulating a graphical proof of the Gottesman–Knill theorem would (i) further demonstrate the expressiveness of the language, (ii) bridge the JLW language with stabilizer theory (which provides an alternative means to define resource states in terms of the stabilizer generators), (iii) lead possibly to extensions of the theorem to a more general setting of parafermions and qudits, and (iv) set the stage for future work on quantum algorithms.
Open Problem 3 (Quantum Circuit Simulation of Parafermions via the JLW Model)
The main focus, to date, has been on mapping circuit-based protocols to the JLW model and then searching for new applications and insights inside the topological setting that the language provides. This mapping can be inverted, providing a new means to simulate a wide class of charge excitations on strings. An open question is to formalize this mapping on dual grounds. Firstly, extending existing simulation methods for, e.g., fermions (18) would produce gate sequences emulating Hamiltonians that exhibit parafermionic excitations. Secondly, these excitations can be simulated using gate operations by simulating the JLW model directly. Quantifying the overheads and determining the complexity of these operations can lead to a library to simulate a wide array of particles with a quantum computer.
Acknowledgments
Diagrams are courtesy of Lusa Zheglova (illustrator). I acknowledge the Foundational Questions Institute for financial support.
Footnotes
The author declares no conflict of interest.
See companion article on page 2497.
References
- 1.Penrose R. Applications of negative dimensional tensors. In: Welsh D, editor. Combinatorial Mathematics and its Applications. Academic; New York: 1971. pp. 221–244. [Google Scholar]
- 2.Feynman RP. Quantum mechanical computers. Found Phys. 1986;16(6):507–531. [Google Scholar]
- 3.Deutsch D. Quantum computational networks. Proc R Soc London A. 1989;425(1868):73–90. [Google Scholar]
- 4.Jaffe A, Liu Z. Planar para algebras, reflection positivity. Commun Math Phys. 2016;341(1):1–39. [Google Scholar]
- 5.Jaffe A, Liu Z, Wozniakowski A. 2016. Holographic software for quantum networks. arXiv:1605.00127.
- 6.Jaffe A, Liu Z, Wozniakowski A. Constructive simulation and topological design of protocols. New J Phys. 2017 in press. [Google Scholar]
- 7.Liu Z, Wozniakowski A, Jaffe AM. Quon 3D language for quantum information. Proc Natl Acad Sci USA. 2017;114:2497–2502. doi: 10.1073/pnas.1621345114. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Baez JC, Lauda A. A Prehistory of n-Categorical Physics. Cambridge Univ Press; Cambridge, UK: 2011. pp. 13–128. [Google Scholar]
- 9.Lafont Y. Towards an algebraic theory of boolean circuits. J Pure Appl Algebra. 2003;184(2-3):257–310. [Google Scholar]
- 10.Baez JC, Dolan J. Higher-dimensional algebra and topological quantum field theory. J Math Phys. 1995;36(11):6073–6105. [Google Scholar]
- 11.Biamonte JD, Clark SR, Jaksch D. Categorical tensor network states. AIP Adv. 2011;1(4):042172. [Google Scholar]
- 12.Bergholm V, Biamonte JD. Categorical quantum circuits. J Phys A Math Gen. 2011;44(24):245304. [Google Scholar]
- 13.Biamonte J, Bergholm V, Lanzagorta M. Tensor network methods for invariant theory. J Phys A Math Gen. 2013;46:475301. [Google Scholar]
- 14.Denny SJ, Biamonte JD, Jaksch D, Clark SR. Algebraically contractible topological tensor network states. J Phys A Math Gen. 2012;45(1):015309. [Google Scholar]
- 15.Biamonte JD, Morton J, Turner J. Tensor network contractions for #SAT. J Stat Phys. 2015;160:1389–1404. [Google Scholar]
- 16.Selinger P. Generators and relations for n-qubit Clifford operators. Logical Methods Comput Sci. 2015;11(2):1–17. [Google Scholar]
- 17.Gottesman D. The Heisenberg representation of quantum computers. In: Corney SP, Delbourgo R, Jarvis PD, editors. Proceedings of the XXII International Colloquium on Group Theoretical Methods in Physics. Int Press; Cambridge, MA: 1998. [Google Scholar]
- 18.Whitfield JD, Biamonte J, Aspuru-Guzik A. Simulation of electronic structure Hamiltonians using quantum computers. Mol Phys. 2011;109:735–750. [Google Scholar]












