Manuscript Offprint
arXiv:2610.02287Premonoidal Semantics and Scalable Diagrammatics of Fermionic Quantum Computing
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Local fermionic mode (LFM) based quantum computation has pure state spaces that are isomorphic, via the Jordan–Wigner representation, to qubit state spaces, but its compositional structure is subtly different. Indeed, the algebraic formalism specifying how to embed fermionic systems underlies a notion of parallel composition, for which, in general, the usual interchange law of monoidal categories fails. We give a categorical account of this phenomenon. Starting from the CAR-algebraic semantics of fermionic gate application, we show that LFM processes form a symmetric premonoidal category whose centre is precisely the even, parity-preserving subcategory. The same processes can alternatively be organized with the ordinary tensor product and a fermionic presymmetry that is natural exactly on even maps. To reason diagrammatically in this latter presentation, we introduce pronaps, a relaxation of the notion of prop, in which permutations are not-necessarily-natural, and use them to organize a hierarchy of fragments of the fermionic ZW calculus relevant to the study of fermionic circuits on physically motivated gate-sets. We then extend scalable diagrammatic notation to pronaps. In this setting, syntactic sugars inspired by SZX and GSA are defined, with the specificity that matrix arrows encode minors and determinants, while graph triangles encode pfaffians of principal submatrices. These constructions yield elegant normal forms and completeness proofs for our presentations of the EoW, FoW, EW, and FW fragments. In particular, the FW presentation gives a new normal form for the matchgate fragment, distinct from the rWGS-X normal form of the planar-W (pW) presentation of the same category. The resulting framework connects fermionic circuit semantics, diagrammatic rewriting with scalable notations, and the algebra of determinants and pfaffians.
1 Introduction
Motivation. Quantum computation turns the physical principles of quantum mechanics into computational models on which algorithms can be specified, composed, and compared to their classical counterparts. The quantum circuit model achieves this by decomposing quantum computations into elementary gates acting on finite registers of qubits. Gates acting on subregisters can be assembled into larger circuits by sequential and parallel composition. Each gate is interpreted as a unitary map, and this compositional structure is naturally captured by symmetric monoidal categories. This symmetric monoidal structure can be represented by string diagrams, with sequential and parallel composition encoded by graphical composition. Calculi such as the ZX-calculus [13] and the ZW-calculus [14, 19] axiomatize such categories via complete equational theories [19, 20], allowing semantics equalities to be derived by diagrammatic rewriting.
Fermionic quantum computing provides a particularly instructive test of this compositional picture. In the local-fermionic-mode (LFM) model of Bravyi and Kitaev [5], information is encoded in the occupation of fermionic modes and transformations are naturally described in the CAR algebra generated by fermionic creation and annihilation operators. After choosing an ordering of the modes, the Jordan–Wigner representation identifies the state space of m fermionic modes with that of m qubits. We argue that this vector-space coincidence, however, does not make the two compositional theories identical: fermionic exchange statistics remain visible when operations are applied to disjoint modes. The obstruction already appears for the one-mode flip gate . For , then:
More generally, the algebraic formalism specifying how fermionic systems are embedded into larger registers induces a notion of parallel composition for which the ordinary interchange law fails in general. This failure matches the super-interchange law of monoidal supercategories [6]. We nevertheless describe it as a premonoidal structure, which is conceptually simpler and invites an operational interpretation of the gates responsible for this failure through comparison with computational effects [28].
Diagrammatic approaches to fermionic computation already exist. In particular, de Felice, Hadzihasanovic and Ng introduced a fermionic fragment of the ZW-calculus (FZW) and proved it complete for homogeneous linear maps organized with the ordinary tensor product [15]. Its even fragment (EZW) was also given a complete axiomatization in [25]. Our aim is complementary: we first identify the premonoidal structure induced directly by the semantics underlying Bravyi and Kitaev's LFM model [5], and then relate it precisely to the monoidal presentation used for diagrammatic rewriting.
Contributions. Our first contribution is a categorical semantics for LFM circuits derived from their CAR-algebraic gate application. We show that CAR operators form a symmetric premonoidal category and that its centre is exactly the even subcategory. Via the Jordan–Wigner representation, this structure extends to homogeneous linear maps between registers of different sizes, including preparations and effects. On the same category of LFM maps, we identify two complementary presentations: with the ordinary tensor product the structure is monoidal but the fermionic permutation is natural only for even maps; with the CAR-induced premonoidal product the fermionic permutation is natural, while two odd maps on disjoint systems fail monoidal interchange by a sign. This makes explicit the relation between the operator-algebraic and diagrammatic viewpoints on fermionic locality.
Our second contribution is a diagrammatic framework adapted to the monoidal presentation with a non-natural fermionic permutation. We call the resulting categorical structures pronaps, for PROducts and Non-nAural Permutations, which are a relaxation of props. Using the fermionic ZW-calculus as a starting point, we organize a hierarchy of fragments tailored to subsets of the Bravyi-Kitaev gate set. The even fragments EoW and EW of EZW, are props; adding the relevant odd generators yields the pronap fragments FoW and FW of FZW. The fragments EW and FoW are new, while FW is a new pronap presentation of the category previously axiomatized by the planar W calculus (pW) [8]. These fragments all are of interest to the study of fermionic circuits on a hierarchy of physically motivated gate-sets.
Our third contribution is to extend scalable graphical notation [7] from props to pronaps. The extension makes explicit which equations can be scaled in the presence of non-natural generators and provides compact syntactic constructions for the algebraic structures occurring in the completeness proofs. In particular, matrix arrows represent weighted bipartite graphs and encode all minors of their label matrices, so that determinant identities such as Cauchy–Binet, the cofactor formula, Sylvester's identity, and Schur-complement identities become diagrammatic rewrites. Additionally, graph triangles labelled by antisymmetric matrices encode principal pfaffians and satisfy the corresponding pfaffian identities. Finally, these scalable constructions give canonical normal forms and completeness proofs for the four fragments EoW, FoW, EW, and FW. The EoW normal form is a single matrix arrow. The FoW normal form is controlled by a full-rank matrix in reduced column-echelon form. The EW and FW normal forms combine such a matrix with a graph-triangle component, labelled by an antisymmetric matrix. For FW, this yields a new normal form for the matchgate fragment, reminiscent of the AP normal form for Clifford ZX-calculus [7], distinct from rWGS-X normal-form derived in the planar-W (pW) presentation [8]. Together, these results connect fermionic circuit semantics, complete scalable diagrammatic rewriting, and the determinant/pfaffian algebra underlying fermionic Gaussian and matchgate computations.
Structure of the paper. Section 2 recalls the local-fermionic-mode model, introduces the CAR algebra and the Jordan–Wigner representation, and fixes the fermionic gate-set and the fermionic swap used throughout the paper. Section 3 develops the categorical semantics: we derive the premonoidal structure from CAR gate application and establish the trade-off between monoidality and naturality of the fermionic permutation. Section 4 introduces the diagrammatic languages, relates the existing fermionic ZW-calculus to our pronap presentation, and defines the EoW, FoW, EW, and FW fragments. Section 5 extends scalable notation to pronaps, develops matrix arrows and graph triangles, and uses them to obtain the normal forms and completeness results. The appendices contain the proofs of the categorical statements, derived equations, and normal-form theorems.
This idea was developed more systematically by Sergei Bravyi and Alexei Kitaev in their 2002 article Fermionic Quantum Computation [5], which gives a precise gate-based formulation of quantum computation with local fermionic modes, closely resembling the usual quantum circuit model. Although their presentation is not phrased in these terms, Bravyi and Kitaev essentially equip this computational model with a denotational semantics expressed in the algebraic language of second quantization, using fermionic creation and annihilation operators. In section 2.1, we first give a high-level conceptual discussion of what LFM-based quantum computation is, and of possible experimental realizations, with the aim of building operational intuition for what the execution of an LFM circuit amounts to. In section 2.2, we then introduce the algebra of fermionic operators needed to describe local fermionic modes mathematically. Finally, in section 2.3, we use this formalism to give a precise definition of the Bravyi–Kitaev computational model through its denotational semantics.
2.1 A Fermionic shell game
The computational degrees of freedom in Local Fermionic Mode (LFM) quantum computation are not individual fermions, but the modes they may occupy. This distinction is important because identical fermions cannot be individually labelled: they are fundamentally indistinguishable. Their fermionic statistics instead appear through the antisymmetry of exchange of the many-particle state. Such exchange effects can already be observed with a few particles, for instance with ultracold fermions in optical tweezers [1] or in electronic Hong-Ou-Mandel experiments [2].
A useful operational picture for Local Fermionic Mode computation is that of a shell game. The shells are the fermionic modes: they are the individually addressable objects that can be moved, coupled, or measured. The balls underneath

them are indistinguishable fermions. What is recorded: a computation workshop of Hieronymus Bosch, c. 1502. Public domain; where each mode is occupied or empty, with at most one fermion per mode by the Pauli exclusion principle. An LFM register is thus described by a binary occupation pattern, possibly in a quantum superposition of several such patterns : this is where the analogy with a classical shell game stops. Coherent transformations of the modes retain information about fermionic statistics: in particular, exchanging occupied modes may introduce a sign in the corresponding amplitude, which can become observable through interference. Thus the modes provide an addressable computational interface, while the fermionic nature of the particles remains visible in the transformations acting on their occupation states.
Optical-tweezer platforms give a particularly concrete realization of this picture [24, 30, 31, 36]. In this setting, a localized single-particle state of a tweezer acts as a fermionic mode: changing its phase, allowing tunnelling between modes, or coupling the occupations of several modes gives an operational interpretation to the elementary gates of an LFM circuit [18, 27]. Such platforms normally conserve the total number of physical atoms, whereas the general LFM model only imposes the weaker parity superselection rule: fermionic systems do not admit coherent superpositions between states of even and odd total fermion number [16, 33, 34]. Consequently, some operations allowed by the abstract LFM formalism may require additional physical resources on a number-conserving platform. We return to this point when introducing our working fermionic gate-sets.
The following subsection introduces the algebraic formalism used to make these ideas precise and to give a denotational semantics to LFM computation.
2.2 Fermionic creation and annihilation operators
A system of fermionic modes will be called a fermionic register of size , where counts modes rather than particles. We now introduce the -algebraic formalism used to describe such registers.
DEFINITION 2.2.1 (*-ALGEBRA). A *-algebra (A, *) over C is an associative complex algebra A equipped with a conjugate-linear involution *: A → A satisfying
Fermionic registers are modeled using the abstract operator -algebra with involution denoted generated by creation and annihilation operators, which respectively create and annihilate particles in a given mode. These operators are subject to Canonical Anticommutation Relations (CAR), hence the name of the operator algebra.
DEFINITION 2.2.2 (CAR ALGEBRA). The CAR algebra for m modes , with involution denoted , is the unital -algebra freely generated by operators , and subject to:
We denote elements of the algebra as non-commutative polynomials in the creation and annihilation operators. This non-commutative polynomial is not unique. Indeed, using the CAR we can reorder the variables to rewrite uniquely any element of as:
where and are subsets of , and .
The CAR preserve the parity of the degree of the monomials, which justifies the following definitions:
DEFINITION 2.2.3 (EVEN OPERATOR, ODD OPERATOR, HOMOGENEOUS OPERATOR). An element is said:
Even if it is a linear combination of monomials of even degrees,
Odd if it is a linear combination of monomials of odd degrees,
Homogeneous if it is either even or odd.
The preceding decomposition is precisely the canonical -grading of the CAR algebra:
where the degree is taken modulo 2. In the usual terminology, is therefore a superalgebra [32]. It is important, however, that is not supercommutative in general: homogeneous elements do not necessarily satisfy
Such a graded commutation relation will hold below under additional conditions, in particular for homogeneous operators supported on disjoint sets of fermionic modes.
Beware that the creation and annihilation operators do not correspond to physical transformations that are expected to be implementable on a Fermionic computer. They should be understood as an intuitive way to decompose the actual physical processes. One of the advantages of this decomposition is that the homogeneous operators correspond to processes complying with the Parity Superselection Rule. Indeed, as an odd number of creation or annihilation of particles changes the parity of a state, while an even number preserves the parity, non-homogeneous operators would introduce quantum superposition between even and odd states, which is forbidden.
Operators of the CAR algebra can thus be thought of as acting on states, which in the case of pure quantum mechanics are described as vectors of a Hilbert space [26]. To make this more formal, we will make use of the customary Dirac notations to denote vectors and matrices:
DEFINITION 2.2.4 (DIRAC NOTATIONS). We denote the standard basis of the Hilbert space as kets:
For binary words , the concatenated ket denotes the Kronecker product of the corresponding vectors:
The bra is the conjugate transpose of the ket :
The inner product between a bra and a ket is given by:
where is the Kronecker delta.
The CAR algebra being a finite dimensional -algebra, of dimension , there is a straightforward way to provide a representation for it in the concrete -algebra of endomorphisms of the Hilbert space .
DEFINITION 2.2.5 (JORDAN-WIGNER REPRESENTATION). Let . The Jordan-Wigner representation
is defined through its action on the computational basis of , where the binary string in is interpreted as the occupation-numbers of the state: mode is occupied if and only if .
is the unique -algebra morphism defined by:
and
where , , and denotes the Hamming weight of .
The Jordan-Wigner representation is often thought of as a way to encode fermionic systems into qubits. In this work, we merely see it as a way to recover a Hilbert space formalism for pure fermionic systems, in which a happy coincidence on dimension makes the state space of a register of m fermionic modes isomorphic to the state space of m qubits.
Above definitions of odd, even and homogeneous operators are easily extended to any linear maps, including state vectors.
DEFINITION 2.2.6 (EVEN, ODD, HOMOGENEOUS LINEAR MAP). Let . We say that is:
| Even when
| Odd when
| Homogeneous when it is either even or odd.
This is precisely the usual notion of even and odd morphisms between super vector spaces [6]. One can check that this definition is consistent with the Jordan-Wigner representation, in the sense that maps even operators to even linear maps, odd to odd, and homogeneous to homogeneous. The representation of a physical operator should therefore be an homogeneous linear map.
Given its Jordan-Wigner representation, the CAR algebra formalism may seem redundant. Indeed, one could try to define a LFM circuit model through a denotational semantics in the more usual framework of Hilbert spaces and linear maps. We argue that CAR algebras are central to Bravyi and Kitaev's proposal of such a model [5], and that ignoring it would lead to missing important subtleties in the compositionality of Fermionic circuits, which we expand on in section 3. As a consequence, section 2.3 defines Fermionic circuits through an operator algebraic denotational semantics.
2.3 Bravyi-Kitaev's computational model
As stated before, Bravyi and Kitaev's LFM computational model is analogous to the quantum circuit model: computations are described by circuits whose gates are applied to finite tuples of modes. Defining the model essentially amounts to specifying what constitutes a fermionic gate and how such a gate is applied to a tuple of modes.
In this work, we restrict ourselves to pure Fermionic computations, whose evolution is described by unitary transformations, as opposed to general mixed quantum processes [26]. The Parity Superselection Rule further constrains the closed evolution of a Fermionic system: physical Hamiltonians, and therefore the unitaries they generate, preserve Fermionic parity [5]. We will nevertheless use a slightly broader notion of Fermionic gate, allowing effective parity-reversing transformations whose operational meaning will be discussed below.
DEFINITION 2.3.1 (FERMIONIC GATES). An element is unitary when
A Fermionic gate is a homogeneous unitary . It is even, or parity-preserving, when is even, and odd, or parity-reversing, when is odd.
Originally, Bravyi and Kitaev only allow even gates. In particular, they provide a finite set of local Fermionic gates which is approximately universal for quantum computation [5]. Since is finite-dimensional, we use the usual exponential .
DEFINITION 2.3.2 (BRAVYI–KITAEV FERMIONIC GATE SET). We consider the following gates:
All four gates are even, that is to say parity preserving. Under the Jordan–Wigner representation, the four Bravyi–Kitaev gates take the following matrix forms:
The gates , and also preserve the total particle number: they respectively describe an occupation-dependent phase, coherent tunnelling between two modes, and an interaction depending on their joint occupation. By contrast, coherently couples states whose particle numbers differ by two. This distinction has a direct hardware interpretation. Number-conserving neutral-atom processors naturally provide operations of the , and types, while pairing operations of the type require an additional resource. Bravyi and Kitaev discuss such pairing terms in connection with an interaction with a superconductor [5].
Among the gates considered in this work there is supplementary a simple odd operation, which exchanges the empty and occupied states of a single fermionic mode.
DEFINITION 2.3.3 (MODE-FLIP GATE). The mode-flip gate is
By the CAR,
so F is an odd Hermitian unitary. Under the Jordan–Wigner representation,
It is therefore the fermionic analogue of a Pauli-X gate on a single mode.
Although F reverses fermionic parity, it does not create a coherent superposition of the even and odd sectors. Indeed, F is homogeneous: it maps every even state to an odd state and every odd state to an even state. In this sense, the mode-flip is compatible with the parity superselection rule. This should be distinguished from parity conservation, which would forbid such a transformation on an isolated system.
We are not aware of a current fermionic platform in which F is directly available as a native operation. Its homogeneity nevertheless leaves open the possibility of an effective implementation in a setting where the addressed mode can exchange fermionic parity with additional physical degrees of freedom. From the viewpoint of the mode alone, such an interaction could realize F, while the complete physical system still preserves its total fermionic parity.
On platforms whose native dynamics preserve parity, additional resources are therefore required to realize the mode-flip. This is a fortiori the case for platforms that conserve the total particle number, such as fermionic neutral-atom tweezer arrays. A concrete example is provided by Ott et al. [27]. They introduce an ancillary fermionic reference and define a referenced mode for which
can be implemented using number-conserving operations on the physical atoms. At ,
which is, up to a global phase, precisely a mode-flip on the referenced mode. The reference supplies the complementary change in particle number, so that the effective referenced mode may be flipped while the total number of physical atoms remains fixed.
Thus F is a legitimate homogeneous gate of the LFM formalism, while its physical realization depends on which conservation laws are imposed by the underlying platform.
Application of a gate to Fermionic modes. The main difference with the usual quantum circuit model lies in the application of a gate to a chosen tuple of modes. There, gate application is defined using tensor products of Hilbert spaces. For Fermionic modes, it is instead naturally expressed directly in the CAR algebras.
DEFINITION 2.3.4 (TUPLE OF MODES AND APPLICATION MORPHISM). Let
be an injection, which we equivalently regard as a tuple of m pairwise distinct modes of an -mode register. We denote by
the unique unital -algebra morphism satisfying
LEMMA 2.3.1. The morphism is well defined and injective. Moreover, it preserves parity and maps unitary elements to unitary elements.
DEFINITION 2.3.5 (FERMIONIC GATE APPLICATION [5]). Let be a Fermionic gate and let be a tuple of modes. The application of to is
Thus gate application amounts algebraically to relabelling the creation and annihilation operators occurring in the gate. This definition differs from ordinary qubit gate application, where the ambient tensor-product structure provides the embedding automatically.
Fermionic permutations. Bravyi and Kitaev introduce a Fermionic analogue of the swap gate, which implements permutations of modes while respecting their exchange statistics.
DEFINITION 2.3.6 (FERMIONIC SWAP). The Fermionic swap on two modes is
For distinct , we write for its application to the tuple .
Under the Jordan–Wigner representation, the Fermionic swap is the usual two-qubit swap with an additional phase on the doubly occupied state:
Thus exchanges the two occupation modes while accounting for the minus sign arising from the exchange of two Fermions.
LEMMA 2.3.2. The Fermionic swap is an even Hermitian unitary. Moreover, denoting the transposition of , we have for every ,
The Fermionic swaps therefore implement ordinary permutations of the mode labels by conjugation.
LEMMA 2.3.3 (REPRESENTATION OF THE SYMMETRIC GROUP). For , let be the transposition exchanging and . Let us denote:
The operators satisfy the Coxeter relations
Consequently there is a unique group homomorphism
sending to .
For an arbitrary transposition , the image obtained from this representation agrees with the element defined above: both implement the same conjugation on all CAR generators and both fix the vacuum.
DEFINITION 2.3.7 (PERMUTATION ACTION ON THE CAR ALGEBRA). The preceding representation induces an action
Since , equivalently
LEMMA 2.3.4. Let
be a tuple of modes and let . Then, for every ,
The distinction between even and odd Fermionic gates introduced above will be crucial in the following section. Even operators supported on disjoint sets of modes commute, as expected of independent physical operations. Odd operators do not: for ,
Consequently, once effective odd transformations are included, application on disjoint modes does not satisfy the ordinary interchange law of a monoidal category. The following section studies the categorical structure induced by this obstruction.
3 Categorical denotational semantics
In the previous section, we described Fermionic computations algebraically: a computation on a fixed register is interpreted as an element of a CAR algebra, while the application of a gate to a chosen collection of modes is expressed through embeddings between CAR algebras. We now organize these ingredients into a categorical semantics.
Two features will guide the construction. First, although gates supported on disjoint sets of modes can be applied independently, odd Fermionic operations anticommute rather than commute. Their coexistence therefore prevents the usual tensorial interchange law and naturally leads to a premonoidal structure. Second, CAR algebras describe endomorphisms of fixed-size registers, but do not by themselves contain preparations, effects, or processes between registers of different sizes. After identifying the premonoidal structure already present in the CAR semantics, we will therefore use the Jordan–Wigner representation to extend it to a category of general pure Fermionic processes.
3.1 The CAR category
The CAR algebra may be regarded as a one-object category whose endomorphisms are the elements of , with composition given by the algebra product. Collecting these categories for all register sizes gives a first categorical semantics for Fermionic computations.
DEFINITION 3.1.1 (THE CAR CATEGORY). The category CAR has objects N and hom-sets
Composition in CAR [m, m] is multiplication in , and the identity on m is . In particular, , so that CAR [0, 0] contains the scalar morphisms.
We denote by HomCAR the wide subcategory whose morphisms are homogeneous operators, and by EvenCAR the wide subcategory whose morphisms are even operators.
To compare this semantics with the usual Hilbert-space semantics, it is convenient to use the usual semantics category of qubit registers.
DEFINITION 3.1.2 (THE QUBIT CATEGORY). The category Qubit has objects N and
The Jordan-Wigner -algebra isomorphisms naturally extend to a functor from CAR to Qubit.
DEFINITION 3.1.3 (JORDAN-WIGNER FUNCTOR). The Jordan-Wigner representation defines a functor
by
Functoriality follows from the fact that each is a unital -algebra morphism. Moreover, JW is faithful and, for every , induces an isomorphism
Thus every square linear map on an m-mode occupation space has a unique description as an element of the CAR algebra. The functor is not full, however, since whenever . In particular, does not contain state preparations or effects. We return to this limitation in section 3.3.
3.2 Premonoidality and Non-natural symmetry
Bravyi and Kitaev's notion of applying a gate to a tuple of modes provides more structure than the category CAR alone. In particular, a register can be enlarged by idle modes on either side of an operation. These two extensions are functional separately, but, in the presence of odd Fermionic operations, they do not jointly define a bifunctor. This is naturally captured the notion of strict premonoidal category.
DEFINITION 3.2.1 (STRICT PREMONOIDAL CATEGORY). A strict premonoidal category is a category whose objects form a monoid , together with, for every object A, two functors
whose action on objects is given by , and satisfying
Strict premonoidal categories admit a string-diagram notation similar to monoidal categories. Morphisms are represented by boxes and objects by wires. Consider a morphism . Its string diagram presentation is . The composition for si pictured as . The functors and correspond respectively to adding an idle wire above and below its diagram:

Contrary to the monoidal case, however, two boxes on disjoint wires cannot in general be moved past one another: their relative order may carry information.
We use the convention encoded by these diagrams that the modes of a register are numbered from top to bottom. Adding modes underneath an operation therefore does not change its mode indices, whereas adding modes above it shifts them.
DEFINITION 3.2.2 (PREMONOIDAL PRODUCT ON CAR). On objects, define
For and , define
as elements of .
PROPOSITION 3.2.1. (CAR, , 0) is a strict premonoidal category.
The failure of the interchange law preventing from being a monoidal cannot be witnessed unless considering non-even morphisms, as even elements of the CAR algebras commute with every other element so long as they are supported on disjoint sets of fermionic modes.
DEFINITION 3.2.3 (COMMUTING MORPHISMS, CENTRAL MORPHISM, CENTRE). Let be a strict premonoidal category. Two morphisms and commute when

and
A morphism is central when it commutes with every morphism. The wide subcategory consisting of central morphisms is called the centre of C.
PROPOSITION 3.2.2. The centre of (CAR, ) is EvenCAR.
In the homogeneous subcategory of CAR, the obstruction to monoidality is precisely the Fermionic sign.
LEMMA 3.2.1 (GRADED INTERCHANGE). Let and be homogeneous, with parities . Then
The graded interchange law above is the usual super-interchange law associated with the canonical -grading of the CAR algebra. In fact, our premonoidal structure satisfies the same signed interchange law as homogeneous morphisms in a monoidal supercategory in the sense of Brundan and Ellis [6].
We nevertheless retain the premonoidal formulation for two reasons. First, it arises directly from the notion of gate application introduced in Section 2: an operation on a fermionic register can be embedded into a larger register by adding idle modes either before or after the modes on which it acts. Premonoidality therefore captures directly the compositional structure induced by the CAR-algebraic definition of gate application, without building the fermionic sign into a primitive notion of parallel composition.
More importantly, premonoidality has a direct operational interpretation. In a premonoidal category, two operations acting on separate components cannot be exchanged, the sequential order in which they are applied matter. This was one of the motivations for introducing premonoidal categories in the semantics of programming languages, notably for computations with side effects and in connection with models of concurrency [28]. String-diagrammatic formalisms for premonoidal categories have also been studied in this computational setting [29].
The same operational distinction appears concretely for fermionic circuits. Two odd operations acting on disjoint sets of modes cannot be exchanged freely: reversing their order introduces the sign of Lemma 3.2.1. Even operations, on the other hand, are central and may be exchanged with arbitrary operations. The premonoidal viewpoint therefore makes explicit, at the level of the circuit semantics, which parts of the computation seem to involve “non-local” effects on the system wavefunction.
Fermionic permutations. The Fermionic swaps introduced in section 2.3 provide a symmetry for this premonoidal structure. Since we wish to distinguish the algebraic permutation equations from naturality, we introduce the following terminology.
DEFINITION 3.2.4 (PRESYMMETRIC PREMONOIDAL CATEGORY). A strict premonoidal category is presymmetric when it is equipped with central isomorphisms
denoted , satisfying the usual permutation coherence equations. In the one-generated strict setting considered here, these are generated by the involution and Yang–Baxter equations


=
and
=
We call the non-natural symmetry involved in the above definition presymmetry. A presymmetry is a symmetry when it defines a natural transformation. In the following we call natural with respect to a presymmetry the morphisms that are not obstacles to the naturality of the presymmetry.
DEFINITION 3.2.5 (NATURAL MORPHISM AND NATURE). Let be presymmetric. A morphism is natural with respect to when, for every object ,

and

The wide subcategory of natural morphisms is called the Nature of the presymmetry. We call a presymmetric premonoidal category symmetric when every morphism belongs to its Nature.
For , let be the block permutation exchanging the first modes with the following modes while preserving the order inside each block, and define
PROPOSITION 3.2.3. The family makes into a strict symmetric premonoidal category.
The symmetric premonoidal category (CAR, , ) therefore captures the endomorphism semantics of Fermionic circuits. It remains disconnected, however: it contains no morphisms between registers of different sizes and cannot directly express state preparations, effects, ancillae or postselection. We now enlarge the semantics while preserving the structure identified above, recovering a semantics in the category of Hilbert spaces and linear maps through the Jordan-Wigner functor.
3.3 Categorical aspects of the Hilbert space semantics
Let
PROPOSITION 3.3.1 (JORDAN-WIGNER IMAGE OF FERMIONIC PER-MUTATIONS). For and ,
In particular,
Thus is the graded swap associated with the parity grading of the occupation basis.
DEFINITION 3.3.1 (LFM AND EVENLFM). The category LFM has objects N and homogeneous linear maps
as morphisms. Its wide subcategory of even linear maps is denoted EvenLFM.
By the results of section 2.2, the Jordan–Wigner representation maps homogeneous CAR operators to homogeneous linear maps and even CAR operators to even linear maps. Thus it restricts to functors
JW : HomCAR LFM, JW : EvenCAR EvenLFM.
For each m, these restrictions are isomorphisms on the corresponding endomorphism sets.
Unlike HomCAR, however, LFM also contains rectangular processes. In particular, morphisms are homogeneous state vectors and morphisms are homogeneous effects. It can therefore describe ancilla preparation and postselection.
The monoidal/symmetric trade-off. The ordinary tensor product restricts to a monoidal product on LFM. However, the Fermionic permutation is not natural with respect to every homogeneous linear map.
PROPOSITION 3.3.2. The family defines a presymmetry on (Qubit, ). Its Nature is exactly EvenLFM.
Thus there is a trade-off: the ordinary tensor product is genuinely monoidal, but the Fermionic symmetry is natural only for even processes. The same data may instead be organized so as to make the Fermionic symmetry natural at the price of weakening monoidality.
LEMMA 3.3.1 (MONOIDAL VS. SYMMETRIC TRADE-OFF). Let be a strict monoidal category equipped with a presymmetry. Define a product on objects by
and define the functors and diagrammatically by

and

Where the white background depicts the structure while the gray background depicts the structure.
Equivalently, for and an object ,
and
Then is a strict symmetric premonoidal category. Moreover, the Nature of is contained in the centre of .
Applying Lemma 3.3.1 to (Qubit, , ) gives a premonoidal product, also denoted . Its action on homogeneous maps admits a particularly simple description. Define the parity operator
LEMMA 3.3.2. Let be homogeneous of parity . Then
In particular, restricts to both LFM and EvenLFM. The graphical interchange equations introduced above now acquire their characteristic Fermionic sign.
PROPOSITION 3.3.3 (GRADED INTERCHANGE IN LFM). Let and be homogeneous. Then
Consequently, the centre of (LFM, ) is EvenLFM.
We can now summarize the relation between the algebraic and Hilbert-space semantics.
THEOREM 3.3.1 (PREMONOIDAL JORDAN-WIGNER SEMANTICS). The category (Qubit, , ) is a strict symmetric premonoidal category, and its subcategories (LFM, , ) and (EvenLFM, , ) inherit this structure. Moreover,
and the Jordan–Wigner functor
is a strict symmetric premonoidal functor. It restricts to
JW : HomCAR LFM, JW : EvenCAR EvenLFM.
The same category LFM therefore carries two useful structures:
(LFM, , ) and (LFM, , ).
With the ordinary tensor product, composition on independent systems is strictly monoidal, but the Fermionic symmetry is natural only for even maps. With the premonoidal product, the Fermionic symmetry becomes natural for all homogeneous processes, while two odd processes on disjoint systems fail interchange by a sign.
The second structure is the one directly induced by the CAR semantics and therefore provides our denotational semantics for Fermionic circuits. The first, however, is often more convenient for presenting and rewriting linear maps. In the following section, we develop a local syntax for these maps and study when its rewrites faithfully represent Fermionic circuits; the distinction between and will allow us to keep track of precisely where Fermionic signs come into play.
4 Diagrammatic syntax of LFM-based quantum computing
In section 2, we presented the Bravyi and Kitaev LFM circuit model, and in section 3, we studied the categorical aspects of its two semantics, either in the symmetric premonoidal category (LFM, , ) or in the presymmetric monoidal category (LFM, , ).
In order to be executed on a fermionic machine, it is necessary to know how to rewrite a logical LFM circuit C in an equivalent circuit whose gates are native on the target fermionic platform. Here, equivalent means that their denotations are the same.
To that extent, the monoidal semantics is better suited, for the rewriting can be encapsulated by a sequence of local rewrites which constitute an equational theory of the underlying monoidal category. Such equational theories of circuits have a long history, from the algebraic treatment of Boolean circuits by Lafont [22] to recent complete equational theories for quantum circuits [10–12]. In categorical terms, they can be formalized as prop theories.
4.1 Props and their theories
When manipulating usual quantum circuits, like when manipulating fermionic circuits, the monoidal (or premonoidal) categories considered have more features: their monoid of objects is freely generated by a single object denoted 1.
EXAMPLE. This single object corresponds to:
• in Qubit,
• in Qudit,
• in LFM,
• 1 as the abstract object for one fermionic mode in CAR.
Given a set of usual quantum gates, the category of formal quantum circuits one can build with them is a symmetric monoidal category whose monoid of objects is freely spanned by a single object: a one-qubit system, represented with a wire. Such categories are called props.
DEFINITION 4.1.1 (PROP). [21] A prop is a (strict) symmetric monoidal category whose monoid of objects is freely generated by a single object 1.
The n-fold monoidal product is denoted for . The monoidal product on morphisms is denoted . The generating symmetry is generally denoted .
Fermionic circuits on Bravyi-Kitaev's gate set form a prop: indeed, the semantics of all the gates is either in (EvenCAR, , ) or (EvenLFM, , ), which are props (arrows are all central and natural in both cases). As a consequence, Bravyi and Kitaev's circuits can be manipulated as usual quantum circuits. This is the case for any circuit on an even gate set.
Props can be represented diagrammatically with a single type of wire, corresponding to the core object 1.
Composite objects are represented by parallel wires.
In general, when considering the prop of quantum (resp. fermionic) circuits on a gate set (resp. even gate set), its denotational semantics is equivalent to the category of formal circuits quotiented by all equations involving the gates that are valid in the semantics. This idea can be generalized to provide axiomatizations of props given by a formal category of diagrams over a set of generators quotiented by a set of equations. Such an axiomatization is called a prop theory.
DEFINITION 4.1.2 (PROP THEORY). A prop theory is a pair consisting of a set of generators and a set of equations :
- contains typed generators with ,
• Formal diagrams are defined inductively as either:
, a generator.
id₁ : 1 → 1, the identity on the core object.
, the generating symmetry.
, the composition of two formal diagrams
.
- E contains pairs of formal diagrams of the same type .
Given a prop theory , there is a corresponding prop generated by and quotiented by and the axioms of symmetric monoidal categories. In practice, we denote both the theory and the corresponding prop and rely on the context to disambiguate.
DEFINITION 4.1.3 (SEMANTIC FUNCTOR). Let be a prop theory, a prop. A symmetric monoidal functor is called a semantic functor of in the prop . We say that is universal for when is full, and that is complete for when is faithful.
When the context is clear, we simply write for .
Let be the theory of formal circuits on Bravyi and Kitaev's gate set. We have defined in previous sections a semantic functor through
. This theory is not complete at all: and thus different formal circuits implementing the same unitary are not equal in . A complete theory for Bravyi-Kitaev's circuits would be such that for two circuits with , there is a way to transform into by performing local rewrites for , where either or is a subcircuit of either or .
Note that on EvenLFM, and coincide. In order to deduce sound equations on circuits over Bravyi and Kitaev's gate set, it maybe useful to translate them to another prop theory interpreted in (EvenLFM, , ). This method is similar to ZX-calculus for usual quantum circuits: translate quantum circuits to a more expressive prop theory (ZX-calculus), in which one can represent any linear maps, and which is already proven complete for the target semantics. If a quantum circuit C translates to a ZX diagram D, and that we know how to rewrite with a circuit such that and , then is a sound equation.
Based on the work of De Felice, Hadžihanović, Ng[15, 25], we propose to use the complete prop theory EZW, whose generators are given together with their semantics in Figure 1.
THEOREM 4.1.1 (DE FELICE, HADŽIHASANOVIC, NG [25]). There is a complete prop theory denoted EZW of (EvenLFM, , ) with generators:

Note that our set generators slightly differs from the one in [25]. The reason is that we choose to consider the fermionic swap
as paradigmatic symmetry instead of the usual swap
Additionally, we choose to consider as a true generator instead of a mere syntactic sugar, so as to replace the classical swap as a generator by , without losing or gaining expressivity as:

and
The complete set of rewrite rules for the original theory (see [25]) directly translates to a complete set of equations for this version. In EZW, the Bravyi-Kitaev gate set is represented as:

The gray background stands for ambient structure, while the structure is pictured with white background. Recall that the and structure coincide on EvenLFM.
EXAMPLE (AN EVEN LFM CIRCUIT TRANSLATED IN EZW). Consider the following LFM circuit, which can be translated in EZW as follows because the and structure coincide on EvenLFM.

↓

↓

Note that is only involved in the expression for . As a consequence, studying the fragment generated by the other generators of EZW is of interest to manipulate circuits of gate set . We propose the following axiomatization of this fragment, denoted EW.
DEFINITION 4.1.4 (EW). EW is the following prop theory with canonical symmetry :
Generators of EW

Equations of EW are pictured on Figure 2
Another fragment of interest is obtained by removing cups and caps, which are only needed to express . We call it EoW, for Even oriented W: in the absence of cups and caps, every diagram

Figure 1: Generators of the six graphical theories and their semantics in LFM. Each generator is displayed in the smallest fragment in which it occurs. The parameters x range over C. The fermionic swap is the paradigmatic (pre)symmetry and is therefore not displayed as a generator.
FW

Figure 2: Axioms of the four equational theories. The overlapping regions represent inclusions between the corresponding fragments; each axiom is displayed in the smallest fragment in which it occurs. By convention, equations of EoW and FoW are also valid when mirrored with respect to the vertical axis.
admits an unambiguous global input-to-output orientation, with no wire bending from an output back towards an input.
DEFINITION 4.1.5 (EoW). EoW is the following prop theory with canonical symmetry :
Generators of EoW

Equations of EoW are pictured on Figure 2
Although the structure of EoW is very simple, being the smallest fragment carrying the Hopf algebra formed by , and , with antipode [19], it is sufficient to manipulate circuits of gate set .
We have introduced a hierarchy of prop theories:
EoW EW EZW which can be used to deduce rewrites on LFM circuits on increasingly smaller subsets of the gate set :
What if we want the same for LFM circuits containing odd gates, such as , introduced in section 2.3? Then, the and structures do not coincide anymore, leading to a different way of translating LFM circuits into diagrams.
EXAMPLE (An LFM CIRCUIT WITH ODD F GATES, WITH AND ). Consider the following LFM circuit. Due to Lemma 3.3.1 on the relation between the and structures, we have:

↓

Furthermore, with respect to , is only presymmetric, and therefore (LFM, , ) is not a prop, which calls for a relaxation of the prop notion : namely, pronaps and their theories.
4.2 Pronaps and their theories
The categories generated by fermionic gates do not have to be a prop: they may be only presymmetric monoidal. This leads to the definition of a relaxed version of props: the pronaps.
DEFINITION 4.2.1 (PRONAP). A pronap (for PRODUCT and Non-nAatural Permutations) is a presymmetric monoidal category whose monoid of objects is freely generated by a single object 1. The n-fold monoidal product of 1 is denoted n, and the monoidal product on arrows is denoted . The generating presymmetry is denoted .
PROPOSITION 4.2.1. (LFM, , ) is a pronap.
As with props, we want to axiomatize pronaps via sets of generators and equations: a pronap theory. So as to avoid overloading the set of equations with a naturality equation for each natural generator, we differentiate natural and non-natural generators in the formal definition of these theories.
DEFINITION 4.2.2 (PRONAP THEORY). A pronap theory is a pair consisting of a set of generators and a set of equations :
- contains typed generators partitioned into two sets and , containing respectively natural and non-natural generators.
• Formal diagrams are defined inductively as follows:
| a generator ,
| the identity id₁ : 1 → 1,
the generating presymmetry ,
, the composition of two formal diagrams , ,
the monoidal product for , formal diagrams.
• E contains pairs of formal diagrams of the same type .
Given a pronap theory ( ), there is a corresponding pronap generated by and quotiented by and the axioms of presymmetric monoidal categories, including the naturality equations for all generators . In practice, we denote both the theory and the corresponding pronap and rely on the context to disambiguate.
DEFINITION 4.2.3 (SEMANTICS OF A PRONAP THEORY). Let be a pronap theory, a pronap. A semantics of in is a monoidal functor such that .
We say that is universal for when is full, and complete for when is faithful.
THEOREM 4.2.1 (DE FELICE, HADŽIHASANOVIĆ, NG, [15]). There is a complete pronap theory denoted FZW of (LFM, , ) with generators:

Note that our set of generators is again different from the one in [15]. As for EZW, we get rid of the usual swap , both as a paradigmatic symmetry and as a generator, and replace it by:

and
The original presentation of the calculus uses the generator
We choose to stick with the generators of EZW, only adding one non-natural new generator —●, which allows us to recover the same expressivity, as can be expressed as a syntactic sugar as follows:

This presentation has the merits to reduce to one the number of non-natural generator of the pronap theory, which makes diagrammatic reasoning on FZW diagrams arguably easier. Furthermore, the new generator —●— happens to be the translation in FZW of the F gate:

As a result, it is possible to translate fermionic circuits on the gate-set to FZW diagrams.
EXAMPLE (AN LFM CIRCUIT WITH ODD F GATES TRANSLATED TO FZW). Consider the following LFM circuit, which can be translated in FZW as follows due to Lemma 3.3.1 on the relation between the and structures:

↓

↓

↓

As before, the fragment obtained by removing the generator is sufficient to translate LFM circuits on the gate-set . This fragment is called FW.
DEFINITION 4.2.4 (FW). FW is the following pronap theory with canonical presymmetry :

Equations of FW are pictured on Figure 2
The pronap theory FW is an axiomatisation of the exact same category that was studied by Carette et al in [8] through a pro theory called pW, that is to say an equational theory with no paradigmatic symmetry or presymmetry whatsoever.
THEOREM 4.2.2 (CARETTE, MOUTOT, PEREZ, VILMART). There is a complete pro theory pW and generators:

In pW, the fermionic swap is only a syntactic sugar which is decomposed as:

As a consequence, pW diagrams are essentially open planar graphs, hence the name planar W calculus. The FW presentation of the same category has, on the other hand, a paradigmatic presymmetry and limits the number of non-natural generators with respect to this presymmetry to one : —.
Another interesting pronap can be obtained by adding non-natural generators ●— and —● to EoW, which can be understood as allowing preparation and postselection of states and effects , , that is of filled fermionic modes, to circuits on the gate set .
DEFINITION 4.2.5 (FoW). FoW is the following pronap theory with canonical presymmetry :
Generators of FoW

Equations of FoW are pictured on Figure 2
To sum up, here is a picture of the hierarchy of fragments of FZW :

And there is the corresponding hierarchy of gate-sets from which each fragment can be used to write LFM circuits.

We already have completeness for FZW, EZW, and pW, which is a theory for the same category as FW. In section 5, we provide proofs of the completeness of EoW, FoW, EW, and a new completeness proof for FW, via the introduction of another formal tool: scalable notations for pronaps.
5 Scalable notations and completeness results
Scalable notations were introduced in the SZX-calculus to manipulate families of wires and generators compactly, and was later abstracted from ZX to arbitrary coloured props [7, 9]. This construction is closely related to graphical approaches to strictification and de-strictification, where the bookkeeping hidden by strict monoidal syntax is made explicit [35]. Scalable notations have since also appeared in Graphical Symplectic Algebra and, more recently, Graphical Algebraic Geometry [4, 17], both of which connect to the broader Graphical Linear Algebra programme [3]. Here, we extend scalable notations from props to pronaps and use it to formulate the normal forms and completeness results of the fragments introduced above.
5.1 Scalable notations
The pronap theories of subcategories of (LFM, , ) allow one to manipulate fermionic circuits through local rewrites. However, the diagrammatic reasoning involved may become tedious when considering large fermionic circuits whose underlying diagrams quickly become untractable.
Scalable notations constitute a syntactical tool that solves this issue by giving a more compact description of certain large diagrams. The idea is to axiomatize a category which is equivalent to , but whose monoid of objects is freely spanned by the set , where type corresponds to a register of modes and is pictured as a thick wire .
DEFINITION 5.1.1 (SCALED PRONAP). Given a pronap , is the monoidal presymmetric category whose monoid of objects is freely spanned by . The k-fold monoidal product of object is denoted . is defined as:
There is an immediate monoidal equivalence
with
and
Note that in .
These two distinct objects correspond to two different ways of grouping fermionic modes:
These two objects are however isomorphic, via
We denote these isomorphisms and , and call them the divider and the gatherer. Pictorially, they are represented as:
and are subject to equations :
Note that, modulo these equations, any two diagrams of the same type composed only of dividers and gatherers are equal. It turns out that adding these families of generators and equations to a pronap theory for results in an axiomatization of .
DEFINITION 5.1.2 (SCALED PRONAP THEORY). Let be a pronap theory. The scaled theory is a pair consisting of a set of generators and a set of equations SE.
• contains typed generators:
-
for all of ,
-
together with
for all .
• A formal diagram is either:
for and
,
for .
- SE contains all pairs of formal diagrams typed together with equations
and
for .
Given a scaled pronap theory there is a corresponding presymmetric monoidal category generated by and quotiented by SE and the axioms of presymmetric monoidal categories, including the naturality equations for all generators , which includes dividers and gatherers.
Note that by construction, any semantics of in pronap
induces a functor related to
via

Then, due to the category equivalences, for a pronap theory T, we have:
In other words, proving completeness of for is the same as proving completeness of for .
The interest of a scaled pronap theory lies in the possibility of providing compact syntactic sugars for otherwise large diagrams. Such syntactic sugars are defined inductively. The most basic ones are the scaled generators.
DEFINITION 5.1.3 (SCALED GENERATOR). Let be a generator of a pronap theory . The k-scaled generator is the diagram of defined inductively on as:

DEFINITION 5.1.4 (SCALED DIAGRAM). Let be a pronap theory, a diagram of , and . Define as the formal diagram of obtained by replacing generators in the expression of by .
When a diagram D only involves natural generators in its expression, then Dist also applies to :
LEMMA 5.1.1. Let be a pronap theory, a diagram of which only involves natural generators in its expression. Then, we have:

Note that this is not the case in general if D involves non-natural generators. However, when no parallel composition is involved in D, then Dist applies no matter the naturality of the generators involved.
LEMMA 5.1.2. Let be a pronap theory, and a diagram such that does not involve monoidal product in its expression. Then,

This is crucial to understand which equations of the pronap theory can be directly applied to scaled diagrams, or in other words, which equation is scalable.
DEFINITION 5.1.5 (SCALABLE EQUATION). Let be a pronap theory, and . We say that is scalable when
EXAMPLE. For instance, equation A28 is scalable.

However, equation A25 is not scalable: we prove that a phase depending on the width of the wire has to appear on the right side of the scaled equation for it to be sound.

The following theorem uses Lemma 5.1.1 and Lemma 5.1.2 to show that equations involving either only natural generators or no monoidal product in their expression are always scalable.
THEOREM 5.1.1. Let be a pronap theory. Let be an equation. Then,
(i) If all generators involved in the expressions of D and are natural, then is scalable.
(ii) If both D and involve no monoidal product in their expressions, then is scalable.
In particular, in a prop theory, all equations are scalable.
In the following, whenever we write a diagrammatic derivation in which we use Theorem 5.1.1 for some equation A#, we will write SA# under the equality symbol. For scalable equations to which Theorem 5.1.1 does not apply, we will need to prove it separately as an independent lemma.
EXAMPLE. Equations A2, A13, and A24 are all scalable due to Theorem 5.1.1.(i). Equations A26, A31, and A35 are all scalable due to Theorem 5.1.1.(ii). Equation A28 is scalable, but involves both a non-natural generator and a monoidal product in its expression. To use its scaled version, we prove the lemma L27.
Scalable notations are not limited to scaled generators and scalable equations: more interesting syntactic sugars can be defined, with the hope of depicting as compactly as possible the structure of a pronap theory. In section 5.2 and section 5.3, we define and study two examples of such syntactic sugars, which we use in section 5.4 to prove completeness for all the fragments in our hierarchy.
5.2 Matrix arrows
The first use of scalable notations beyond scalable generators and equations was the introduction of matrix arrows in scalable ZX-calculus [7]. A similar construction can be carried in EoW, and more generally in any prop theory carrying a bialgebra.
DEFINITION 5.2.1 (MATRIX ARROW). In the scaled prop theory SEoW, we define matrix arrows inductively as follows:

Intuitively, matrix arrows corresponds to weighted bipartite graphs, for example, the gate translates to the matrix arrow corresponding to the matrix :

Using proofs by induction, on can derive the following equations:

These equations are analogue to the ZX case, with the difference that matrices and computation are over C and not . However, if the interpretation in the ZX case only encodes the truth table of the associated linear map, the interpretation of our matrix arrows carries information about all the minors of the matrix:
where is the determinant of the matrix obtained by only keeping the rows and columns of M corresponding respectively to ones in y and x, with the convention that the determinant of a non-square matrix is zero. This allows to read all the rewriting rules involving matrix arrows as statements on minors. For example, equations L3 is a direct encoding of the Cauchy-Binet formula:
If matrix arrows are defined in SEoW they can be straightforwardly imported in its extensions SEW, SFoW and SFW, notice that matrix arrows are even. For example in SEW and SFW, matrix arrows interact with cups and caps as follows:
This is to be compared with the ZX case where flipping a matrix arrows doesn’t give a matrix arrows, here we see how ZW matrix arrows are in as sense more symmetric.
In SFoW and SFW, the interaction with odd scaled generators is particularly interesting, in particular we can derive the cornerstone rule of the interaction between matrix arrows and determinants:
As a direct consequence, we have that .
This should be linked to the combinatorial interpretation of planar ZW diagrams in [8]: instead of planar graphs, we rather have bipartite graphs whose crossing are born by the fermionic swap, and the diagram exactly counts the weighted perfect matchings of this bipartite graphs, although it multiplies each perfect matching by where is the number of crossings involved in the particular matching. This is the reason why we get the determinant instead of the permanent. This allows for diagrammatic analogue of well-known identities involving determinants. The derivable equation L32 encodes the cofactor matrix formula for the inverse. Diagrammatically:

Therefore:
where is obtained from P by deleting row j and column i. The well-known diagrammatic version of trace cyclicity here corresponds to Sylvester's identity:

Which yields
Finally, one can quickly derive the diagrammatic version of the Schur complement formula while computing a block determinant. Let , , , with invertible.
Then:

This yields
More derived equations involving matrix arrows can be found in Figure 3, and are used extensively in the completeness proofs of section 5.4.
5.3 Graph triangles
The last scalable syntactic sugar we introduce already appeared in analogue form in ZX-calculus to represent graph states [7], but mainly in symplectic graphical algebra [4]. As with matrix arrows we take inspiration from the syntactic similarities while obtaining slightly different behaviors in the end.
DEFINITION 5.3.1 (GRAPH TRIANGLE). Let be an antisymmetric matrix. We define the graph triangle as follows:


From this definition we can obtain an alternative inductive one, revealing the underlying structure:
We see from this definition that graph triangles can be seen as weighted graphs as in the following example:

Notice that all crossings involve fermionic swaps, this provides a striking connection not to the determinant but to the Pfaffian this time. Indeed:
where is the pfaffian of the antisymmetric matrix obtained by only keeping the rows and columns of Z corresponding to ones in x, with the convention that the pfaffian of a matrix of odd size is zero. We can derive the following properties:
When
interacting with cups and caps, we get:

Graph triangles interact with matrix arrows as:
Which, for invertible yields the pfaffian identity:
Again, graph triangles are defined in SEW but also available in its extension SFW. Graph triangles are even, and therefore natural. Surprisingly, for an invertible antisymmetric matrix, the interaction of the associated graph triangle with the non-natural black node is pictured as:

Which encodes the formula for the pfaffian of the inverse. Finally, we can again obtain a Schur complement formula, but for the Pfaffian this time:

which yields . More derived equations involving graph triangles can be found in Figure 3. We now have all the necessary syntactic sugar and rules to properly state our completeness proofs.
5.4 Completeness
The completeness results for the different fragments all follow the same general strategy: we identify normal-form diagrams and show that every diagram can be rewritten into a unique such form. More precisely, for any two diagrams and with the same type, we construct rewriting procedures
where and belong to a fixed syntactic class of normal forms. The crucial point is then that the interpretation of a normal form uniquely determines its syntax. Hence, whenever
we have , and therefore
in the corresponding equational theory.
Reduction to normal form thus gives both a canonical representative for each denotation and, as a consequence, completeness of the theory.
For SEoW, it is convenient to first describe normal forms for morphisms
Using dividers and gatherers, any diagram
can be rewritten as
where
Thus, a normal form for morphisms transfers directly to arbitrary diagrams by first gathering the inputs, applying the normal form to the resulting diagram , and finally dividing the outputs.
THEOREM 5.4.1 (COMPLETENESS OF SEoW). For any diagram of SEoW, there exists a unique matrix such that can be rewritten as:
Furthermore, two diagrams reduce to the same normal form if and only if they have the same semantics.
For the remaining fragments, it is more convenient to reduce the normal-form problem for arbitrary morphisms to the corresponding problem for states.
This reduction is based on a form of map-state duality, although the precise mechanism differs between the fragments.
In the compact-closed setting, inputs can be bent into outputs, reducing the study of morphisms to that of states.
In SFoW, this mechanism is not expressed by the usual compact-closed structure of cups and caps , which are out of the scope of the fragment.
Their role is instead played by:

Then, using L26, we have:

a map can be transformed into a state, reduced to normal form there, and subsequently reconstructed as a map.
This allows the normal-form problem for arbitrary morphisms to be reduced to the normal-form problem for diagrams of type
Recall the notion of reduced column echelon form matrix:
DEFINITION 5.4.1 (REDUCED COLUMN ECHELON FORM). Let . We say that is in reduced column echelon form (RCEF) if is in reduced row echelon form. Equivalently:
(1) all zero columns of M, if any, occur after all non-zero columns;
(2) the first non-zero entry of each non-zero column is equal to 1. We call this entry the pivot of the column, and its row the corresponding pivot row;
(3) the pivot of each non-zero column lies strictly below the pivot of the preceding non-zero column;
(4) each pivot is the only non-zero entry in its row.
Thus, if M has rank r, its r non-zero columns have pivot rows
For example,
FW
EoW

Figure 3: Derived equations used throughout the completeness proofs. Each equation is displayed in the smallest scaled fragment in which it is derived. By convention, equations of SEoW and SFoW are also valid when mirrored with respect to the vertical axis. For readability, we use the convention that M denotes an arbitrary matrix, P and Q invertible matrices, Z a square antisymmetric matrix, and A an invertible antisymmetric matrix.
is in RCEF. Its pivot rows are
Indeed,
is in reduced row echelon form.
RCEF matrices are crucial to the normal for of state diagrams of SFoW :
THEOREM 5.4.2 (COMPLETENESS OF SFoW). For any diagram of SFoW, there exists a unique triple , where , , and is a full rank matrix in RCEF, such that can be rewritten as:
With convention that whenever , that for , is the empty matrix of type , and that in this case the empty matrix arrow is merely a syntactic sugar for:
Furthermore, two diagrams reduce to the same normal form if and only if they have the same semantics.
For the FW and EW fragments, the presence of cups and caps gives an ordinary map–state duality: inputs can be bent into outputs and conversely using SA18, so that a normal form for states immediately induces one for morphisms of arbitrary arity. The completeness proofs for SFW and SEW can therefore be organised by first reducing to normal form the associated state and then recovering the original input–output type by means of the compact structure.
THEOREM 5.4.3 (COMPLETENESS OF SFW). For any diagram of SFW, there exists a unique quadruple , where , , is a full rank matrix in RCEF, and is an antisymmetric matrix whose columns and rows corresponding to pivots of M are zero, such that D can be rewritten as:

With the convention that whenever , that for , is the empty matrix of type , and that in this case the empty matrix arrow is merely a syntactic sugar for:
Furthermore, two diagrams reduce to the same normal form if and only if they have the same semantics.
The normal form for SEW is very similar to the SFW normal form, the main difference being that the integer has to be even, and that using:

the bottom-left corner of the normal form can be imported in SEW.
The two completeness results are then very similar up to this trick.
THEOREM 5.4.4 (COMPLETENESS OF SEW). For any diagram of SEW, there exists a unique quadruple , where , , is a full rank matrix in RCEF, and is an antisymmetric matrix whose columns and rows corresponding to pivots of M are zero, such that D can be rewritten as:

With the convention that if even, if it is odd whenever . For , is the empty matrix of type , and in this case the empty matrix arrow is merely a syntactic sugar for:

Furthermore, two diagrams reduce to the same normal form if and only if they have the same semantics.
As explained in section 5.1, the completeness of a scaled pronap theory implies the completeness of its unscaled counterpart, yielding the following corollary.
COROLLARY 5.4.1 (COMPLETENESS OF THE UNSCALED FRAGMENTS). For each fragment
and for any two diagrams in ,
Equivalently, the semantic interpretation functor of each of EoW, FoW, EW, and FW is faithful, and therefore these pronap theories are complete.
Conclusion
In this work, we have developed a categorical and diagrammatic account of the circuits underlying the Bravyi–Kitaev model of fermionic computation. We first provided a categorical semantics for these circuits and observed that, in full generality, their compositional structure is not monoidal but only premonoidal. This distinction reflects the genuinely fermionic character of the model and clarifies the algebraic structure required to reason compositionally about its circuits. Since premonoidal structure is a natural tool for modelling effectful programming languages, this observation would be coherent with an operational interpretation in which the gates responsible for the failure of monoidality carry a computational effect.
We then introduced equational theories for four fragments of the FZW calculus: EoW, EW, FoW, and FW. Although EoW is algebraically elementary, it plays a crucial structural role in the development of the other fragments. The calculi EW and FoW are new: EW is expressive enough to represent all Gaussian gates appearing in the Bravyi–Kitaev gate set, while FoW is the smallest theory in which the paradigmatic swap is non-natural, and is therefore formulated as a pronap. Finally, FW captures the previously studied pW calculus, but with a different presentation, again formulated in terms of pronaps.
To establish completeness for these fragments, we extended the formalism of scalable notations to the setting of pronaps. This extension allows families of wires and generators to be manipulated directly at the diagrammatic level and provides uniform normal forms for all four fragments. For FW, this yields a new canonical normal-form presentation of the matchgate fragment, distinct from the reduced WGS-X normal form previously obtained for the planar-W calculus [8], and expressed uniformly in terms of the matrix-arrow and graph-triangle constructions used throughout our hierarchy. Beyond their role in the completeness arguments, the scalable syntactic constructions introduced along the way have an independent algebraic significance: they provide a diagrammatic representation of operations governing determinants and Pfaffians. As a consequence, several classical identities involving these polynomials admit short and purely diagrammatic proofs. Altogether, these results provide a common categorical and rewriting framework connecting fermionic computation, scalable diagrammatic reasoning, and the algebra of determinants and Pfaffians. They also isolate a hierarchy of fragments in which increasingly expressive classes of fermionic circuits can be studied through complete graphical languages, providing a foundation for the further investigation of fermionic circuit compilation, optimisation, and classical simulation.
References
[1] BECHER, J. H., SINDICI, E., KLEMT, R., JOCHIM, S., DALEY, A. J., AND PREISS, P. M. Measurement of identical particle entanglement and the influence of antisymmetrization. Physical Review Letters 125 (2020), 180402.
[2] BOCQUILLON, E., FREULON, V., BERROIR, J.-M., DEGIOVANNI, P., PLAÇAIS, B., CAVANNA, A., JIN, Y., AND FÈVE, G. Coherence and indistinguishability of single electrons emitted by independent sources. Science 339, 6123 (2013), 1054–1057.
[3] BONCHI, F., SOBOCÍNSKI, P., AND ZANASI, F. Interacting hopf algebras. Journal of Pure and Applied Algebra 221, 1 (2017), 144–184.
[4] BOOTH, R. I., CARETTE, T., AND COMFORT, C. Graphical symplectic algebra. In 11th International Conference on Formal Structures for Computation and Deduction (FSCD 2026) (2026), vol. 378 of Leibniz International Proceedings in Informatics (LIPIcs), Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 7:1–7:22.
[5] BRAVYI, S. B., AND KITAEV, A. Y. Fermionic quantum computation. Annals of Physics 298, 1 (2002), 210–226.
[6] BRUNDAN, J., AND ELLIS, A. P. Monoidal supercategories. Communications in Mathematical Physics 351, 3 (2017), 1045–1089.
[7] CARETTE, T., HORSMAN, D., AND PERDRIX, S. Szx-calculus: Scalable graphical quantum reasoning. In 44th International Symposium on Mathematical Foundations of Computer Science (MFCS 2019) (2019), vol. 138 of Leibniz International Proceedings in Informatics (LIPIcs), Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 55:1–55:15.
[8] CARETTE, T., MOUTOT, E., PEREZ, T., AND VILMART, R. Compositionality of planar perfect matchings: A universal and complete fragment of zw-calculus. In 50th International Colloquium on Automata, Languages, and Programming (ICALP 2023) (2023), vol. 261 of Leibniz International Proceedings in Informatics (LIPIcs), Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 120:1–120:17.
[9] CARETTE, T., AND PERDRIX, S. Colored props for large scale graphical reasoning, 2020.
[10] CLÉMENT, A., DELORME, N., AND PERDRIX, S. Minimal equational theories for quantum circuits. In Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS) (2024), ACM, pp. 27:1–27:14.
[11] CLÉMENT, A., DELORME, N., PERDRIX, S., AND VILMART, R. Quantum circuit completeness: Extensions and simplifications. In 32nd EACSL Annual Conference on Computer Science Logic (CSL 2024) (2024), vol. 288 of Leibniz International Proceedings in Informatics (LIPIcs), Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 20:1–20:23.
[12] CLÉMENT, A., HEURTEL, N., MANSFIELD, S., PERDRIX, S., AND VALIRON, B. A complete equational theory for quantum circuits. In 2023 38th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS) (2023), IEEE, pp. 1–13.
[13] COECKE, B., AND DUNCAN, R. Interacting quantum observables: Categorical algebra and diagrammatics. New Journal of Physics 13, 4 (2011), 043016.
[14] COECKE, B., AND KISSINGER, A. The compositional structure of multipartite quantum entanglement. In Automata, Languages and Programming (Berlin, Heidelberg, 2010), S. Abramsky, C. Gavoille, C. Kirchner, F. Meyer auf der Heide, and P. G. Spirakis, Eds., Springer Berlin Heidelberg, pp. 297–308.
[15] DE FELICE, G., HADZIHASANOVIC, A., AND NG, K. F. A diagrammatic calculus of fermionic quantum circuits. Logical Methods in Computer Science 15, 3 (2019), 26:1–26:34.
[16] FRIS, N. Reasonable fermionic quantum information theories require relativity. New Journal of Physics 18, 3 (2016), 033014.
[17] GAO, D., SHAIKH, R. A., AND KISSINGER, A. Graphical algebraic geometry: From ideals and varieties to quantum calculi. In 41st Annual Symposium on Logic in Computer Science (LICS 2026) (2026), vol. 380 of Leibniz International Proceedings in Informatics (LIPIcs), Schloss Dagstuhl – Leibniz-Zentrum für Informatik, pp. 48:1–48:28.
[18] GONZÁLEZ-CUADRA, D., BLUVSTEIN, D., KALINOWSKI, M., KAUBRUEGGER, R., MASKARA, N., NALDESI, P., ZACHE, T. V., KAUFMAN, A. M., LUKIN, M. D., PICHLER, H., VERMERSCH, B., YE, J., AND ZOLLER, P. Fermionic quantum processing with programmable neutral atom arrays. Proceedings of the National Academy of Sciences 120, 35 (2023), e2304294120.
[19] HADZIHASANOVIC, A. A diagrammatic axiomatisation for qubit entanglement. In 30th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS 2015) (2015), IEEE, pp. 573–584.
[20] JEANDEL, E., PERDRIX, S., AND VILMART, R. Completeness of the zx-calculus. Logical Methods in Computer Science 16, 2 (2020), 11:1–11:72.
[21] LACK, S. Composing props. Theory and Applications of Categories 13, 9 (2004), 147–163.
[22] LAFONT, Y. Towards an algebraic theory of boolean circuits. Journal of Pure and Applied Algebra 184, 2–3 (2003), 257–310.
[23] LLOYD, S. Unconventional quantum computing devices, 2000.
[24] MURMANN, S., BERGSCHNEIDER, A., KLINKHAMER, V. M., ZÜRN, G., LOMPE, T., AND JOCHIM, S. Two fermions in a double well: Exploring a fundamental building block of the hubbard model. Physical Review Letters 114 (2015), 080402.
[25] Ng, K. F. Completeness of the ZW and ZX Calculi. Dphil thesis, University of Oxford, 2018.
[26] NIELSEN, M. A., AND CHUANG, I. L. Quantum Computation and Quantum Information: 10th Anniversary Edition. Cambridge University Press, Cambridge, 2010.
[27] OTT, R., GONZÁLEZ-CUADRA, D., ZACHE, T. V., ZOLLER, P., KAUFMAN, A. M., AND PICHLER, H. Error-corrected fermionic quantum processors with neutral atoms. Physical Review Letters 135 (2025), 090601.
[28] POWER, J., AND ROBINSON, E. Premonoidal categories and notions of computation. Mathematical Structures in Computer Science 7, 5 (1997), 453–468.
[29] ROMÁN, M., AND SOBOCÍNSKI, P. String diagrams for premonoidal categories. Logical Methods in Computer Science 21, 2 (2025), 9:1–9:20.
[30] SERWANE, F., ZÜRN, G., LOMPE, T., OTTENSTEIN, T. B., WENZ, A. N., AND JOCHIM, S. Deterministic preparation of a tunable few-fermion system. Science 332, 6027 (2011), 336–338.
[31] SPAR, B. M., GUARDADO-SANCHEZ, E., CHI, S., YAN, Z. Z., AND BAKR, W. S. Realization of a fermi-hubbard optical tweezer array. Physical Review Letters 128 (2022), 223202.
[32] VARADARAJAN, V. S. Supersymmetry for Mathematicians: An Introduction, vol. 11 of Courant Lecture Notes in Mathematics. American Mathematical Society, 2004.
[33] VIDAL, N. T., BERA, M. L., RIERA, A., LEWENSTEIN, M., AND BERA, M. N. Quantum operations in an information theory for fermions. Physical Review A 104, 3 (2021), 032411.
[34] WICK, G. C., WIGHTMAN, A. S., AND WIGNER, E. P. The intrinsic parity of elementary particles. Physical Review 88 (1952), 101–105.
[35] WILSON, P., GHICA, D. R., AND ZANASI, F. String diagrams for strictification and coherence. Logical Methods in Computer Science 20, 4 (2024).
[36] YAN, Z. Z., SPAR, B. M., PRICHARD, M. L., CHI, S., WEI, H.-T., IBARRA-GARCÍA-PADILLA, E., HAZZARD, K. R. A., AND BAKR, W. S. Two-dimensional programmable tweezer arrays of fermions. Physical Review Letters 129 (2022), 123201.
A Proofs of section 2
PROOF OF LEMMA 2.3.1. Since is injective, its images satisfy the same CAR:
Hence the assignment on generators extends uniquely to a unital -algebra morphism. For injectivity, recall that the normally ordered monomials
form a basis of . Since is injective, their images are, up to the signs required to reorder the indices, distinct normally ordered monomials of . They are therefore linearly independent, and is injective.
Finally, preserves the degree of every monomial and hence its parity. If is unitary, then
and similarly in the opposite order.
PROOF OF LEMMA 2.3.2. It suffices first to work in . Set
so that . Clearly , and the CAR give
Hence , so is a Hermitian unitary. Every term of has even degree, so is even. Again using the CAR,
and symmetrically . Since ,
Applying the morphism associated with gives the result for . If , is even and supported only on modes , hence it commutes with by the CAR. Taking adjoints gives the corresponding identities for the creation operators.
PROOF OF LEMMA 2.3.3. The relation follows from Lemma 2.3.2. If , the two Fermionic swaps are even and have disjoint supports, so the CAR imply .
It remains to prove the braid relation. Let
By Lemma 2.3.2, conjugation by U and V induces the same permutation
on every generator and . Hence commutes with every generator of , and therefore belongs to the centre of . By the Jordan–Wigner isomorphism, , so for some .
Each Fermionic swap fixes the vacuum , and therefore so do and . It follows that , proving the braid relation. The existence and uniqueness of the homomorphism then follow from the Coxeter presentation of .
PROOF OF LEMMA 2.3.4. By Lemma 2.3.2 and the preceding representation,
Hence the two -algebra morphisms
agree on every generator of , and are therefore equal. Applying them to gives the result.
B Proofs of section 3
PROOF OF PROPOSITION 3.2.1. For every fixed k, the maps
are induced by the mode embeddings introduced in section 2.3. Since these embeddings are unital algebra morphisms, they preserve identities and composition, and hence define functors.
The unit equations follow from the identity embedding . The associativity equations follow from composition of the corresponding index embeddings. Explicitly, for ,
and
Thus (CAR, ⊗, 0) is strict premonoidal.
PROOF OF LEMMA 3.2.1. Let and be homogeneous, with parities . The generators appearing in have indices in , whereas those appearing in have indices in . Since the two sets of modes are disjoint, the CAR imply that exchanging one generator from the first monomial with one generator from the second contributes a factor -1. The result follows by linearity:
PROOF OF PROPOSITION 3.2.2. By Lemma 3.2.1, every even operator commutes with every homogeneous operator supported on a disjoint block of modes, and therefore, by linearity, with every operator supported on such a block. Hence every even operator is central. Conversely, let and write uniquely
Suppose that . Let
be the mode-flip introduced in section 2.3. Since F is odd, Lemma 3.2.1 gives
The right-hand side is non-zero: the application embedding is injective, so , while is invertible since is unitary. Hence is not central.
Therefore the central morphisms are exactly the even operators.
PROOF OF PROPOSITION 3.2.3. Every is even and therefore central by Proposition 3.2.2. The involution and coherence equations follow from the corresponding identities between block permutations, since is a representation of the symmetric group. It remains to prove naturality. Let . By the equivariance lemma of section 2.3, conjugation by the block permutation transports the first block of modes to the second block:
Equivalently,
Similarly, for ,
or equivalently
These are precisely the two naturality equations. Hence every morphism of CAR is natural with respect to .
PROOF OF PROPOSITION 3.3.1. Decompose the block permutation exchanging the first m modes with the following n modes into adjacent Fermionic swaps. Each mode of the first block crosses each mode of the second block exactly once. A Fermionic swap contributes a minus sign precisely when both crossed modes are occupied.
Hence, on , the number of sign-producing crossings is , and therefore
PROOF OF PROPOSITION 3.3.2. The involutivity and coherence equations follow from Proposition 3.3.1, equivalently from the corresponding block permutations.
Let be even and write
Whenever ,
Hence, for every ,
The second naturality equation is analogous. Thus every even map belongs to the Nature of .
Conversely, suppose that is natural. Taking and applying the preceding naturality equation to yields
By linear independence of the computational basis, every non-zero coefficient therefore satisfies
Hence is even whenever , so is even. The Nature of is therefore exactly EvenLFM.
PROOF OF LEMMA 3.3.1. For every object A, the functionality of follows directly from the bifunctoriality of , since
For , let and . Then
using the involutivity . Moreover,
Thus both left and right extension by an object are functorial.
The unit and strict associativity equations follow by expanding the definitions and using the coherence equations of the presymmetry. Likewise, the same coherence equations imply that the morphisms are central for .
By construction, is natural with respect to every morphism for the product . Indeed, for ,
and similarly
Hence is strict symmetric premonoidal.
Finally, suppose that belongs to the Nature of . Naturality for gives
and therefore
On the other hand, by definition,
The ordinary interchange law for ⊗ then implies that f commutes, with respect to ⊗, with every morphism. Thus f is central for ⊗.
PROOF OF LEMMA 3.3.2. The equality
is the definition.
For the second equality, let and . By definition,
Hence
Whenever , homogeneity gives
Therefore
and consequently
Thus
PROOF OF PROPOSITION 3.3.3. Let and be homogeneous. By Lemma 3.3.2,
whereas
Since f has parity ,
Hence
and therefore
In particular, every even map is central. Conversely, if is a non-zero odd map, choose any non-zero odd one-mode map, for instance the mode-flip . The two corresponding interchange composites are non-zero and differ by a minus sign, so is not central. Therefore the centre is exactly EvenLFM.
PROOF OF THEOREM 3.3.1. The first statement follows from Lemma 3.3.1, and the description of the centre of LFM follows from Proposition 3.3.3.
It remains to show that JW preserves the two extensions by an object. Let .
Since acts on the first modes and the additional modes are appended afterwards,
For the other extension, equivariance of the CAR action under the Fermionic block permutation gives
Applying JW yields
by the definition of the premonoidal product on the Hilbert-space semantics. Finally,
so JW preserves the presymmetry as well.
C Proofs of section 5
PROOF OF LEMMA 5.1.1. By induction on :
Base cases:
$ \begin{cases}
g \to \text{definition of } S_{k_1}(D), \text{ immediate.} \
\text{id}1 \to \text{follows from Elim}{1,k}. \
\pi \to \text{follows from naturality of dividers and gatherers.}
\end{cases} $
Case :

Case
Note that this step is only true so long as all the generators in the expression of are natural. The other inductive steps are however valid for any diagram.
PROOF OF LEMMA 5.1.2. Same as above without the step for in the induction.
PROOF OF THEOREM 5.1.1. Let be an equation such that and only involve natural generators. Using Lemma 5.1.1, we get :

Similarly, using Lemma 5.1.2, we get the second point.
C.1 Proofs of the derived equations
C.1.1 Derived equations in SEoW.
PROOF OF L5. The base case comes from EoW equation A10.

PROOF OF L6.

PROOF OF L7.
PROOF OF L8.

PROOF OF L1. After unfolding the scalar case of the matrix-arrow definition, the base case is exactly A7.

PROOF OF L3. After unfolding the scalar case of the matrix-arrow definition, the base case is exactly A9.

PROOF OF L4. The base case follows from D1and A5.

Case :

Case :

PROOF OF L2. After unfolding the scalar case of the matrix-arrow definition, the base case is exactly A8. We proceed by induction on matrices:
Case :

Case :

PROOF OF L9. Note that any matrix of rank can be decomposed as with and both of rank . Then, one can complete and into invertible matrices and by adding columns and rows

C.1.2 Derived equations in SEW.
PROOF OF L10.

PROOF OF L11.
Proof of L12. After unfolding the scalar case of the matrix-arrow definition, the base case is exactly A15.








PROOF OF L13.




Z/2

Z/2

Z/2

Z/2


Z'
PROOF OF L14.

PROOF OF L15.





PROOF OF L16.




PROOF OF L17. To show L17, we start by showing that for all ,

We show that by induction on n, the base case being exactly equation A21.








The second equality is proven similarly, applying rewrites symmetrically with respect to the horizontal direction. Now that this auxiliary result is proven, let , and .

Repeating this operation m times let go from the case to the case . Using L16, the global phase obtained is
Which suffices to prove L17.
Auxiliary linear algebra for L18 and L24. We use the following standard facts about elementary matrices.
DEFINITION C.1.1 (ELEMENTARY MATRIX). A transvection matrix is a matrix
A dilation matrix is a matrix
An elementary matrix is either a transvection matrix or a dilation matrix.
LEMMA C.1.1. Every elementary matrix can be written using products, direct sums, and permutation conjugations of the matrices
If the ambient dimension is even, the last family may equivalently be replaced by
so that all direct-sum factors may be chosen of even size.
Proof. A dilation
is obtained, up to a permutation of the coordinates, by taking the direct sum of the one-dimensional blocks and . Likewise, every transvection is permutation-conjugate to a direct sum of
with identity blocks. Permutation matrices are generated by adjacent transpositions, themselves obtained by taking direct sums of with identities. In even ambient dimension, a dilation is permutation-conjugate to a direct sum containing one block and otherwise identity blocks. The same pairing of the remaining identity coordinates gives the claimed even-size decomposition for transvections.
LEMMA C.1.2. The group is generated by elementary matrices.
Proof. Gaussian elimination reduces any to the identity using row additions, non-zero row scalings, and row swaps. Row additions and non-zero row scalings are left multiplications by transvections and dilations. A swap of two adjacent coordinates is also a product of such matrices; on the corresponding two-dimensional block,
Hence there exist elementary matrices such that . Since and , the inverses are again elementary, and therefore is a product of elementary matrices.
By Lemmas C.1.1 and C.1.2, together with L6and L3, it is enough in L18and L24to establish the displayed small-matrix cases and to check stability under direct sums and products.
PROOF OF L18. Base case:




Base case:




Base case:




Induction step:





Induction step:




PROOF OF L20.




Auxiliary Darboux decomposition for L21.
LEMMA C.1.3 (DARBOUX). Let be an invertible antisymmetric matrix, i.e. . Then there exists an invertible matrix such that
Moreover,
and
Proof. Consider the non-degenerate antisymmetric bilinear form
on . Choose . By non-degeneracy, there exists such that . The restriction of to is non-degenerate, hence
and the restriction of to the orthogonal complement is again non-degenerate. Iterating yields a basis
such that
Therefore, for a suitable ,
Using
(which can be deduced from L14), and
we obtain
hence
Finally, since , we have , and therefore
Proof of L21. Let be an invertible antisymmetric matrix. Using Lemma C.1.3, we get
For some invertible. Then:

=
L13
=
L8,L20
=
L8,L3
=
L2,L3,L8
=
SA3
=
SA1
=

PROOF OF L19.

= Dist

=

= SA23


= IH
=

= Dist

PROOF OF L22.




n
□
Auxiliary decomposition for L23.
LEMMA C.1.4. Let be antisymmetric. Then there exist , an invertible antisymmetric matrix , and an invertible matrix such that
where denotes the zero matrix. In particular, is even.
Proof. Consider the antisymmetric bilinear form
on , and let
Set , and choose a vector-space complement of , so that
The restriction is non-degenerate. Indeed, if satisfies for every , then also for every . Hence for every , so . Since , we obtain . Therefore the matrix of in any basis of is antisymmetric and invertible. Extending this basis by a basis of , the matrix of is . Hence, after the corresponding change of basis, there exists such that
Since an invertible antisymmetric matrix has even size, is even.
PROOF OF L23.

C.1.3 Derived equations in SFoW.
Proof of L25. The base case is exactly A29. We proceed by induction on .

PROOF OF L26. We proceed by induction on .

PROOF OF L24. Base case:

Base case:

Base case:
Induction step:

Induction step:

PROOF OF L27.

PROOF OF L28.

C.1.4 Derived equations in SFW.
PROOF OF L29.

PROOF OF L30.

PROOF OF L31.


PROOF OF L32.
PROOF OF L33.
PROOF OF L34.
PROOF OF L35.
PROOF OF L36.
D Normal-form rewrites
DEFINITION D.0.1 (REDUCED COLUMN ECHELON FORM). Let . We say that is in reduced column echelon form (RCEF) if is in reduced row echelon form.
Equivalently:
(1) all zero columns of , if any, occur after all non-zero columns;
(2) the first non-zero entry of each non-zero column is equal to 1. We call this entry the pivot of the column, and its row the corresponding pivot row;
(3) the pivot of each non-zero column lies strictly below the pivot of the preceding non-zero column;
(4) each pivot is the only non-zero entry in its row.
Thus, if has rank , its non-zero columns have pivot rows
For example,
is in RCEF. Its pivot rows are
Indeed,
is in reduced row echelon form.
LEMMA D.0.1. Let be a matrix in RCEF with
Let
be its pivot rows.
Then there exist a permutation matrix and a matrix such that
PROOF. Since M has rank r and has exactly r columns, every column of M is non-zero and hence contains a pivot. Let
be the pivot rows, and let
be the increasing enumeration of
By definition of RCEF, the pivot in the -th column is equal to 1 and is the only non-zero entry of the -th row. Therefore the submatrix formed by the pivot rows is
Let
be the submatrix formed by the non-pivot rows.
Let be the permutation matrix which moves the pivot rows to the first positions, while preserving their order, and moves the remaining rows underneath them, again preserving their order. Then
Since Q is a permutation matrix,
is also a permutation matrix. Setting gives
as required.
D.1 Completeness of EoW
The generators used below can all be expressed as matrix arrows. In particular, the following rewrites reduce the non-structural generators to matrix-arrow form.
To normal form.

Then L6 and L3 enable to write any diagram as a matrix arrow.
Uniqueness of normal form. Let . Denote (resp. ) the matrix arrow labelled by (resp. ). Suppose
then, note that
Therefore .
D.2 Completeness of FoW
To normal form. Due to L26, we can rewrite any diagram :

Therefore, we can assume without loss of generality that contains at least generators and , which we can isolate and gather respectively to the left and right sides of the diagram using A29 and Dist, rewriting the remaining EoW part as a matrix arrow, which gives us as starting point the following diagram:
with and . Then we derive:

Case :

Note that this is the normal form for the zero diagram of type .
Case :
When , we automatically have as
We derive :

Case . In the case , we have . By abuse of notation is then the empty matrix and we denote:
By convention, this empty matrix is considered full rank and in RCEF. This yields the normal form of states for .
Case . When , we have and we obtain:
As before, if , we can apply L9, L24, L28, and SA30 to get back to the normal form for the zero diagram of type . Otherwise, we can assume that . Then Using L24, SA26, and SA9, we can multiply on the right by a sequence of elementary matrices so as to put it in Reduced Column Echelon Form (RCEF), while multiplying by the determinant of these matrices. This gives
with full rank and in RCEF.
Uniqueness of normal form.
Let
be two SFoW normal forms of the same type , where , are in RCEF and have ranks and respectively. Let , be their respective pivot rows.
Assume that
Due to Lemma D.0.1, there exists permutation matrices such that
For , we write
Hence
We prove equality of the normal-form data in five steps. The first step separates the zero case; in the remaining steps we may therefore assume that the common interpretation is non-zero.
Step 1:
First, let us show that a normal form has zero interpretation if and only if its global scalar vanishes.
If , then L28 rewrites to , the distinguished normal form of the zero state. Therefore
Conversely, suppose that . Diagrammatically, we get
By plugging the gadget
in N, we get:

Using
we obtain a diagram of non-zero interpretation. By functionality of , this is impossible if . Thus
Therefore
The same argument applies to . Hence, if
then
and both diagrams rewrite to the distinguished zero normal form.
In the rest of the proof we may therefore assume
Step 2:
First, note that
Let us denote:
Then, by plugging the same gadget

to N' this time, we get the derivation:

The interpretation of the diagram obtained from is . Since , the corresponding diagram obtained from must also have non-zero interpretation. As when , the above reduction therefore forces
Hence
Step 3:
Suppose that the pivot rows differ, and let k be the smallest index such that
Without loss of generality, suppose
Note that is the submatrix of composed of the rows in this order, and therefore reads:
Notice that the -th row is a linear combination of the first rows, which is not possible as , as shown in step 2. Therefore
It directly follows that
Step 4: As and , we have:
and therefore, plugging the same gadget
to gives.
Recall that the interpretation of the diagram obtained from plugging this gadget to in step 1 was . This yields:
Step 5:
We now know that
And
It remains only to prove
Let
and let be the permutation matrix exchanging rows and .
Define
such that
This is the identity matrix in which the -th row has been replaced by the -th row of . Its determinant can be computed as:
Similarly,
Since
we may plug the following second gadget to both and
We get

The two sides therefore reduce respectively to
and .
Since ,
and therefore
Since i and q were arbitrary,
Hence
and since P is invertible,
Therefore
so the two normal forms are identical.
D.3 Completeness of FW
To normal form. Let be a diagram of SFW. Due to L31, SA32 and L36, we can consider without loss of generality that only contains generators — and on top of EoW generators. Indeed, we can rewrite the other generators like so:


Using L25, we can slide ●— to the left side of the diagram, while naturality of ☐ allows us to slide them to the top-right corner of the diagram. We thus start with D written as:

And then derive :








Dist, L35
Similarly to what was done for SFoW, if , we can apply L9, L24, L28, and SA30 to get to the normal form for the zero diagram of type , which is essentially the same as for SFoW due to L20 and SA6. Otherwise, we can assume that . Then Using L24, SA26, and SA9, we can multiply on the right by a sequence of elementary matrices so as to put it in Reduced Column Echelon Form (RCEF), while multiplying by the determinant of these matrices. This gives full rank and in RCEF, and so that reads:

As is in RCEF, Lemma D.0.1 gives a permutation matrix such that:
We then derive:

Therefore we can rewrite in normal form, with full rank and RCEF and zero on the columns and rows corresponding to 's pivots. Uniqueness of normal form.
Let
be two SFW normal forms of the same type , where , are in RCEF and have ranks and respectively. Let , be their respective pivot rows.
Assume that
Due to Lemma D.0.1, there exists permutation matrices such that
For , we write
Hence
We also know that is zero on the rows and columns corresponding to pivots, i.e.
for antisymmetric matrices of size respectively and .
We prove equality of the normal-form data in six steps. The first step separates the zero case; in the remaining steps we may therefore assume that the common interpretation is non-zero.
Premonoidal Semantics and Scalable Diagrammatics of Fermionic Quantum Computing Step 1 : J𝑁K = J𝑁 ′ K = 0 =⇒ 𝑥 = 𝑥 ′ = 0 First, let us show that a normal form has zero interpretation if and only if its global scalar vanishes. If 𝑥 = 0, then L28, SA30, SA26 rewrites 𝑁 to 𝑛 0 , the distinguished normal form of the zero 0→𝑛 state. Therefore 𝑥 = 0 =⇒ J𝑁K = 0. Conversely, suppose that 𝑥 ≠ 0. Diagrammatically, we get 𝒙 𝑀𝑟 𝑛 𝑍 𝑃𝑀= h 𝐼𝑟 𝐵 i 𝑃𝑍 𝑃𝑇 = h 0 0 0 𝐾 i
𝐿3,𝐷2,𝐿14 𝒙 𝑃 −1 𝑛
0 0 0 𝐾
𝐵 𝑟 𝐼𝑟 𝑃 −1
𝐿2,𝐷𝑖𝑠𝑡,S𝐴11,S𝐴6 𝒙 𝑛 𝐾 𝐵 𝑟 𝐼𝑟 𝑃 −1 By plugging the gadget 𝑛 𝑃 𝑟 in N, we get: 𝒙 𝑛 𝐾 𝐵 𝑟 𝐼𝑟 𝑃 −1 𝑛 𝑃 𝑟
𝐿3,𝐿8,𝐸𝑥𝑝 𝒙 𝑛 𝐾 𝐵 𝑟 𝐼𝑟 𝑟
S𝐴4 𝒙 𝑛 𝐾 𝐵 𝑟 𝐼𝑟 𝑟 = 𝐿4,𝐿8,S𝐴6 𝒙 𝐾 𝑟 𝒙 𝐾 𝑟
S𝐴6,S𝐴5, 𝐿26,S𝐴9,S𝐴11 𝒙 Using J 𝒙 K = 𝑥, we obtain a diagram of non-zero interpretation. By functoriality of J·K, this is impossible if J𝑁K = 0. Thus J𝑁K = 0 =⇒ 𝑥 = 0. Therefore J𝑁K = 0 ⇐⇒ 𝑥 = 0. The same argument applies to 𝑁 ′ . Hence, if J𝑁K = J𝑁 ′ K = 0, then 𝑥 = 𝑥 ′ = 0, and both diagrams rewrite to the distinguished zero normal form. In the rest of the proof we may therefore assume J𝑁K = J𝑁 ′ K ≠ 0, 𝑥 ≠ 0, 𝑥′ ≠ 0. Step 2 : 𝑟 = 𝑟 ′ Without loss of generality, we can assume 𝑟 ≤ 𝑟 ′ . Note that 𝑃𝑀′ = 𝐼𝑛𝑃𝑀′ = h 𝐸𝑟 𝑃𝑀′ [ 0 𝐼𝑛−𝑟 ]𝑃𝑀′ i Let us denote: ( 𝐶 := 𝐸𝑟 𝑃𝑀′ , 𝐷 := [ 0 𝐼𝑛−𝑟 ]𝑃𝑀′ . Then, by plugging the same gadget 𝑛 𝑃 𝑟 to N’ this time, we get the derivation: 𝒙 ′ 𝑀′ 𝑟 ′ 𝑛 𝑍 ′ 𝑛 𝑃 𝑟
𝐿2 𝒙 ′ 𝑀′ 𝑟 ′ 𝑍 ′ 𝑛 𝑟 𝑃 𝑃
𝐷𝑖𝑠𝑡 𝒙 ′ 𝑀′ 𝑟 ′ 𝑍 ′ 𝑟 𝑃 𝑃 𝐶=𝐸𝑟 𝑃𝑀′
S𝐴4 𝒙 ′ 𝐶 𝑟 ′ 𝑍 ′ 𝑟 𝑃 𝒙 ′ 𝐶 𝑟 ′ 𝑍 ′ 𝑟 𝑃
𝐿9 𝒙 ′ 𝑍 ′ 𝑟 𝑃 𝑟 ′ 𝑟 𝑄1 𝑄2 𝑟𝑘 (𝐶) = 𝐿24,𝐷𝑖𝑠𝑡 𝒙 ′ 𝑍 ′ 𝑟 𝑃 𝑟 ′ − 𝑟𝑘 (𝐶) 𝑟 𝑄2 𝑟𝑘 (𝐶) 𝒅𝒆𝒕𝑸1
The interpretation of the diagram obtained from is . Since , the corresponding diagram obtained from must also have non-zero interpretation. As when , the above reduction therefore forces
Besides, the assumption directly gives , and therefore
Hence,
Step 3:
Suppose that the pivot rows differ, and let k be the smallest index such that
Without loss of generality, suppose
Again, plug the gadget

to and derive
Which gives that . Note that is the submatrix of composed of the rows in this order, and therefore reads:
Notice that the k-th row is a linear combination of the first rows, which is not possible as . Therefore
It directly follows that
Step 4: As and , we have:
and therefore, plugging the same gadget

to gives.

Recall that the interpretation of the diagram obtained from plugging this gadget to N in step 1 was x. This yields:
Step 5:
We now know that
and that
Remains to show that . Let be the permutation matrix exchanging rows and . Let . Define
such that
Let us plug the following gadget to both N and

we can derive




And similarly,

Then implies .
Step 6:
We now know that
And
It remains only to prove
Let
and let be the permutation matrix exchanging rows and .
Define
such that
This is the identity matrix in which the i-th row has been replaced by the q-th row of B. Its determinant can be computed as:
\det(R_{i,q}M)=\left|\begin{matrix}{{{I_{i-1}}}}&{{{\begin{vmatrix}}}} \\{{{\vdots}}}&{{{0}}} \\{{{0}}}\end{vmatrix}&(0)\\ \frac{B_{q,1}\cdots B_{q,i-1}}{(0)}&\begin{vmatrix}{{{B_{q,i}}}}&{{{B_{q,i+1}\cdots B_{q,r}}}} \\{{{0}}}&{{{I_{r-i}}}}\end{vmatrix}\end{matrix}\right|=(-1)^{i+i}B_{q,i}=B_{q,i}.Similarly,
Since
we may plug the following gadget to both N and

We get

The two sides respectively have interpretation to
and .
Since , gives
Since i and q were arbitrary,
Hence
and since P is invertible,
Hence , and the two normal forms are identical.
D.4 Completeness of EW
To normal form. Let be a diagram of SEW. Using L17, we first slide every cup to the top-left corner of the diagram and every cap to the top-right corner. The remainder is an EoW -diagram and can therefore be rewritten as a matrix arrow. We therefore start from D written as:

Then, we derive:







Similarly to what was done for SFW, if , we can apply L9, L18, SA14, and SA13 to get to one of the normal forms for the zero diagram of type (depending of the parity), which is essentially the same as for SFW up to L30. Otherwise, we can assume that . Then Using L24, SA26, and SA9, we can multiply on the right by a sequence of elementary matrices so as to put it in Reduced Column Echelon Form (RCEF), while multiplying by the determinant of these matrices. This gives full rank and in RCEF, and so that reads:

As is in RCEF, Lemma D.0.1 gives a permutation matrix such that:
We then derive:

L8, L2, L3, D3

L14

L13
L2, L14, SA1, L10




SA1, L10
L13, L2, L3

Uniqueness of normal form.
Let
and
be two SEW normal forms of the same type , where , are in RCEF and have ranks and respectively. Let , be their respective pivot rows.
Assume that
\left[\left[N\right]\right]=\left[\left[N^{\prime}\right]\right],\quad\mathrm{i.e.}\quad\left[\begin{array}{c}Z\\ \infty\\ r\\ \infty\\ 2r\\ \end{array}\right.\xrightarrow{M}\begin{array}{c}Z\\ \infty\\ n\\ \end{array}\right]=\left[\begin{array}{c}Z^{\prime}\\ \infty\\ r^{\prime}\\ \infty\\ 2r^{\prime}\\ \end{array}\right.\xrightarrow{M^{\prime}}\begin{array}{c}Z^{\prime}\\ \infty\\ n\\ \end{array}\right].Notice that using L30, we get back a normal form for SFW which we already know is unique.
becomes
becomes
We can directly deduce that
.