Manuscript Offprint
arXiv:2610.23192Controlled PROP: Theory and Applications to Quantum Circuits
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
NOÉ DELORME AND SIMON PERDRIX
Université de Lorraine, CNRS, INRIA, LORIA, 54000 Nancy, France
e-mail address: noe.delorme@inria.fr, simon.perdrix@inria.fr
ABSTRACT. Control is a fundamental concept in quantum and reversible computational models. It enables the conditional application of a transformation to a system, depending on the state of another system. We introduce a general framework for diagrammatic reasoning featuring control as a constructor. To this end, we provide an elementary axiomatization of control functors, extending the standard formalism of PROPs to controlled PROPs. As an application, we show that controlled PROPs facilitate diagrammatic reasoning for quantum circuits. In particular, they admit a simple and complete axiomatization involving at most three qubits, whereas in the standard PROP setting, completeness necessarily requires axioms involving arbitrarily many qubits.
CONTENTS
- Introduction ..... 2
- PROPs ..... 4
- Controlled PROPs ..... 7
- Conjugation in unitary controlled PROPs ..... 11
- Vanilla quantum circuits ..... 14
- Controllable quantum circuits ..... 16
- Controllable quantum circuits with ancillas ..... 23
- Polycontrolled PROPs ..... 26
- Controlled SMCs ..... 28
Conclusion ..... 28
Acknowledgements ..... 29
References ..... 30
Appendix A. Proof of the equations of Figure 7 ..... 33
Appendix B. Proof of the equations of Figure 10 ..... 36
Appendix C. Generalized cosine-sine decomposition ..... 38
Appendix D. Proof of Theorem 7.7 ..... 41
Preprint submitted to Logical Methods in Computer Science
© N. Delorme and S. Perdrix CC Creative Commons
N. DELORME AND S. PERDRIX
Control is a central concept in quantum and reversible computational models. Roughly speaking, a transformation can be conditioned on an additional system such that, depending on its state, the transformation is either applied or not. For instance, controlling a NOT gate yields the well-known CNOT gate, and adding another control leads to the Toffoli gate. Notice that various quantum programming languages [10, 19, 20, 29, 32] provide primitives that allow controlling gates or even circuits.
In this paper, we introduce a formalization of control as a constructor, i.e. as a control functor in a PROP: every diagram with inputs and outputs yields a new diagram with inputs and outputs, which represents its controlled version. A controlled PROP is then defined as a PROP equipped with a control functor. This gives a versatile language that captures the fundamental properties of control and facilitates reasoning about processes. For instance, if an equation is derivable, so is its controlled version , whereas the latter can be cumbersome to derive when using the standard PROP formalism. Controlled PROPs rely on three constructors – sequential composition, parallel composition, and control – and specify how they interact. In particular, control does not preserve parallel composition, i.e. since the latter acts on one more wire. However, it distributes naturally, as captured by the axioms of control functors.
We also point out a fundamental property playing a central role when handling both control and reversible operations at the same time. Given an arbitrary operation f and a reversible operation g, conjugating f by g gives the compute/uncompute pattern “apply g, then f, then the inverse of g”. This pattern is widely used in algorithm design, for example for a change of basis, for the preparation and release of ancillas, for the implementation of oracles, and for circuit optimization [19]. The control of such a pattern can be reduced to the control of f alone. This property is known as the conjugation law and yields the notion of conjugated controlled PROP. This law is graphically represented as follows.

1.2. Quantum circuits. An important motivation for our framework comes from quantum computing, where control is extensively used. Complete axiomatizations for quantum circuits have been established in earlier works using the formalism of PROPs [11, 12, 13]. Completeness ensures that every valid equivalence between quantum circuits can be derived. These results do not rely on control as a constructor, but point out the pivotal role of controlled operations in diagrammatic reasoning, and motivate the introduction of controlled PROPs. As our main application, we define controllable quantum circuits and give a complete axiomatization for them. In its simplest form (see Figure 1), where controllable quantum
(p)
(p+)
(hh)
(bg)
(e)
FIGURE 1. Complete axiomatization for quantum circuits defined as a conjugated controlled PROP generated by the Hadamard gate and global phase gates , using the notations and . See Section 6 for details.
circuits are seen as a conjugated controlled PROP, it contains four simple axioms (p), (p+), (hh) and (bg), together with the standard Euler decomposition axiom (e). We also provide a complete axiomatization for controllable circuits seen as a controlled PROP (not conjugated), with only a few additional relations corresponding to particular instances of the conjugation law.
Remarkably, in the axiomatization we introduce for controllable quantum circuits, the axioms involve a bounded number of qubits, whereas it has been shown in [11] that any complete axiomatization for (unitary) quantum circuits, defined as a PROP, requires at least one axiom involving qubits for any . Hence, controlled PROPs circumvent the unboundedness issue of PROPs, making them particularly well suited to diagrammatic reasoning.
As another application, we consider controllable quantum circuits with auxiliary qubits, a.k.a. ancillas, for which we also introduce a simple complete axiomatization. It illustrates that controlled PROPs are not necessarily made up only of endomorphisms (even if the control functor only applies to endomorphisms). Throughout the paper, we also give several examples illustrating the versatility of the formalism, including classical reversible circuits and qudit systems.
1.3. Related work. In graphical languages, control is a central notion that has been used in various contexts, but not as a constructor. For quantum circuits, the completeness procedure is based on a back-and-forth translation with optical circuits [13] that extensively relies on controlled operations and their basic algebra. In this context, controlled operations are treated as shorthand notation, as they can be decomposed into generators.
In the ZX-calculus, controlled diagrams have also been extensively used, in particular for defining normal forms [2, 26, 27]. Notice that the expressivity of the language yields a slightly different definition of control, allowing the control of arbitrary diagrams (not necessarily with the same number of inputs and outputs). Again, in this context, controlled operations are treated as shorthand notation.
Another interesting approach is to extend the quantum circuit model with a new kind of composition that graphically consists of vertically connecting two gates, where the behavior of the resulting circuit is a generalized controlled operation. This allows one, for instance, to represent a CNOT by connecting a Z gate and an X gate [33].
Additionally, various quantum programming languages (especially circuit description languages) allow for control of quantum circuits. In particular, Quipper supports control
N. DELORME AND S. PERDRIX
and a withcompute primitive, which amounts to conjugating a circuit with another. These features have been semantically formalized using controllable categories [19] which involve control functions (not necessarily functors) and withcompute as a constructor, to provide a categorical model for high-level quantum programming languages.
Another quantum programming language introduced recently in [23] allows arbitrary unitaries to be generated from some simple global phases combined with a quantum analog of the if let primitive, which can be embedded in our formalism (see Example 8.2).
[9] and Hadamard- [17] are two powerful quantum programming languages for approximately universal fragments of quantum computing, that are equipped with sound and complete equational theories. These languages differ from our approach in several ways: first, they consider fragments of unitary transformations, second, they are not graphical, and third, they rely on the direct sum as a primitive rather than control functors. Indeed, this promising approach based on rig categories relies on two constructors and , corresponding to the tensor product and the direct sum respectively. These two products provide a means of expressing control and enable powerful decompositions of unitary transformations, which, however, cannot always be interpreted as graphical circuit-like transformations. In contrast, control functors categorify the intuitive representation of control in circuits, in particular in the reversible and quantum cases.
Finally, very recently, a construction to turn PROPs with an identified involution into controlled PROPs demonstrated that a control structure is essentially captured by a rig structure [22] (see Example 8.11). However, this rig-based approach is currently specific to the binary case, whereas controlled PROPs are well suited for more general settings (see Example 3.2).
2. PROPs
Graphical languages are defined formally with the formalism of PROPs, which are a particular kind of categories admitting a nice representation as string diagrams.
Definition 2.1 (PROP). A PROP is a strict symmetric monoidal category whose objects are the natural numbers with addition as tensor product.
In a nutshell, a PROP P consists of collections of morphisms for any objects together with two compositions and satisfying the coherence laws depicted in Figure 2. We write when , where and are respectively called domain and codomain. Morphisms can be composed sequentially , for any , and in parallel , for any , . A PROP has specific morphisms: identities for any and swaps for any . Morphisms admit a nice graphical representation as string diagrams: sequential compositions are depicted horizontally; parallel compositions are depicted vertically; is depicted as wires in parallel; is depicted as an exchange of and wires; and a morphism is depicted as a box with input wires and output wires. Here are some examples.

(9)
FIGURE 2. Coherence laws of PROPs.
N. DELORME AND S. PERDRIX
When it is clear from the context, we may write , , or even instead of drawing wires in parallel to simplify diagrams. Moreover, we denote by the sub-PROP of endomorphisms of , defined by its collections of morphisms and when .
Example 2.2. Given a dimension , let be the PROP of qudit linear maps, meaning that is the collection of linear maps from qudits to qudits, and where the parallel composition is the usual tensor product. Moreover, let and be the sub-PROPs of restricted to isometries and unitaries respectively. For instance, and are morphisms in .
Given two PROPs P and Q, a functor is a map that assigns to each object an object , and to each morphism a morphism while preserving the compositional structure, meaning and whenever is defined in . An identity-on-objects functor is a functor satisfying for any . A monoidal functor is a functor that additionally preserves the parallel composition, meaning , , and . And finally, a PROP functor is a monoidal functor that additionally preserves swaps, meaning
A †-PROP (or dagger PROP) is a PROP P equipped with an identity-on-objects involutive and contravariant functor , meaning that each morphism is mapped to a morphism such that , , , and . Moreover, a †-PROP is said to be a unitary PROP when it contains only endomorphisms (meaning ) and satisfies for any .
A PROP can be specified by generators and equations. A signature is a collection of typed generators for . We implicitly include the structural morphisms and in . The set of terms over , denoted , is inductively generated from these generators using sequential and parallel composition: if and are terms, then is a term, and if and are terms, then is a term. We write for the set of terms of type . A context is a term containing a single hole , and denotes the term obtained by substituting a well-typed term into this hole. The set of contexts with hole of type is denoted . An axiomatization A for is a set of well-typed equations , called axioms, between terms of the same type. An axiom may therefore be applied locally inside any compatible context, replacing with . Then, freely generated PROPs are defined as follows.
Definition 2.3 (freely generated PROP). Given a signature and an axiomatization A for , the freely generated PROP is the PROP whose collection of morphisms is the set of terms quotiented by the coherence laws (1) to (11) together with the axioms of A. That is, the derivability relation is the smallest
is an isometry if its adjoint is a left inverse, meaning .
is a unitary if it is an isometry and , which implies congruence relation on containing the equations , meaning
Since the relation is a congruence, the compositions and are well-defined on equivalence classes: the classes corresponding to and are the identity and swap morphisms; and the coherence laws (1) to (11) hold in the quotient since they belong to the relation. This ensures that is a PROP.
Then, a graphical language can be defined as a freely generated PROP equipped with a standard interpretation, that is, an identity-on-objects PROP functor where is the PROP providing the semantics of the language. Hence, every diagram represents a morphism . The axiomatization A, and by extension the graphical language is said to be sound when every derivable equation holds under the standard interpretation meaning that implies . Conversely, it is complete when every semantic equality can be derived diagrammatically, meaning that implies . And finally, it is universal when every morphism of can be represented by a diagram of , meaning that for any there exists such that . Thus, a sound, complete and universal graphical language provides an exact equational presentation of the semantics it represents.
3. CONTROLLED PROPS
3.1. Control functors. In this section, we formalize the notion of control as a constructor by equipping a PROP P with a control functor ctrl that satisfies a few additional coherence laws (see Figure 3). Control functors are only defined on the sub-PROP of endomorphisms , i.e. on the morphisms with equal domain and codomain.
Definition 3.1 (control functor). Given a PROP P, a control functor ctrl : is a functor mapping any object to the object and mapping any morphism to the morphism ctrl( ) : while satisfying the additional coherence laws (14), (15) and (16) depicted in Figure 3.
Graphically, functors can be depicted using boxes [28]. Thus, is depicted as a bullet point on the additional wire connected to the diagram , enclosed within a dotted box. This dotted box is omitted when the diagram is made of a single morphism or when there are nested controls. For instance,
ctrl(f)
ctrl(ctrl(f))
ctrl(f g)
ctrl(f ⊗ g)




We may write for nested applications of from , which can be inductively defined as and . Also, the coherence laws of PROPs (see Figure 2) allow simplifying the drawings by stretching the line to depict morphisms that
N. DELORME AND S. PERDRIX

(13)



(14)


(15)


(16)

FIGURE 3. Coherence laws of control functors where .
are controlled by non-consecutive wires. For instance, the following diagrams are the same modulo the coherence laws.

On one hand, (12) and (13) hold by definition of the control as a functor. On the other hand, (14), (15) and (16) capture the expected behavior of a control: identities can be pulled out from the control; nested controls commute; and swaps, which are left-invertible by definition, satisfy the conjugation law. However, control functors are not monoidal because . Yet, as illustrated by the following derivation, the expected behavior of the control functor applied to a parallel composition is still captured.

(1)(6)

(8)(9)
(13)

(16)
(14)
(8)(9)
Example 3.2. In (see Example 2.2), the standard notion of control is to apply a linear map on the targeted -qubit system when the control qubit is in the state , and to apply the identity when the control qubit is in the state . This can be embedded as the following control functor.
However, this is not the only control functor. For instance,
are also control functors in . In general, in dimension , qudit linear maps admit a control functor
for any . Notice however that the map is not a control functor as it fails to be functional in general when .
3.2. Controlled PROPs. We now focus on PROPs equipped with a distinguished control functor, which we call controlled PROPs. The general case of PROPs with several control functors is described in Section 8. Notice that a single control functor already offers a rich structure as other control functors may be obtained by conjugating the control wire with some invertible morphism. For instance, and (see Example 3.2) can be recovered by conjugating the control qubit of with X or Hadamard gates respectively.
Definition 3.3 (controlled PROP). A controlled PROP (CPROP) is a PROP equipped with a control functor.
Unless a different notation is specified, we systematically denote by ctrl the control functor of a controlled PROP.
Example 3.4. , , and with as control functor are CPROPs.
Any PROP admits two trivial control functors and (where ) which correspond to the two degenerate cases of a control, namely when is respectively always or never applied. The following notion of points can be used to rule out these two degenerate cases. Intuitively, the points of a control functor are two specific morphisms false ( : ) and true ( : ) that respectively annihilate and fire the controlled gate when they are plugged to the control wire.
Definition 3.5 (points). A control functor ctrl has points if there exist two morphisms : and : such that (17) and (18) are satisfied for any .
Example 3.6. In , and are points of the control functor . In , and are points of the control functor whenever . Notice however that points do not necessarily exist, in particular when all morphisms of the CPROP are endomorphisms, like in for instance.
Definition 3.7 (CPROP functor). A CPROP functor between two CPROPs and is a PROP functor satisfying for any .
N. DELORME AND S. PERDRIX
(18)
FIGURE 4. Additional coherence laws that a controlled PROP may satisfy.
Similarly to PROPs (see Section 2), a CPROP P can be freely generated by a signature and an axiomatization A. We extend the notions of terms and contexts to account for the control. Given a signature , the set of controlled terms over , denoted , is obtained by closing the set of terms under control: whenever is a controlled term, so is . Similarly, controlled contexts extend contexts by allowing the hole to occur under control: whenever is a controlled context, so is . We write for the set of controlled terms of type , and for the set of controlled contexts whose hole has type . Then, freely generated CPROPs are defined as follows.
Definition 3.8 (freely generated CPROP). Given a signature and an axiomatization A for , the freely generated CPROP is the CPROP whose collection of morphisms is the set of controlled terms quotiented by the coherence laws (1) to (16) together with the axioms of A. That is, the derivability relation is the smallest congruence relation on containing the equations , meaning
Since the relation is a congruence, the compositions and and the control ctrl are well-defined on equivalence classes. Moreover, (12) to (16) hold in the quotient since they belong to the relation. This ensures that is a CPROP.
Graphical languages can also be defined as freely generated CPROPs. In these settings, the standard interpretation is defined as an identity-on-objects CPROP functor (see Definition 3.7). Moreover, if an equation is provable in the language, then its controlled version follows directly by construction.
Example 3.9. Consider the freely generated CPROP whose unique generator is and whose unique axiom is . Then, is not a generator, but the diagram corresponding to ; moreover, the equation is derivable.
3.3. Conjugated controlled PROPs. Going one step further, we consider conjugated controlled PROPs, in which the conjugation law holds.
Definition 3.10 (conjugated controlled PROP). A conjugated controlled PROP (CCPROP) is a CPROP P satisfying the conjugation law (19) for any , , and such that .
Example 3.11. Lin₂, Iso₂, and Uni₂ with ctrl|₁⟩ as control functor are CCPROPs.
The conjugation law is particularly important in algorithm design where the compute/uncompute pattern (taking ) is often used to prepare and release ancillary bits (or qubits) and implement oracles. This law can also be used in compilation processes to reduce (or extend when applied from right to left) the scope of the control.
Like PROPs and CPROPs (see Definitions 2.3 and 3.8), a CCPROP P can be freely generated by a signature and an axiomatization A. However, unlike freely generated PROPs and CPROPs, a freely generated CCPROP is not specified by purely equational axioms. This is because the conjugation law (19) is conditional, since it applies only when the premise is satisfied. As a consequence, defining P and then considering P/A may create new left-invertible morphisms, and therefore new instances of the conjugation law. Hence, the axioms of A and the inference corresponding to the conjugation law must be taken into account simultaneously.
Definition 3.12 (freely generated CCPROP). Given a signature and an axiomatization A for , the freely generated CCPROP is the CCPROP whose collection of morphisms is the set of controlled terms quotiented by the coherence laws (1) to (16) and the conjugation law (19) together with the axioms of A. That is, the derivability relation is the smallest congruence relation on containing the equations and closed under the conjugation law, meaning
4. CONJUGATION IN UNITARY CONTROLLED PROPS
A specific class of CPROPs that will be of interest in this paper is when a dagger structure coexists with the control structure, while ensuring that every morphism is invertible. This yields the notion of unitary CPROP, extending the notion of unitary PROP (see Section 2).
Definition 4.1 (unitary CPROP). A unitary CPROP P is a CPROP which is also a unitary PROP satisfying for any .
Notice that, in a unitary CPROP, every morphism is an endomorphism. Moreover, the conjugation law is particularly relevant for unitary CPROPs because, in this context, every inverse of g can be provably transformed into . As stated in the following lemma, this allows removing the premise of the conjugation law.
N. DELORME AND S. PERDRIX
Lemma 4.2. A unitary CPROP P is a CCPROP if and only if the following equation (20) is satisfied for any .
Proof. The instances of (20) correspond exactly to the instances of the conjugation law (19) where . To prove that is a conjugated CPROP, it remains to prove the other instances of (19). This is achieved using , where the first step uses the unitarity of and the second step uses the hypothesis .
We provide a sufficient condition for the conjugation law to hold in the case of a unitary CPROP. Intuitively, proving the conjugation law for a small subset of morphisms implies the conjugation law for all of them.
Definition 4.3 (reducibility). Given a unitary CPROP P and a subset of morphisms , let be the closure of M under sequential and parallel compositions, where the subsets of morphisms are inductively defined as
Then, we say that is -reducible if for any morphism there exists a morphism such that .
To show that an -reducible unitary CPROP is conjugated, it is enough to prove the conjugation law for pairs of morphisms of that are acting on overlapping wires. In the following, given and with , we write , the value of being clear from the context.
Lemma 4.4. An M-reducible unitary CPROP P is a CCPROP if
i.e.

(★)
is satisfied for any and in , and any such that and .
In other words, is the conjugation law for conjugated by . Intuitively, acts on the last wires, and rotates the wires so that acts on the wires taken cyclically (i.e. modulo ). The constraint ensures that and overlap, and every way of placing and on overlapping wires is obtained, up to a permutation of the wires, for some (see the proof below). In particular, there is nothing to check when or (e.g. for global phases).
Proof. For any satisfying , we prove that the conjugation law holds, meaning

Notice that , so it is enough to prove, for any that

(21)
As is -reducible, any morphism can be transformed into a morphism . Moreover, notice that the coherence laws of PROPs (see Figure 2) ensure that there exist and , satisfying for all , such that
Intuitively, we can transform any morphism into a sequential composition of layers each containing a single morphism of sandwiched between identities. Let be the minimal number of such layers. Notice that for any , if then there exist such that and . We thus prove (21) by induction on with the lexicographic order.
• For any with , let such that and .

Def. 4.1
(13)
Def. 4.1
(13)
where the induction hypothesis is applied for .
• For any with , let such that and .

where the first induction hypothesis is applied for , and the second one for .
N. DELORME AND S. PERDRIX
• When , and , with , . W.l.o.g. we assume , as one can reduce to this case by pushing identities out of the scope of the control using (14) and (16). Let , if then and act on distinct wires and commute trivially, thus we assume . Since , either , or and .
- If (which includes the case ), then and . Using (16) to move the outer swaps out of the scope of the control, and then with and (notice that ), we get

- If , then , so and . Using with and , and then (16) to move the swaps into the scope of the control, we get

5. VANILLA QUANTUM CIRCUITS
In this section, following [11, 12, 13], we consider the usual definition of quantum circuits used to represent exactly all unitary maps in (see Example 2.2). That is, the graphical language of vanilla quantum circuits is defined as the freely generated PROP (see Definition 2.3) whose signature contains the four kinds of generators
where the first two are parametrized by . All generators correspond to usual quantum gates, namely global phases, Z-rotations, Hadamard, and CNOT. Moreover, the axiomatization of vanilla quantum circuits is depicted in Figure 5.
Definition 5.1 (vanilla quantum circuits). Let be the graphical language of vanilla quantum circuits whose standard interpretation is the identity-on-objects PROP functor inductively defined as
Proposition 5.2. QC is universal.
Proof. The well-known Euler decomposition states that Z- and X-rotations (which can be implemented as and ) together with global phases ensure that arbitrary one-qubit unitaries can be implemented in QC. Moreover, any entangling two-qubit gate, such as the CNOT gate, together with arbitrary one-qubit unitaries is universal for unitaries on n qubits [8, 30].
Each axiom of is simple and admits a meaningful interpretation: (p) and (p+) show that global phases form a group and their parameters are -periodic; (z) and (z+) show that Z-rotations form a group and their parameters are -periodic; (hh) shows that the Hadamard gate is self-inverse; (bg) shows that a swap can be implemented with three CNOTs; (cx) shows that the CNOT gate is self-inverse (when ) and that Z-rotations commute on the control qubit of a CNOT; (cz) shows two different implementations of the controlled-Z gate, using either one or two CNOTs; and finally ( ) is a generalization of (z) where the circuit ( and ) is inductively defined as and

Intuitively, is an implementation of an -controlled Z-rotation with parameter , which means . As a consequence, each instance of is semantically trivial but syntactically involved as contains a number of gates which is exponential in .
Surely, the most powerful axiom of is (e), which has first been introduced in the context of ZX-calculus [16, 36]. It follows from the well-known Euler decomposition stating that any one-qubit unitary can be decomposed, up to a global phase, into X- and Z-rotations. It also represents an infinite family of equations where the parameters are arbitrary in and the parameters are restricted to and computed with a map Euler: such that
where are computed as follows using the intermediate complex numbers .
N. DELORME AND S. PERDRIX
(hh)
FIGURE 5. Axiomatization for , containing an instance of for any .
| if | ||||
| if | ||||
| otherwise |
Proposition 5.3. The axiomatization is sound.
Proof. It is enough to check that for any , which is done by direct computation. Only the case of (e) is not straightforward and as been treated in [16].
The first completeness result for quantum circuits has been established in [13]; and the axiomatization has been obtained after significant simplifications in [11, 12].
Theorem 5.4 ([11]). QC is complete.
It has been shown in [11] that every axiom of is necessary, which means that none can be removed without losing completeness. Notice that there is an instance of for any number of control qubits . All such instances are necessary. More generally, any axiomatization yielding a universal and complete graphical language (defined as a PROP) for unitary maps requires at least one axiom involving qubits for any . As we will see in the next section, the use of controlled PROPs simplifies the diagrammatic reasoning on quantum circuits by circumventing the necessity of axioms acting on an unbounded number of qubits.
6. CONTROLLABLE QUANTUM CIRCUITS
6.1. Controllable quantum circuits. In this section, we define controllable quantum circuits as a freely generated CPROP (see Definition 3.8). We prove that the conjugation law holds in these settings, and provide a complete axiomatization.
Using the CPROP formalism, we can use much simpler generators to define quantum circuits. This is because a Z-rotation can be seen as a controlled global phase, and a CNOT can be seen as a controlled NOT. In fact, we can simply take the global phases together with the Hadamard gate as generators and still capture all unitaries in . That is, the graphical language of controllable quantum circuits is defined as the freely generated CPROP whose signature contains the two kinds of generators
where the first is parametrized by . Moreover, the axiomatization of controllable quantum circuits is depicted in Figure 6.
Definition 6.1 (controllable quantum circuits). Let CQC := CPROP_{\Sigma_c}/A_c be the graphical language of controllable quantum circuits whose standard interpretation is the identity-on-objects CPROP functor inductively defined as
Proposition 6.2. CQC is universal.
Proof. Direct consequence of Proposition 5.2 because
\left[\left[-\boxed{Z(\alpha)}-\right]\right]_{\mathrm{v}}=\left[\left[\begin{array}{c}\boxed{\alpha}\\ \end{array}\right]\right]_{\mathrm{c}}\qquad\mathrm{a n d}\qquad\left[\left[\begin{array}{c}\boxed{\alpha}\\ \end{array}\right]\right]_{\mathrm{v}}=\left[\left[\begin{array}{c}\boxed{H}\\ \end{array}\right]\boxed{H}\\ \boxed{\pi}\end{array}\right]_{\mathrm{c}}.The axiomatization contains two kinds of axioms. On the one hand, (p), (p+), (hh), (cbg) and (ce) directly correspond to some axioms in . In particular the parameters of (ce) are computed with the same functions as in (e). On the other hand, , , and are new and can be seen as instances of the conjugation law. Notice that some axioms of do not appear in as they are trivialized within the CPROP formalism.
Proposition 6.3. The axiomatization is sound.
Proof. Similarly to Proposition 5.3, it is enough to check that for any axiom , which is done by direct computation.
We proceed in two steps: first, we prove that CQC is a conjugated CPROP using the sufficient condition established in Lemma 4.4; and then, we prove that CQC is complete using an encoding/decoding procedure and the completeness of vanilla quantum circuits (see Theorem 5.4). To this end, we prove the equations depicted in Figure 7, whose proofs are given in order of dependency in Appendix A.
6.2. The conjugation law. To prove that CQC is a conjugated CPROP, we use the sufficient condition of Lemma 4.4. To do so, we first prove that CQC is a unitary CPROP.
Lemma 6.4. CQC is a unitary CPROP where is defined as
Proof. We can prove straightforwardly by induction on , where the base case and are directly given by (22), (p+) and (hh).
In order to apply Lemma 4.4, we additionally show that CQC is -reducible and M-reducible where M and are the sets of morphisms defined as
N. DELORME AND S. PERDRIX
(p)
(p+)
(hh)

(cbg)
(ce)


FIGURE 6. The axioms (p), (p+), (hh), (cbg), (ce), (ch₁), (ch₂), (ch₃) and (ch₄) form the complete axiomatization A_c for CQC (where quantum circuits are defined as a CPROP); and the subset of axioms (p), (p+), (hh), (cbg) and (ce) form the complete axiomatization A_cc for CCQC (where quantum circuits are defined as a CCPROP).
Lemma 6.5. CQC is -reducible.
Proof. We explain a procedure to transform any morphism of CQC into a morphism of . Throughout the procedure, whenever we have or , we can split the control as explained in Section 3 (this is always possible because only contains endomorphisms). Then, whenever we have some inside a control, we transform it into compositions of , , and using (7), (10), (11) and (cbg). Then, using the functionality of together with (14), we can pull out all identities that are inside a control. We get a morphism in which all controls are of the form or for some , and we can reduce the largest number of nested control by applying (26), (27) and (28) from left to right to get a morphism of (where (27) is only applied when to avoid infinite loops). We can guarantee this process to terminate. Indeed, given a morphism , let be maximum such that there is a in where or for some ; and let be maximum such that there is a in where or for some . Consider the lexicographic order . If is reached by some or with , then applying (26) and (27) as much as possible preserves and decreases ; otherwise is only reached by some with , and applying (28) as much as possible decreases . In both cases the pair decreases for the lexicographic order.
Lemma 6.6. CQC is M-reducible.
(22)
(30)
(31)
FIGURE 7. Some equations provable in CQC.
Proof. By Lemma 6.5, CQC is -reducible, and it only remains to prove that all identity morphisms and all swap morphisms can be transformed into morphisms of . Each can be transformed into compositions of and using (7), (10) and (11); each can be transformed into compositions of , , and using (cbg); and each can be transformed into using (3) and (22).
Lemma 6.7. CQC is a conjugated CPROP.
Proof. CQC is an M-reducible unitary CPROP (see Lemmas 6.4 and 6.6) and Lemma 4.4 gives a sufficient condition (★) for the conjugation law to hold in these settings. We thus have to prove (★) in CQC for any and in , and any such that and . As contains four kinds of morphisms, there are many cases to consider. Fortunately, most cases are trivial. When or is a global
N. DELORME AND S. PERDRIX
| equation | |||||
|---|---|---|---|---|---|
| 1 | 1 | (0,1) | (29) | ||
| ctrl(⊛) | 1 | 1 | (0,1) | ||
| ctrl(ctrl(⊕)) | 1 | 2 | (0,2) | (31) | |
| ctrl(ctrl(⊕)) | 1 | 2 | (1,1) | ||
| ctrl(⊛) | 1 | 1 | (0,1) | ||
| ctrl(ctrl(⊕)) | 2 | 1 | (0,2) | (15), (16) and | |
| ctrl(ctrl(⊕)) | 2 | 1 | (1,1) | (15), (16) and |
FIGURE 8. Summary of which equation proves in Lemma 6.7.
phase , there is no such . When neither nor is a Hadamard gate, and are controlled global phases (namely of the form or ): such morphisms, as well as their controlled versions, commute whatever the wires they are applied on (using (15) and (16) one can make the shared control wires the outermost ones, and conclude with (13) and (14) and the fact that global phases commute). Hence, by unitarity of CQC and (16), both sides of are equal to . As summarized in Figure 8, all remaining cases are provable in CQC.
6.3. Completeness. To prove completeness of controllable quantum circuits, we use an encoding/decoding procedure between QC and CQC. Thanks to Lemma 6.5, we can actually simplify the proofs by conducting them using instead of CQC. There are two key steps: the first one is to establish the relation between and the control of CQC (see Lemma 6.12); and the second is to ensure that there are enough axioms in to decode each axiom of (see Lemma 6.13).
Definition 6.8 (encoding). Let be the encoding defined as
Lemma 6.9. for any .
Proof. By induction on . The base cases are easily checked, and the induction cases are proved as follows where is either or .
Definition 6.10 (decoding). Let Dec: QC → CQC|_{M+} be the decoding defined as
Lemma 6.11. CQC ⊢ Dec(Enc(C)) = C for any .
Proof. By induction on . The base cases are easily proved using (hh), and the induction cases are proved as follows where is either or .
Lemma 6.12. CQC ⊢ Dec(Z^n(α)) = ctrl^{n+1}(⊕) for any n ∈ N and α ∈ ℝ.
Proof. By induction on n, where the base case n = 0 is trivial, and where the induction case is proved as follows.

Def. 6.10
(15)
(19)
(13)
(27)
Lemma 6.13.
Proof. We prove that for any axiom . For some axioms this is trivial, namely (p), (p+), (hh) and (e), because their decodings are directly
N. DELORME AND S. PERDRIX
axioms of . Moreover, (z) and are decoded as the controlled versions of (p) and and are thus directly provable in CQC. The axiom (bg) is decoded as follows.

(hh)(p+)(p)
Def. 6.10
Dec
The axiom (cx) is decoded as follows.

Def. 6.10

(hh)
(13)

(p+)(p)
(hh)
Def. 6.10
Dec
The axiom (cz) is decoded as follows.
Dec

Def. 6.10
(hh)
(27)
Def. 6.10
Dec
Finally, the axiom is decoded as follows.
Dec

Lem. 6.12

(p)
Def. 6.10
Dec

( )
Theorem 6.14. CQC is complete.
Proof. Let such that . By Lemma 6.6, there are some such that . Lemma 6.9 and completeness of (see Theorem 5.4) imply . Then, by Lemma 6.13, we get and Lemma 6.11 concludes the proof as follows.
Lem. 6.13 and Thm. 5.4
It is remarkable that the axiomatization only contains axioms involving at most three qubits, each of which admits a natural and intuitive interpretation. In a sense, using the CPROP formalism makes it possible to isolate the essence of quantum circuits by abstracting away the parts of the axiomatization that are not specific to quantum computing.
Moreover, as , , and are instances of the conjugation law (19), one can get rid of these axioms – yielding the axiomatization (see Figure 6) containing only five axioms involving at most two qubits – by directly considering controllable quantum circuits as a freely generated CCPROP.
Corollary 6.15. CCQC := CCPROP /A is complete.
7. CONTROLLABLE QUANTUM CIRCUITS WITH ANCILLAS
In this section, we introduce the CPROP ACQC of controllable quantum circuits with ancillas featuring auxiliary qubits. This provides an example of a CPROP that does not consist solely of endomorphisms and demonstrates that, similarly to the vanilla quantum circuit case [12], ancillas can be embedded into controllable quantum circuits.
In these settings, any isometry (see Example 2.2) can be expressed. We can initialize fresh qubits in the state , and also release qubits when they become useless. To guarantee that the overall evolution is an isometry, qubits can only be released when they are in the state to ensure that the states of other qubits are not disturbed. This condition makes the definition of ACQC a bit tedious. Contrary to QC and CQC, the graphical language ACQC is not directly freely generated. Instead, we first define the freely generated CPROP PCQC of controllable quantum circuits with post-selection and define ACQC to be a restriction of PCQC. More precisely, PCQC is the freely generated CPROP (see Definition 3.8) whose signature contains the four kinds of generators
where the first one is parametrized by . Moreover, the axiomatization of controllable quantum circuits with post-selection is depicted in Figure 9.
Definition 7.1 (controllable quantum circuits with post-selection). Let PCQC := CPROP /A_a be the graphical language of controllable quantum circuits with post-selection whose standard interpretation is the identity-on-objects CPROP functor inductively defined as
\left[\left\lVert\triangleright-\right\rVert_{\mathrm{p}}:=\left|0\right\rangle,\qquad\quad\left[\left\lVert\longrightarrow\right\rVert_{\mathrm{p}}:=\left\langle0\right|\right..Every axiom of is also in , and there are four new axioms: (a) allows creating a fresh qubit; (ic) and (icc) reveal that behaves as an annihilator on control; and (ca) allows pulling out the and from control.
Since isometries are linear maps, there is an inclusion , and we can define ACQC and its standard interpretation as follows.
Definition 7.2 (controllable quantum circuits with ancillas). Let ACQC be the CPROP defined by
for any ; and let be the restriction of to .
N. DELORME AND S. PERDRIX
(a)


(ic)

(icc)
(p)
(p+)
(hh)

(cbg)
(ce)

(ca)
(ch1)
(ch2)
(ch3)
(ch4)
FIGURE 9. The axioms (a), (ic), (icc), (p), (p+), (hh), (cbg), (ce), (ca), (ch1), (ch2), (ch3) and (ch4) form the complete axiomatization for ACQC (where quantum circuits with ancillas are defined as a CPROP); and the subset of axioms (a), (ic), (icc), (p), (p+), (hh), (cbg) and (ce) form the complete axiomatization for ACCQC (where quantum circuits with ancillas are defined as a CCPROP).
Notice that ACQC is indeed a CPROP because identities and swaps are interpreted in and because isometries are closed under compositions and control. Moreover, , which implies . Notice also that when because isometries have no more inputs than outputs (otherwise, there would be a loss of information).
Proposition 7.3. ACQC is universal.
Proof. For any isometry there exists a unitary such that [30]. By universality of (see Proposition 6.2), there exists such that and .
Proposition 7.4. The axiomatization is sound.
Proof. Similarly to Proposition 5.3, it is enough to check that for any axiom , which is done by direct computation.
Lemma 7.5. For any there exist such that
Proof. We can always bend the wires to put all and gates on top of the circuit using the coherence laws and (ca) (only endomorphisms can be controlled, which implies that there are always as many as there are inside a control).
While the generator corresponds to qubit initialization in the state , we can also define qubit initialization in the state with the shorthand notations
Lemma 7.6. and are points in ACQC.
Proof. We have to prove
for any . By Lemmas 6.6 and 7.5, it is enough to prove these equations for the morphisms of , which correspond to (33), (35), (36), (37), (38), (39), (40) and (ic) (see Figure 10). The proofs of these equations are given in order of dependency in Appendix B. More precisely, we have the following derivations.

Lem. 7.5

Lem. 6.6


(ic)(33)(35)(36)(37)(38)(39)(40)

Lem. 7.5

Lem. 6.6

(ic)(33)(35)(36)(37)(38)(39)(40)
Lem. 6.6
Lem. 7.5
□
Theorem 7.7. ACQC is complete.
Proof. A similar proof has been conducted in the context of PROP in [12]. We proceed exactly the same way, using a variant of the cosine-sine decomposition for which we give an improved version of the proof in Appendix C. The detailed proof is given in Appendix D. □
Interestingly, while the necessity of axioms acting on an unbounded number of qubits (see Section 5) can be circumvented in CQC, this does not seem to be the case in ACQC where (ca) involves an arbitrary number of qubits. We believe that we cannot directly derive (ca) using the other axioms of , but of course, it may be possible to replace it with more local axioms. Nonetheless, as mentioned previously, , , and are
N. DELORME AND S. PERDRIX
(32)

(33)

(34)

(35)

(36)

(37)

(38)

(39)

(40)

FIGURE 10. Some equations provable in ACQC.
instances of the conjugation law (19). This is also the case of (ca). Then, one can get rid of these axioms – yielding the axiomatization (see Figure 9) containing only eight axioms involving at most two qubits – by directly considering controllable quantum circuits with ancillas as a freely generated CCPROP.
Corollary 7.8. The restriction ACCQC of PCCQC := CCPROP_{\Sigma_a}/A_{ca} to isometries, defined by
for any , is complete.
8. POLYCONTROLLED PROPS
So far, we focused on PROPs that are equipped with a single control functor. It is natural to consider PROPs that admit multiple coexisting control functors.
Definition 8.1 (polycontrolled PROP). A polycontrolled PROP (poly-CPROP) is a PROP equipped with multiple control functors.
As illustrated by the following example, considering poly-CPROPs instead of CPROPs can sometimes simplify diagrammatic reasoning.
Example 8.2. While controllable quantum circuits are defined using two generators and one control functor (see Definition 6.1), we can also define a similar graphical language using one generator and two control functor similarly to the language introduced in [23]. If we only have global phases for any , and two control functors and , we can still express any unitaries in with the interpretation defined as
Intuitively allows implementing Z-rotations while allows implementing X-rotations. For instance, the Hadamard gate can be implemented by
In the following, we review some notable properties that multiple coexisting control functors may satisfy.
Definition 8.3 (compatibility). Two control functors are said to be compatible if (41) is satisfied for any .
Example 8.4. In , is compatible with because each control can be obtained by conjugating the control wire of the other control with a X gate that slides through the swaps. However, given a self-inverse linear map (meaning ), is not compatible with the control functor where acts on qubits and where applies gates to qubits in parallel. Intuitively, is independent of the state of the control qubit and always conjugates the target by a series of gates.
Definition 8.5 (commutativity). Two control functors are said to commute if (42) is satisfied for any .
Example 8.6. In , commutes with but not with .
Definition 8.7 (conversion). Given two control functors , we say that a morphism converts into if (43) is satisfied for any .
Example 8.8. In , converts into (and vice versa). More generally, in , converts into .
Definition 8.9 (exhaustivity). A family of control functors (where ) is said to be exhaustive if (44) is satisfied for any .
Example 8.10. In , the family of control functors is exhaustive. Intuitively, each fires if the control qudit is in the state , which implies that if we apply all these controlled gates sequentially one after the other, then is fired exactly once.
N. DELORME AND S. PERDRIX
Example 8.11. The control structure presented in [22] is captured as a special case of our formalism. More precisely, the authors consider a PROP P containing only endomorphisms (meaning ) including a specific involution (meaning ), in which there are two specific functors satisfying eight equations. In our settings, P exactly corresponds to a polycontrolled PROP with two commuting exhaustive control functors that are converted one into the other using the morphism .
9. CONTROLLED SMCs
So far, we focused on SMCs that are PROPs. Nevertheless, the notion of control functor and its diagrammatic representation extend straightforwardly to arbitrary SMCs. The main difference is that a control functor is specific to a certain object.
Definition 9.1 (control structure). Given an SMC C, a control structure is a family of control functors parametrized by objects , mapping any object to the object and any morphism to the morphism while satisfying the additional coherence laws (47) to (51).
Notice that (45) and (46) hold by definition of the control as a functor; (47) and (48) guarantee that the control functor preserves the monoidal structure on objects; and (49), (50) and (51) respectively correspond to (14), (15) and (16). Moreover, instantiating this generalized definition in the context of PROPs, we recover Definition 3.1.
The notion of points can also be extended to arbitrary SMCs. Moreover, if and have points (respectively denoted , and , ), then and are points for for any , as well as and for any .
CONCLUSION
In this paper, we introduced controlled PROPs as an extension of the standard PROP formalism enabling diagrammatic reasoning with control as a constructor. Beyond quantum computing, we expect controlled PROPs to be useful in other domains where conditional behavior plays a central role, such as classical reversible computing. Note that the notion of control functor can be straightforwardly generalized to arbitrary symmetric monoidal categories – as explained in Section 9 – and also to weaker structures like braided monoidal categories.
We considered, in this paper, control as a constructor, independently of its actual physical implementation. We leave a full development of this question for future investigation; however, we mention a no-go theorem concerning the possibility of controlling unknown operations using the standard quantum circuit formalism [3]. As pointed out by the authors of this result, the no-go theorem does not apply in practice, as any physical implementation of an unknown unitary provides additional information that makes control possible. Moreover, there is evidence that such control can be implemented in practice [18, 38]. The authors of the no-go theorem even argue that the quantum circuit formalism should be extended to capture the possibility of controlling unknown unitaries, which is a feature of the graphical language of controllable quantum circuits we introduced (see Section 6). Furthermore, in the present paper, this no-go theorem does not apply, as we work in a white-box setting, i.e. we assume that the implementation of the unitary as a circuit is known.


(46)



(48)



(49)


(50)


(51)

FIGURE 11. Coherence laws of control functors where .
Finally, another direction for future research is to consider controllable quantum circuits for quantum circuit optimization tasks, since they provide simpler rewriting rules than those of vanilla quantum circuits.
ACKNOWLEDGEMENTS
The authors would like to thank Alexandre Clément, Emmanuel Jeandel, Louis Lemonnier, William Schober, and Scott Wesley for fruitful discussions. This work is supported by the Plan France 2030 through the PEPR integrated project EPiQ ANR-22-PETQ-0007 and the HQI platform ANR-22-PNCQ-0002; and by the European Union through the MSCA Staff Exchange project Qcomical HORIZON-MSCA-2023-SE-01. The project is also supported by the Maison du Quantique MaQuEst.
N. DELORME AND S. PERDRIX
REFERENCES
[1] Samson Abramsky and Bob Coecke. A Categorical Semantics of Quantum Protocols. Proceedings of the 19th Annual IEEE Symposium on Logic in Computer Science (LICS). 2004. [DOI: 10.1109/LICS.2004.1319636] [PDF: arXiv:quant-ph/0402130]. (Cited p. 2).
[2] Edwin Agnew, Lia Yeh, and Richie Yeung. Algebraic Structure of Controlled States and Operators in the ZXW calculus. Poster at QPL 2025. 2025. (Cited p. 3).
[3] Mateus Araújo, Adrien Feix, Fabio Costa, and Časlav Brukner. Quantum circuits cannot control unknown operations. New Journal of Physics. 2014. [DOI: 10.1088/1367-2630/16/9/093026] [PDF: arXiv:1309.7976]. (Cited p. 28).
[4] Miriam Backens, Aleks Kissinger, Hector Miller-Bakewell, John van de Wetering, and Sal Wolffs. Completeness of the ZH-Calculus. Compositionality. 2023. [DOI: 10.32408/compositionality-5-5] [PDF: arXiv:2103.06610]. (Cited p. 2).
[5] John C. Baez and Jason Erbele. Categories in control. arXiv preprint. 2014. [PDF: arXiv:1405.6881]. (Cited p. 2).
[6] Filippo Bonchi, Paweł Sobociński, and Fabio Zanasi. A Categorical Semantics of Signal Flow Graphs. Proceedings of the 25th International Conference on Concurrency Theory (CONCUR). 2014. [DOI: 10.1007/978-3-662-44584-6_30] [PDF: https://hal.science/hal-02134182]. (Cited p. 2).
[7] Filippo Bonchi, Paweł Sobociński, and Fabio Zanasi. Interacting bialgebras are Frobenius. Proceedings of the 17th International Conference on Foundations of Software Science and Computation Structures (FoSSaCS). 2014. [DOI: 10.1007/978-3-642-54830-7_23] [PDF: https://hal.science/hal-00989174]. (Cited p. 2).
[8] Michael J. Bremner, Christopher M. Dawson, Jennifer L. Dodd, Alexei Gilchrist, Aram W. Harrow, Duncan Mortimer, Michael A. Nielsen, and Tobias J. Osborne. Practical Scheme for Quantum Computation with Any Two-Qubit Entangling Gate. Physical Review Letters. 2002. [DOI: 10.1103/PhysRevLett.89.247902] [PDF: arXiv:quant-ph/0207072]. (Cited p. 15).
[9] Jacques Carette, Chris Heunen, Robin Kaarsgaard, and Amr Sabry. With a Few Square Roots, Quantum Computing Is as Easy as Pi. Proceedings of the ACM on Programming Languages. 2024. [DOI: 10.1145/3632861] [PDF: arXiv:2310.14056]. (Cited p. 4).
[10] Cirq. A Python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits. Zenodo. 2021. [DOI: 10.5281/zenodo.16867504] [PDF: https://cirq.readthedocs.io]. (Cited p. 2).
[11] Alexandre Clément, Noé Delorme, and Simon Perdrix. Minimal Equational Theories for Quantum Circuits. Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS). 2024. [DOI: 10.1145/3661814.3662088] [PDF: arXiv:2311.07476]. (Cited pp. 2, 3, 14, 16).
[12] Alexandre Clément, Noé Delorme, Simon Perdrix, and Renaud Vilmart. Quantum Circuit Completeness: Extensions and Simplifications. Proceedings of the 32nd EACSL Annual Conference on Computer Science Logic (CSL). 2024. [DOI: 10.4230/LIPIcs.CSL.2024.20] [PDF: arXiv:2303.03117]. (Cited pp. 2, 14, 16, 23, 25, 38).
[13] Alexandre Clément, Nicolas Heurtel, Shane Mansfield, Simon Perdrix, and Benoît Valiron. A Complete Equational Theory for Quantum Circuits. Proceedings of the 38th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS). 2023. [DOI: 10.1109/LICS56636.2023.10175801] [PDF: arXiv:2206.10577]. (Cited pp. 2, 3, 14, 16).
[14] Bob Coecke. The mathematics of text structure. Joachim Lambek: The Interplay of Mathematics, Logic, and Linguistics. 2021. [DOI: 10.1007/978-3-030-66545-6_6] [PDF: arXiv:1904.03478]. (Cited p. 2).
[15] Bob Coecke and Ross Duncan. Interacting Quantum Observables. Proceedings of the 35th International Colloquium on Automata, Languages and Programming (ICALP). 2008. [DOI: 10.1007/978-3-540-70583-3_25] [PDF: arXiv:0906.4725]. (Cited p. 2).
[16] Bob Coecke and Quanlong Wang. ZX-Rules for 2-Qubit Clifford+T Quantum Circuits. Reversible Computation. 2018. [DOI: 10.1007/978-3-319-99498-7_10] [PDF: arXiv:1804.05356]. (Cited pp. 15, 16).
[17] Wang Fang, Chris Heunen, and Robin Kaarsgaard. Hadamard-Pi: Equational Quantum Programming. Proceedings of the ACM on Programming Languages. 2026. [DOI: 10.1145/3776647] [PDF: arXiv:2506.06835]. (Cited p. 4).
[18] Nicolai Friis, Vedran Dunjko, Wolfgang Dür, and Hans J. Briegel. Implementing quantum control for unknown subroutines. Physical Review A. 2014. [DOI: 10.1103/PhysRevA.89.030303] [PDF: arXiv:1401.8128]. (Cited p. 28).
[19] Peng Fu, Kohei Kishida, Neil Ross, and Peter Selinger. Proto-Quipper with Reversing and Control. arXiv preprint. 2024. [PDF: arXiv:2410.22261]. (Cited pp. 2, 4).
[20] Alexander S. Green, Peter LeFanu Lumsdaine, Neil J. Ross, Peter Selinger, and Benoît Valiron. Quipper: A Scalable Quantum Programming Language. Proceedings of the 34th ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI). 2013. [DOI: 10.1145/2491956.2462177] [PDF: arXiv:1304.3390]. (Cited p. 2).
[21] Amar Hadzihasanovic. A Diagrammatic Axiomatisation for Qubit Entanglement. 30th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS). 2015. [DOI: 10.1109/LICS.2015.59] [PDF: arXiv:1501.07082]. (Cited p. 2).
[22] Chris Heunen, Robin Kaarsgaard, and Louis Lemonnier. One Rig to Control Them All. 41st Annual Symposium on Logic in Computer Science (LICS). 2026. [DOI: 10.4230/LIPIcs.LICS.2026.56] [PDF: arXiv:2510.05032]. (Cited pp. 4, 28).
[23] Chris Heunen, Louis Lemonnier, Christopher McNally, and Alex Rice. Quantum Circuits Are Just a Phase. Proceedings of the ACM on Programming Languages. 2026. [DOI: 10.1145/3776731] [PDF: arXiv:2507.11676]. (Cited pp. 4, 26).
[24] Emmanuel Jeandel. Strong shift equivalence as a category notion. arXiv preprint. 2021. [PDF: arXiv:2107.10734]. (Cited p. 2).
[25] Emmanuel Jeandel, Simon Perdrix, and Renaud Vilmart. A Complete Axiomatisation of the ZX-Calculus for Clifford+T Quantum Mechanics. Proceedings of the 33rd Annual ACM/IEEE Symposium on Logic in Computer Science. 2018. [DOI: 10.1145/3209108.3209131] [PDF: arXiv:1705.11151]. (Cited p. 2).
[26] Emmanuel Jeandel, Simon Perdrix, and Renaud Vilmart. A generic normal form for ZX-diagrams and application to the rational angle completeness. Proceedings of the 34th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS). 2019. [DOI: 10.5555/3470152.3470196] [PDF: arXiv:1805.05296]. (Cited p. 3).
[27] Haytham McDowall-Rose, Razin A. Shaikh, and Lia Yeh. From Fermions to Qubits: A ZX-Calculus Perspective. arXiv preprint. 2025. [PDF: arXiv:2505.06212]. (Cited p. 3).
[28] Paul-André Melliès. Functorial Boxes in String Diagrams. Proceedings of the 20th International Workshop on Computer Science Logic (CSL). 2006. [DOI: 10.1007/11874683] [PDF: https://hal.science/hal-00154243v1]. (Cited p. 7).
[29] Microsoft. Q# Programming Guide. 2025. [PDF: https://learn.microsoft.com/en-us/azure/quantum/user-guide/]. (Cited p. 2).
[30] Michael A. Nielsen and Isaac L. Chuang. Quantum Computation and Quantum Information. Cambridge University Press. 2010. [DOI: 10.1017/CBO9780511976667]. (Cited pp. 15, 24).
[31] Christopher C. Paige and Musheng Wei. History and Generality of the CS Decomposition. Linear Algebra and its Applications. 1994. [DOI: 10.1016/0024-3795(94)90446-4]. (Cited pp. 38, 39).
[32] Qiskit. An Open-source Framework for Quantum Computing. Zenodo. 2019. [DOI: 10.5281/zenodo.2562111] [PDF: https://qiskit.org]. (Cited p. 2).
[33] William Schober and Scott Wesley. A Complete Equational Theory for Quantum Circuits with Generalized Control. Proceedings of the 23rd International Conference on Quantum Physics and Logic (QPL). 2026. [PDF: https://qplconference.org/assets/submissions/qpl2026-final163.pdf]. (Cited p. 3).
[34] Pawel Sobocinski. Graphical linear algebra. Mathematical blog. 2015. [PDF: https://graphicallinearalgebra.net]. (Cited p. 2).
[35] Lloyd N. Trefethen and David Bau III. Numerical Linear Algebra. Society for Industrial and Applied Mathematics. 1997. [DOI: 10.1137/1.9780898719574]. (Cited p. 39).
[36] Renaud Vilmart. A Near-Minimal Axiomatisation of ZX-Calculus for Pure Qubit Quantum Mechanics. Proceedings of the 34th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS). 2019. [DOI: 10.1109/LICS.2019.8785765] [PDF: arXiv:1812.09114]. (Cited p. 15).
[37] William Zeng and Bob Coecke. Quantum algorithms for compositional natural language processing. Proceedings of the Workshop on Semantic Spaces at the Intersection of NLP, Physics and Cognitive Science (SLPCS). 2016. [DOI: 10.4204/EPTCS.221.8] [PDF: arXiv:1608.01406]. (Cited p. 2).
[38] Xiao-Qi Zhou, Timothy C. Ralph, Pruet Kalasuwan, Mian Zhang, Alberto Peruzzo, Benjamin P. Lanyon, and Jeremy L. O'Brien. Adding control to arbitrary unknown quantum operations. Nature Communications. 2011. [DOI: 10.1038/ncomms1392] [PDF: arXiv:1006.2670]. (Cited p. 28).
APPENDIX A. PROOF OF THE EQUATIONS OF FIGURE 7
Proof of Equation (22) in CQC.
Proof of Equation (23) in CQC.

Proof of Equation (24) in CQC.

(p)
Proof of Equation (25) in CQC.
Proof of Equation (26) in CQC.

Proof of Equation (29) in CQC.

(25)

(26)
Proof of Equation (27) in CQC.

(p+)
(hh)(p)(p+)
(24)
(13)
(13)
(p+)
(ch2)
(p+) (22)
(ch1)
Proof of Equation (30) in CQC.

(15)

(ch3)

(15)

Proof of Equation (31) in CQC.

(15)

(ch4)

(15)

Proof of Equation (28) in CQC.

(27)
(30)
(p)
(31)
(p+) (p)
APPENDIX B. PROOF OF THE EQUATIONS OF FIGURE 10
Proof of Equation (32) in ACQC.

Proof of Equation (33) in ACQC.

(24)
Proof of Equation (34) in ACQC.

(hh)(p)(p+)(32)
(27)
(p)
(hh)
(icc)
Proof of Equation (35) in ACQC.

(26)

(icc)
(hh)(p+)(22)
Proof of Equation (36) in ACQC.

(26)

(34)

(25)
Proof of Equation (37) in ACQC.

(27)

(ic)(icc)

(hh)(p+)(22)
Proof of Equation (38) in ACQC.

(34)
(24)
(p+) (22)
(hh)(p+) (p)
Proof of Equation (39) in ACQC.

(37)

(hh)(p+) (p)
Proof of Equation (40) in ACQC.

(38)

(27)
APPENDIX C. GENERALIZED COSINE-SINE DECOMPOSITION
We provide a self-contained proof of the generalized cosine-sine decomposition (GCSD) (introduced for a similar purpose in [12]), which is a generalization of the cosine-sine decomposition (CSD) [31]. All considered matrices are complex, and we write when the matrix has rows and columns.
First, recall some usual decompositions of an arbitrary square matrix . The RQ-decomposition (RQD) states that there exist a unitary matrix and an upper-triangular matrix with real non-negative diagonal elements such that . The QL-decomposition (QLD) states that there exist a unitary matrix and a lower-triangular matrix with real non-negative diagonal elements such that . The singular value decomposition (SVD) states that there exist two unitary matrices and a real diagonal matrix satisfying and such that [35].
Lemma C.1. If is a lower-triangular matrix and is diagonal with non-zero diagonal elements, then is diagonal. If is an upper-triangular matrix and is diagonal with non-zero diagonal elements, then is diagonal.
Proof. We prove the statement for a lower-triangular matrix by induction on (the statement for an upper-triangular matrix follows because is a lower-triangular matrix such that is diagonal with non-zero elements). The base case is trivial. For the induction case where , let . Notice that and for any , which implies and . Hence, all non-diagonal elements of the last row and last column of are zero, and we can use the IH on the submatrix obtained by deleting the last row and the last column of .
Lemma C.2 ([31]). Given a unitary matrix , the cosine-sine decomposition (CSD) states that there exist unitary matrices , and real diagonal matrices with non-negative elements such that and
Lemma C.3. Given a unitary matrix where , the generalized cosine-sine decomposition (GCSD) states that there exist unitary matrices , and real diagonal matrices with non-negative elements such that and
Proof. Let . We can split into four blocks , , and . Notice that the unitarity of implies the unitarity of .
Then, let be the SVD of , which yields the following decomposition.
Using respectively the RQD and QLD, we get
where is upper-triangular, is lower-triangular and are unitaries. Then, the middle matrix can be further decomposed as follows.
The unitarity of forces the elements of the diagonal matrix to be between 0 and 1, and the SVD sorts them from largest to smallest. Let be such that the first diagonal elements of are 1s and let be the submatrix of which has only elements strictly smaller than 1, which implies
Then, we can split into four blocks , , and . Moreover, the orthonormality of the first rows and columns of forces the middle matrix to have the form
\begin{bmatrix}{{{\mathbb{I}_{\ell}}}}&{{{0}}}&{{{0}}}&{{{0}}} \\{{{\hline0}}}&{{{D_{00}}}}&{{{0}}}&{{{D_{01}}}} \\{{{\hline0}}}&{{{0}}}&{{{V_{00}}}}&{{{V_{01}}}} \\{{{\hline0}}}&{{{D_{10}}}}&{{{V_{10}}}}&{{{V_{11}}}}\end{bmatrix}where is the resulting upper-triangular submatrix of and is the resulting lower-triangular submatrix of . The unitarity of implies that
where is diagonal with only non-negative strictly smaller than 1 elements. Thus, and are diagonal with non-zero diagonal elements and Lemma C.1 forces and to be diagonal (with real non-negative diagonal elements as the diagonal elements of the RQD and QLD are so). Thus, which implies . Notice that all diagonal elements of are > 0. Moreover, the unitarity of implies and , which forces and . Let . Again, the unitarity of implies , which forces . Then, the middle matrix can be further decomposed as follows.
\begin{bmatrix}{{{\mathbb{I}_{\ell}}}}&{{{0}}}&{{{0}}}&{{{0}}} \\{{{\hline0}}}&{{{D_{c}^{\prime}}}}&{{{0}}}&{{{D_{s}^{\prime}}}} \\{{{\hline0}}}&{{{0}}}&{{{V_{00}}}}&{{{0}}} \\{{{\hline0}}}&{{{D_{s}^{\prime}}}}&{{{0}}}&{{{-D_{c}^{\prime}}}}\end{bmatrix}=\begin{bmatrix}{{{\mathbb{I}_{\ell}}}}&{{{0}}}&{{{0}}}&{{{0}}} \\{{{\hline0}}}&{{{D_{c}^{\prime}}}}&{{{0}}}&{{{-D_{s}^{\prime}}}} \\{{{\hline0}}}&{{{0}}}&{{{\mathbb{I}_{\ell}}}}&{{{0}}} \\{{{\hline0}}}&{{{D_{s}^{\prime}}}}&{{{0}}}&{{{D_{c}^{\prime}}}}\end{bmatrix}\cdot\begin{bmatrix}{{{\mathbb{I}_{\ell}}}}&{{{0}}}&{{{0}}}&{{{0}}} \\{{{\hline0}}}&{{{\mathbb{I}_{n-\ell}}}}&{{{0}}}&{{{0}}} \\{{{\hline0}}}&{{{0}}}&{{{V_{00}}}}&{{{0}}} \\{{{\hline0}}}&{{{0}}}&{{{0}}}&{{{-\mathbb{I}_{n-\ell}}}}\end{bmatrix}Finally, we can pad with 1s and with 0s to get such that
where represents the zero matrix. All put together we get the following decomposition.
And we are done with .
□
APPENDIX D. PROOF OF THEOREM 7.7
In this section we use the notation to depict a negative control. Notice that Lemma 7.6 (together with (32)) implies that and are points of the negative control, meaning
To prove the completeness of ACQC, we first prove Lemma D.1, which can be seen as a generalized version of the axioms (ic) and (icc).
Lemma D.1. Given a controllable quantum circuit , if for any we have , then
Proof. By induction on , where the case is trivial because there is no and we can directly use the completeness of (see Theorem 6.14). If , then the condition implies that there exists a controllable quantum circuit such that ; and we can directly conclude using the completeness of (see Theorem 6.14) together with Lemma 7.6. The induction case requires a finer matrix decomposition, namely the GCSD (see Lemma C.3). Suppose . Let and . The condition implies that there exists a unitary matrix such that
Lemma C.3 gives the following decomposition
where and are unitary matrices, and are real diagonal matrices with non-negative elements satisfying . Notice that there exists such that
42 REFERENCES Let Ry(α) ∈ CQC(1, 1) be such that JRy(α)K c = cos(α) −sin(α) sin(α) cos(α) , where α ∈ R. Moreover, given b ∈ {0, 1} ℓ , let ctrlb (Ry(α)) ∈ CQC(1+ℓ, 1+ℓ) be a controlled Ry(α) whose target is the first qubit and whose (1 + j)-th qubit is positively controlled if the j-th digit of b is 1, and negatively controlled if the j-th digit of b is 0. For instance, ctrl011(Ry(α)) = Ry(α) . Then, the following equality holds. rQ K≤i<N ctrlbin(i) (Ry(αi−K+1))z i
IK 0 0 0 0 Dc 0 −Ds 0 0 IK 0 0 Ds 0 Dc where bin(i) is the binary representation of i of size n + k (for instance, bin(K) = 0n−110k and bin(N − 1) = 1n+k ). Let CA0 , CB0 , CA1 , CB1 ∈ CQC(n + k, n + k) be such that JCA0 K i = IK 0 0 A0 , JCB0 K i = IK 0 0 B0 , JCA1 K i = A1, JCB1 K i = B1. Then, by completeness of CQC (see Theorem 6.14), we have ACQC ⊢ C = CB1 n k CB0 Ry(α1) Ry(α2) . . . Ry(αN−K) . . . . . . CA0 CA1 where the notation may represent either a positive control or a negative control. Then, the following derivation concludes the proof. ACQC ⊢ C Thm. 6.14 = CB1 CB0 Ry(α1) Ry(α2) . . . Ry(αN−K) . . . . . . CA0 CA1 Lem. 7.6 = CB0 Ry(α1) Ry(α2) . . . Ry(αN−K) . . . . . . CA0 CA1 IH= Ry(α1) Ry(α2) . . . Ry(αN−K) . . . . . . CA0 CA1 Lem. 7.6 = CA0 IH= Notice that all the ctrlbin(i) (Ry(αi−K+1)) can be removed using Lemma 7.6 because every bitstring bin(i) satisfying K ≤ i < N has at least one 1 in its first n digits. Indeed, each controlled gate has at least one positive control in front of an initialization, which ensures that Lemma 7.6 is applicable. □ Proof of Theorem 7.7. Let C1, C2 ∈ ACQC(k, n+k) be such that JC1Ka = JC2Ka . Applying Lemma 7.5 to Ci gives the circuit C ′ i ∈ CQC(mi + n + k, mi + n + k). Assume w.l.o.g. that
. Then, the following derivation proves completeness, where the four wires depict in reality , , and wires respectively.

where Lemma D.1 is applicable because implies
which implies
which implies for any .
This work is licensed under the Creative Commons Attribution License. To view a copy of this license, visit https://creativecommons.org/licenses/by/4.0/ or send a letter to Creative Commons, 171 Second St, Suite 300, San Francisco, CA 94105, USA, or Eisenacher Strasse 2, 10777 Berlin, Germany