Manuscript Offprint
arXiv:2611.06137Essential Unitarity for Higher-Order Quantum Computation (Extended Abstract)
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Samson Abramsky
University College London
London, UK
Radha Jagadeesan
DePaul University
Chicago, USA
We develop a boundary-centric semantic framework for higher-order quantum computation, building on the Kelly–Laplaza description of compact closure and Abramsky's execution account. In the semantic carrier Perm(C), morphisms are complex-linear combinations of polarized boundary linkings, composed by execution. Finite-family addresses provide coherent control over finite-level quantum registers (qudits) while retaining the multiplicative boundary structure.
We identify essential unitarity, a boundary condition extending ordinary unitarity to higher-order interfaces. On positive qudit registers it coincides with ordinary matrix unitarity; at higher order it expresses preservation of information across the full polarized boundary.
We define a unit-free coherent quantum core generated by multiplicative wiring, unitary gates on positive qudit registers, and contextual coherent control, and prove that every one of its morphisms is essentially unitary. The framework realizes an applied coherent quantum switch and the unitary stages of equal-ratio one-slot supermap dilations with explicit memory. Complete proofs appear in the full version of this paper.
1 Introduction
Since the foundational work of Abramsky and Coecke [2], Categorical Quantum Mechanics has shown that tensorial composition, duality, and entanglement fit within dagger compact closed categories [22]. Adding a symmetric monoidal sum accommodates classical interfaces and measurement [12]. String diagrams give a representation-free account of process composition, independent of any Hilbert-space model.
In finite-dimensional closed-system quantum mechanics, reversible dynamics is represented by unitary operators: an evolution satisfies . Higher-order processes, however, take processes rather than states as inputs. The quantum switch [9], for instance, coherently superposes the two causal orders and of evolutions under quantum control; it is physically realizable and reversible, yet is not a first-order unitary endomorphism because its inputs are processes. This raises the question: What boundary invariant extends first-order unitarity to higher-order typed interfaces?
We work from below. The base is the free compact closed category of Kelly–Laplaza (KL) [18], in the concrete combinatorial presentation of Abramsky [1], which separates permutations, loops, and polarities. Its finite-coproduct completion Cop records distinguishable layouts. Rather than mediate distributivity by coherence isomorphisms [20], we work in distributed normal form: objects are finite disjoint unions of interfaces, and tensor distributes over sum at the object level. The C-linear matrix/biproduct completion is the carrier category Perm(C), a dagger compact closed category with finite biproducts, supplying superposition and quantum amplitudes (Section 3).
A KL morphism is read on the two polarities of its compact-name boundary. A basis linking contributes its permutation matrix; linear combinations contribute the corresponding complex matrix, with
J. van de Wetering, O. Oreshkov, and A.B. Sainz (Eds.): Quantum Physics and Logic 2026 (QPL 2026) EPTCS 456, 2026, pp. 1–17, doi:10.4204/EPTCS.456.1
© S. Abramsky & R. Jagadeesan This work is licensed under the Creative Commons Attribution License.
Essential Unitarity for Higher-Order Quantum Computation
2
closed loop factors already in the coefficients. Essential unitarity (EU) requires the resulting boundary matrix to be two-sided unitary (Definition 4.3). On positive qudit registers this is ordinary matrix unitarity. For qudits carrying multiplicative payloads, the full matrix retains both the qudit-family address and the KL port (Section 5).
The source category (Definition 6.5) has raw types generated from positive qudit literals and their duals by and . Its morphisms are generated by the unit-free no-Mix fragment of multiplicative linear logic (MLL), unitary gates on positive qudit registers, and contextual qudit control. A controlled family may share an arbitrary higher-order input, but has a common positive output and retains one selector port throughout. The two carrier counterexamples of Section 6.1 explain these restrictions.
For a source type , let and collect its positive and negative boundary coordinates, respectively. For , compact naming exposes the boundary . Its fixed polarization determines the incoming and outgoing axes, and typed un-naming gives
Our main theorem proves both Gram identities for . Its fixed-width representation is therefore a unitary numerical qudit–MLL matrix, hence is essentially unitary (Theorem 6.8).
The calculus also contains the applied contextual quantum switch of Section 6.4. Function types support resource-linear one-slot transformations by pre- and postcomposition, tensoring with constants, and synchronized qudit control. Finally, the calculus realizes the unitary stages of deterministic one-slot supermap dilations whenever the input/output dimension ratios agree and the memory remains an explicit boundary wire (Section 7). The recovery identity is stated in external Hilbert-space/channel semantics; measurement, partial trace, and mixed-state semantics are left to future work.
Higher-order quantum processes. The study of supermaps—transformations on quantum operations—originates with [7, 6, 8], which characterize deterministic one-slot supermaps and give sequential realizations by pre- and post-isometries connected by a memory system, followed by partial trace over the final memory. Subsequent work studies causal and indefinite-order processes [21, 3, 19, 28] and higher-order-process frameworks based on BV logic, closed symmetric monoidal categories, enriched monoidal categories, and strong profunctors [23, 25, 26, 14]. These approaches characterize higher-order admissibility relative to an underlying first-order process theory through operational, causal, or structural conditions. Two concurrent language-level accounts place higher-order quantum control in causal process semantics. Hirata and Tsukada [15] develop a pure, measurement-free higher-order calculus with quantum conditionals and a causality type system, interpreted in CausHilb. Barsse, Péchoux, and Perdrix [4] extend coherent control to measurement and arbitrary quantum channels, with denotational semantics in Caus[CPM]. At the level of physical operations, isolates the qudit-controlled, essentially unitary boundary fragment of this shared design space, leaving measurement and discarding external.
The present approach. The construction begins with Kelly–Laplaza compact-closed syntax and its complex-linear finite-biproduct carrier. The source category adds positive qudit-register gates and contextual qudit control to the unit-free multiplicative base. Correctness is expressed by essential unitarity of the full qudit–MLL boundary matrix of each -morphism.
Our resource-linear contexts provide a unitary analogue of part of the usual supermap picture [28, 14]: the distinguished hole is used once, substitution remains in , and its ambient carrier extension is -linear. The unit-free multiplicative structure of determines a symmetric polycategory representable on nonempty lists [24, 10], and resource-linear contexts give a source-level analogue of the single-hole local-application fragment of Wilson and Chiribella [27]. Equal input/output dimension ratios permit padding the ancillary spaces and extending the pre- and post-isometries to unitaries while memory wires remain explicit.
Structure of the paper. Section 2 introduces the boundary viewpoint and essential unitarity. Section 3 constructs the finite-coproduct precursor Cop and the carrier Perm(). Sections 4 and 5 develop KL boundary matrices, qudit-MLL matrices, and EU. Section 6 defines and states the essential-unitarity theorem. Section 7 develops resource-linear contexts and equal-ratio one-slot dilation stages with explicit memory.
2 Essential unitarity, informally

Figure 1: A KL matching (a), its polarized boundary view (b), and for (c).
The starting point is the Kelly–Laplaza picture of a morphism [18], in the abstract-scalar presentation of Abramsky [1]. A KL interface is a signed pair , with and . Duality swaps the two components, while tensor takes their disjoint union componentwise. A KL morphism is a port matching , possibly with closed internal loops. Its geometry is a wiring diagram.
Take , , and . Then , so a morphism matches four ports on each side (Figure 1(a)). A KL basis morphism is a port matching. The carrier adds complex amplitudes and finite-family indices; within the single-interface block considered here, its morphisms are finite -linear combinations of such matchings.
The boundary view regroups the same external ports as and . The KL matching is then read from (incoming) to (outgoing); in the running example, (Figure 1(b)). The compact-name object changes the boundary partition, not the wiring. For KL interfaces , the carrier evaluation contracts the - and -ports and carries the -ports through. Evaluation is syntactically higher-order but diagrammatically ordinary. For it is the four-wire matching of Figure 1(c); tildes mark ports from the -factor, and subscripts distinguish the two occurrences of . Its higher-order character lies in the typed boundary partition, not the wiring. Currying preserves each typed Kelly–Laplaza component and its coefficient under the canonical identification of compact-name ports (Section 3.3). It changes the boundary partition, not the underlying matching. Let be signed KL interfaces. For a loop-free matching , write for its carrier basis vector, for its boundary bijection, and for the corresponding permutation matrix. For a finite set , let be
Essential Unitarity for Higher-Order Quantum Computation
the Hilbert space with orthonormal basis S. Thus
has boundary matrix
where the coefficients already contain the evaluated closed-loop factors. Essential unitarity requires this operator to be two-sided unitary. It is a boundary condition, not the assertion that is a dagger-unitary morphism of ; evaluation is the basic example separating the two notions.
Finite-family indices introduce one further coordinate. For a positive qudit register carrying an MLL payload, the full matrix keeps the qudit address separate from the KL-port matching. In a fixed-width sector, every payload row has the same number of KL ports; are qudit addresses and ranges over -port matchings. The matrix has the form
Section 5 develops this qudit–MLL matrix and its sequential version. For a source morphism , compact naming of its carrier image exposes the boundary . The type fixes the incoming factors and the outgoing factors ; un-naming along this partition produces . Its fixed-width representation turns the carrier Gram identities into ordinary unitarity of the full numerical matrix .
The two counterexamples of Section 6.1 motivate the qudit-control discipline of Section 6. Section 6.5 states the essential-unitarity theorem; the full proof reduces mixed-intermediate composition to pure-intermediate composition.
Throughout, the test is the same: retain both the qudit address and the polarized KL ports, form the full boundary matrix, and ask whether it is unitary.
3 The Polarized Carrier Category Perm(C)
Three names are reserved throughout: source is , carrier is , precursor is Cop. Put , with a formal indeterminate recording closed execution cycles. We construct the polynomial matrix/biproduct envelope in three steps — the Kelly–Laplaza base [1, 18] (ports), its free finite-coproduct completion Cop (finite-family indexing, with the groupoid of finite sets and bijections governing structural reindexings), and the full -linear matrix/biproduct completion (amplitudes) — and then specialize to the carrier , on which essential unitarity will live, with loop-free KL matrix units as its basis morphisms. Notation: and carry a single tensor; when a formula tracks source polarity we write and , the identification fixed by the De Morgan coherences.
3.1 Kelly–Laplaza base and polarized interfaces
The free dagger compact closed category on one generating object is described concretely by Kelly and Laplaza [1, 18]. The generator produces the atomic positive interface (1,0); duality gives (0,1); tensor builds all signed interfaces . Thus an object of the Kelly–Laplaza base is a signed finite set , and a morphism is a polarized bijection equipped with a loop count .
Composition is path execution with cycle formation: gluing along the shared boundary decomposes each connected component into either a path, contributing to the composite wiring, or a closed cycle; if denotes the number of new cycles, then
Associativity and the correctness of the loop accounting follow from Kelly–Laplaza coherence [1, 18]. The dagger is inverse wiring; duality is polarity reversal, ; the tensor unit is , the empty interface, arising as the nullary tensor.
3.2 The finite-copproduct precursor Cop
We lift from individual interfaces to finite indexed families, obtaining genuine finite coproducts.
Definition 3.1 (Objects in normal form). An object in normal form is a finite indexed family
with possibly empty (the empty family is the initial object 0). In family normal form the tensor unit is the singleton family containing the empty KL interface 1; it is distinct from the empty-family zero object 0. Tensor and objectwise polarity reversal of normal-form objects are
where at the port level .
At the index level, is the + of (concatenation of families) and is its (bilinear distribution). For and , put
For a single interface, , extending the earlier Pos / Neg convention.
Every object of Cop and of its full -linear matrix/biproduct completion is in normal form, so distributes over by construction. This indexing discipline prevents distributivity from being read as port copying; see Section 5.
Definition 3.2 (The finite-copproduct precursor Cop). Cop := Cop(KL) has as objects the normal-form objects of Definition 3.1, and as morphisms , for and , pairs with
(i) a function;
(ii) a Kelly–Laplaza morphism, for each .
Composition is componentwise: .
The canonical injections and couplings exhibit Cop as the free finite-copproduct completion of KL.
3.3 The full k-linear matrix/biproduct completion Perm(k)
Equip with the involution that conjugates complex coefficients and fixes . Definition 3.5 below specializes along , for a chosen .
The choice makes closed trace loops detectable on a nonempty residual boundary. The full version shows that every correct unit-free no-Mix multiplicative component used by the source calculus is a coefficient-one matching with no detached execution component, and hence contributes no power of d.
Essential Unitarity for Higher-Order Quantum Computation
Definition 3.3 (Full -linear matrix/biproduct completion). Write for the loop-free KL morphisms and for the basis vector of . For and , set
Each entry is therefore a finite -linear combination of loop-free matchings. For and , let be the external-path matching of their glued graph and let be its number of closed cycles. Define
Extend this law -bilinearly to . Composition in is matrix multiplication over . Dagger is conjugate transpose with and . The linearization of a general KL morphism is
An occupied Kelly–Laplaza component is coefficient-one if it is a single basis matching with scalar 1. On pure-axis summands this matching is a Kelly–Laplaza basis isomorphism. A matrix is coefficient-one if every occupied entry is coefficient-one.
Brackets are suppressed when no confusion can result. The image of under the linearization is : the loop count contributes to the coefficient, not to the basis label.
Cop Perm() on the same objects: its image is the subcategory with exactly one nonzero entry per column, that entry a single monomial supplied by the data of Definition 3.2. So Cop pins the -indexing, and Perm() adds -linear combinations in each entry.
Proposition 3.4 (The loop-erased envelope). The rule (3.1) makes the loop-erased -linear envelope a dagger compact closed category. Its compact structure supplies the canonical Joyal–Street–Verity trace, the linearization is functorial, and matrix composition over makes a dagger compact closed category with finite coproducts.
Its tensor is inherited from KL, while its finite-coproduct indexing is governed by FinBij: every object remains in the normal form of Definition 3.1.
Biproducts in Perm(k). Since Perm(k) is k-linear with a zero object (the empty family), its finite coproducts are biproducts by standard semiadditivity. The source calculus introduced later does not expose biproduct injections or projections as source constructors; such maps remain available for carrier-level matrix arguments in Perm(C).
A morphism and its curry share the same underlying wiring: currying merely repartitions boundary ports. On basis morphisms this is the identity on polarized bijections; it extends -linearly to all of Perm().
Definition 3.5 (Perm(C)). Fix and let be evaluation at . Then is the coefficientwise specialization of along : it has the same objects, and its hom-spaces are obtained by applying to every coefficient.
Because is real, the evaluation preserves the involution; consequently is a -linear dagger compact closed category with tensor unit and finite biproducts . By abuse of notation we continue to write for the chosen scalar . For a finite set , write for the finite-dimensional Hilbert space with orthonormal basis ; this set-linearization notation is distinct from the polynomial ring .
Every morphism of , with and , is by definition a matrix
Writing each entry uniquely as a finite collected sum of distinct loop-free KL matchings,
gives the collected KL matrix form of ; each coefficient already contains the evaluated powers of produced by closed cycles, so loop counts are not additional basis data.
Definition 3.6 (First-order objects). An object is first-order if all its summands are pure-sign of the same polarity: for all , or for all . A morphism is first-order if its domain and codomain are first-order of the same polarity. Write for the first-order object of size .
Fix either polarity. In the positive sector there are no negative ports (the negative sector is its dual/opposite), so no new closed cycles form under composition: the -twist disappears, and composition is the usual matrix-sum formula with entry multiplication given by composition of loop-free KL matchings. For the one-port objects the matching spaces are one-dimensional, and this reduces to ordinary complex matrix multiplication.
Section 4 first assigns boundary matrices to morphisms between individual KL interfaces, then incorporates finite-family qudit addresses in fixed-width qudit–MLL matrices and uniform sequent matrices. The normal form and KL matrix-unit basis make each stage unambiguous.
4 Kelly–Laplaza Boundaries and Essential Unitarity
Boundary transport reads a Kelly–Laplaza morphism on the two polarities of its compact-name interface . A basis morphism contributes the permutation matrix of its axiom-link matching; linear combinations contribute the corresponding -linear combination, with evaluated loop factors already present in the coefficients. The type repartitions the boundary; the wiring is unchanged. On the one-port registers , this recovers ordinary complex matrices. Qudits tensored with multiplicative payloads will give the full matrices used later.
4.1 KL boundary matrices
Definition 4.1 (KL boundary matching). For signed KL interfaces , put and . If has polarized wiring , let be the canonical swap onto , and set . Write for its permutation matrix.
We read the boundary covariantly, from to : is used without inversion, and its codomain is placed in the stated -order.
The map is the same axiom-link wiring reorganized around . It is therefore square even when and have different shapes. In particular, evaluation has differently shaped source and target but a boundary consisting of straight wires. Currying likewise preserves each component matching under the canonical identification of compact-name ports (Section 3.3).
Every in has a unique KL-basis expansion . Its coefficients already include all evaluated loop factors.
Definition 4.2 (KL boundary matrix). Define
Essential Unitarity for Higher-Order Quantum Computation
Definition 4.3 (Essential unitarity). A morphism is essentially unitary if and . Write for this condition.
Every loop-free KL basis morphism is EU. A component with loop-free part and loop count has boundary matrix ; on a nonempty boundary it is EU exactly when . The empty boundary cannot detect scalars.
This boundary condition is distinct from carrier dagger-unitarity. For nonempty , the evaluation component
is EU because its boundary matrix is a permutation, but
in Perm(C).
The boundary representation also need not be injective on linear combinations. For , put
Then , whereas : at each matrix entry, one even and one odd permutation cancel. Hence is EU for every . Since and ,
so it is generally not carrier dagger-unitary. Thus EU records the induced action on the polarized port space, not the entire carrier element.
4.2 Execution and loop coefficients
Because the boundary retains external paths and absorbs cycles into coefficients, composition is governed by KL execution.
Proposition 4.4 (KL execution). For morphisms and in , the external paths determine , while , where is the number of new internal cycles.
This is the paths-and-cycles decomposition of [1, Proposition 1]; the port calculation appears in the full version of this paper. For mixed interfaces it is a geometric execution law, not multiplication of the square boundary matrices: the output partition of need not be the input partition of .
Lemma 4.5 (Dagger). For every , .
Cup-cap loops break closure: for nonempty , the unit and the composable count are loop-free and hence EU, whereas
For every nonempty X,
multiplies by . Thus EU is not closed under composition or tensor in .
5 Qudits, MLL Payloads, and Full Matrices
On a pure-sign intermediate, KL execution becomes ordinary matrix composition. Naming and polarized un-naming place a qudit with an arbitrary multiplicative payload on such pure-positive axes; this assignment is not functorial for arbitrary composition through a mixed payload. These two steps give the full matrix used by the source calculus.
5.1 Positive qudit matrices
For , write , and similarly for . Recall that and that has orthonormal basis . A morphism is therefore its ordinary coefficient matrix
Carrier dagger-unitarity and ordinary matrix unitarity coincide here.
The same formula retains a nontrivial KL matching at each matrix entry. Let for . Fix , and write
for .
Definition 5.1 (Fixed-width qudit–KL matrix). Define
The two coordinates have different roles: are qudit indices, while acts on the KL ports.
In one pure-sign sector, normal form keeps biproduct-family indices separate from KL ports. Carrier distributivity only reindexes the families; its KL components are identity matchings, so its matrix is a unitary permutation. No port is copied.
Proposition 5.2 (Fixed-width representation). For composable in the fixed -sector,
For r = 1, the matching space is one-dimensional and .
5.2 Qudits with MLL payloads
For and , use
where and . Fixed associativity and unit coherence are suppressed; name and unname are inverse.
Let ) and ) be carrier KL interfaces. For , put
These pure-positive interfaces give the canonical coefficient-one factorization
Consequently, for
there are canonical displays
These displays explain the full qudit–MLL matrix. They move the qudit index to the positive axis before the compact name is uncurried.
Let
be the canonical coefficient-one compact-structural isomorphism induced by duality, symmetry, and associativity.
Essential Unitarity for Higher-Order Quantum Computation
Definition 5.3 (Qudit-MLL carrier matrix). For , define
This is a positive first-order carrier morphism from to .
This type supports a KL basis component precisely when
Assume this balance and write the common value as . The extra 1 is the qudit's own KL port. After distribution, lies in the fixed-width sector . Its full numerical matrix is
For general linear combinations in this fixed block format, unitarity is a condition on the full block matrix; unitary constituent matchings alone do not suffice.
5.3 Uniform qudit-MLL boundaries
The preceding construction iterates over any nonempty one-sided qudit–MLL boundary. For a carrier formula generated from , and , collect its qudit rows by polarity:
For a sequent , tensor the corresponding factors and put . Write for its carrier object and . Each polarized factor is pure positive. Its uniform-row display is a fixed coefficient-one dagger isomorphism:
Here is its port width and its number of qudit-address rows; for the empty factor these are 0 and 1.
The fixed compact coherence gives a coefficient-one dagger isomorphism
This is the preceding qudit-MLL polarization applied simultaneously to all literals of the boundary.
Definition 5.4 (Qudit-MLL sequent matrix). For , define
If , its full numerical realization is
Definition 5.5 (Qudit-MLL essential unitarity). For a morphism satisfying
qudit-MLL essential unitarity means that is a two-sided unitary. For a sequent point with , it means that is a two-sided unitary.
Carrier dagger-unitarity of implies the sequent condition by Proposition 5.2.
6 The Coherent Syntax
This section defines the source category , its carrier interpretation, its unitary gates on positive quid registers, and its contextual control constructor. The qudit-MLL matrix interface is developed in Section 5; essential unitarity is stated in Section 6.5.
6.1 Why Qudit Control
Two carrier counterexamples in Perm(C) motivate the source restrictions below; the calculations appear in the full version.
For the first, put , , and , and let be the coefficient-one multiplicative basis morphism with links , , where are the positive function-output and payload ports, is the negative function-input port, and primes mark the target copy. Let exchange the two summands, put , and write for the full qudit-MLL matrix of under the canonical identification . For , the three factors of
all have unitary full matrices, yet : the composite is not essentially unitary. Arbitrary carrier- control is therefore not stable over a mixed payload, motivating explicit selector retention; the contextual constructor below also requires a positive common output, ensuring the pure-axis block form used by the compositionality and normalization arguments.
For the second, put and , let exchange the two -factors, and let be a suitable coefficient-one multiplicative basis morphism. Although is carrier dagger-unitary, for the composite is not essentially unitary: composition through the mixed interface destroys boundary unitarity. Primitive unitaries are therefore admitted on positive qudit registers, not on arbitrary multiplicative interfaces.
6.2 Raw Types and Qudit Registers
Definition 6.1 (Raw types). For , let be the positive -level qudit literal and put . Raw types are generated by . Their strict De Morgan duality is , , and . The polarity set is determined by , , and . A type is positive, negative, or mixed according as its polarity set is , , or . A positive or negative type is pure.
The source grammar is unit-free: it has no multiplicative-unit type or nullary compact constructor. The carrier category remains compact and unital. With its compact -autonomous structure, both source multiplicatives are interpreted by tensor.
Definition 6.2 (Object assignment). The raw-object assignment O is determined by
The source qudit is not a multiplicative unit: every summand of carries one positive KL port. In particular, and have equally many carrier rows but different multiplicative interfaces.
Write . For positive types, define the address set and port width recursively by
and put . The carrier normal form supplies the fixed lexicographic qudit-row display
Thus records qudit addresses, whereas each row retains all multiplicative ports.
Essential Unitarity for Higher-Order Quantum Computation
Definition 6.3 (Positive-register gates). Positive types are shape-compatible when and . For every shape-compatible pair and every unitary , introduce , subject to and . Negative register gates are their duals.
Write . For , write . Under the carrier assignment below, has ordinary coefficient matrix . Allowing to be compound supplies joint, including entangling, unitaries on without identifying that two-port type with the one-port literal .
6.3 The Category QC
The remaining constructor realizes a synchronized family with one qudit selector. For a finite raw context , write
using the fixed association convention.
Let be the formulas generated from the qudit literals by , and strict De Morgan duality, with and . Unit occurrences remain visible in these formulas; the raw types are exactly the unit-free ones. We use the typed-component presentation of [5]; the category-labelled construction of [17] is its ordinary-category special case.
Definition 6.4 (Contextual qudit control). For , let be the least family of finite typed terms generated by the unital symmetric *-autonomous term formers, the positive-register gates, and
Put .
Let be the least typed congruence, closed under every term former, that contains the symmetric -autonomous equations, the register equations, and the following relations. For
impose
For , let be the permutation unitary defined by , and impose
For shape-compatible positive and unitaries , also impose
where the block sum uses the fixed lexicographic order on and .
The last relation fixes the intended overlap between contextual control and compound-register gates. In particular, uniformity gives
this is selector-tensor compatibility, not arbitrary tensoriality of the gate presentation. The positive-codomain restriction keeps the controlled output on a pure axis.
Definition 6.5 (The coherent quantum core ). The objects of are the raw types. A term is raw when every formula in its derivation, including every control premise and composition intermediate, is a raw type. Writing RawTerm(A,B) for these terms, for raw types A,B, is the set of -equivalence classes in Term(A,B) that contain a raw representative:
Thus is the image of the raw term calculus under the single global ambient congruence, rather than all equivalence classes between raw objects. Raw representatives are closed under identities, composition, tensor, , and duality. The standard unit-free derivations of
show that currying and uncurrying also restrict to . We call this inherited multiplicative, dual, and closed structure unit-free *-autonomous. The full version gives the finitary presentation and the unit-free closed maps.
For fixed , Equations (6.3) and (6.4) make , functorial on -tuples of parallel morphisms between positive types, and Equation (6.6) is its selector covariance: permuting the branches by is conjugation by . Equation (6.5) extends this block action to shared inputs . Since control retains one selector port whereas pointwise tensor produces two, the assignment is not tensor-preserving.
Put . Since , the carrier normal form supplies, for every raw , the selector-row display
For positive , let be the canonical coefficient-one lexicographic flattening. The recursive row convention gives
Regard Perm(C) as *-autonomous via its dagger compact structure.
Definition 6.6 (Carrier assignment). Extend structurally to the ambient objects and interpret the structural arrows canonically. For an ambient term , write for its carrier. For shape-compatible positive and unitary , assign the register gates by
Negative gates receive the dual carrier maps. For , set
Formula (6.10) keeps the qudit port in every branch; only its address selects a branch. It is therefore not the arbitrary carrier direct sum excluded by the first counterexample of Section 6.1.
Theorem 6.7 (Carrier functor). The carrier assignments on ambient terms respect and therefore induce uniquely a functor . This functor preserves the inherited symmetric multiplicative, dual, and closed structure.
For , set
This is well defined by Theorem 6.7.
Removing the units from a *-autonomous presentation is subtler than deleting two objects [16]; the full version develops the unit-free closed structure.
Essential Unitarity for Higher-Order Quantum Computation
6.4 An Applied Contextual Quantum Switch
Fix a positive raw type , and put . Define
and set
Thus and . The applied switch is
Its curried form has type
This realizes, within the present essentially-unitary fragment, the qcase quantum switch of Barsse, Péchoux, and Perdrix [4], with an arbitrary positive payload . In selector-row coordinates, the two diagonal blocks are the two causal orders; a unitary on coherently superposes them.
Thus the positive-output discipline still realizes coherent control of causal order: the shared higher-order arguments occur in both branches, while the selector is retained in the codomain .
6.5 Essential Unitarity of the Coherent Syntax
Section 5 assigns a carrier matrix to every nonempty qudit-MLL boundary and a full numerical matrix to every balanced one. A source morphism is essentially unitary when its full matrix is dagger-unitary. This subsection states the main theorem; the complete proofs appear in the full version of this paper.
Throughout, denotes the tensor unit of . For a source sequent , put . In every boundary datum imported from Definition 5.4, the subscript abbreviates the carrier sequent , and for a source type we write . For , let
Thus
If and are positive, unit coherence identifies with ; if and with positive, it identifies with the compact transpose . For every in , the positive and negative widths of this boundary agree and are at least 1, so the fixed-width numerical realization of Definition 5.4 applies. Write for the full qudit-MLL matrix. By definition, means that is dagger-unitary.
Theorem 6.8 (Essential unitarity of ). For every in , the polarized carrier matrix depends only on and satisfies
Consequently is dagger-unitary, so .
The proof has four steps. A source expression is translated to an administrative expression with the same compact-name carrier point. A categorical normalization replaces its compositions at mixed intermediate types by carrier-equal compositions through pure, meaning one-polarity, intermediate types. On pure interfaces, the qudit-MLL matrix preserves composition and dagger. Finally, multiplicative base maps, positive-register gates, and contextual control contribute, respectively, coefficient-one matching matrices, unitary qudit matrices, and synchronized block-diagonal matrices.
7 One-Slot Supermaps
A one-slot context uses its argument once along every selected control branch. Composition and tensor place fixed programs around that slot; contextual control chooses among a synchronized family without copying its input.
Fix a slot and a class of well-typed constant programs. Resource-linear contexts are generated from by composition and tensor with constants on either side, and by , with every expression well typed. In the control clause, for a positive ; the contexts have a common positive codomain , and the resulting context has type . The grammar is closed under the typed currying and uncurrying bijections of , each preserving its single slot.
Every well-typed resource-linear context , with , defines , , and admits a -linear carrier map
satisfying for every in ; every is essentially unitary.
The source calculus realizes the two unitary stages of an exposed-memory one-slot dilation. Memory initialization and partial trace remain in the external Hilbert-space/channel semantics.
For a register , write for its external Hilbert space. Channels are completely positive trace-preserving maps , and a deterministic one-slot supermap is a completely CP-preserving linear map sending channels to channels [7].
Theorem 7.1 (Internal realization of equal-ratio one-slot supermaps). Let and for , with , and let be a deterministic one-slot supermap from channels to channels . Then, for some registers and , there are morphisms in
whose carriers are unitary extensions of the two isometries in a Chiribella realization of . For every in ,
is a morphism of and is essentially unitary.
The stage construction does not require equal endpoint dimensions. By Theorem 6.8, however, forces ; the equal-ratio condition then forces .
For in between positive types, boundary balance gives . Define its full fixed-width matrix by
Proposition 5.2 gives , and Theorem 6.8 makes unitary. For , identify with . For a unitary , write .
Corollary 7.2 (External readout of the internal lift). For the realization of Theorem 7.1 and every in , the full matrix factors as with . There is a pure state on , independent of , such that, for every such and every density operator on , .
The argument isolates the source discipline that makes essential unitarity possible: multiplicative structure, positive-register gates, and contextual qudit control reduce to dagger-unitary matrices composed through pure interfaces. An internal treatment of measurement, partial trace, and mixed-state semantics is left to future work.
Essential Unitarity for Higher-Order Quantum Computation
16
References
[1] Samson Abramsky (2005): Abstract scalars, loops, and free traced and strongly compact closed categories. In: Proceedings of the First International Conference on Algebra and Coalgebra in Computer Science, CALCO'05, Springer-Verlag, Berlin, Heidelberg, p. 1–29, doi:10.1007/11548133_1.
[2] Samson Abramsky & Bob Coecke (2004): A categorical semantics of quantum protocols. In: Proceedings of the 19th Annual IEEE Symposium on Logic in Computer Science (LICS '04), IEEE Computer Society, pp. 415–425, doi:10.1109/LICS.2004.1319636.
[3] Mateus Araújo, Fabio Costa & Časlav Brukner (2014): Computational Advantage from Quantum-Controlled Ordering of Gates. Physical Review Letters 113(25), p. 250402, doi:10.1103/PhysRevLett.113.250402. arXiv:1401.8127.
[4] Kathleen Barsse, Romain Péchoux & Simon Perdrix (2026): Higher-Order Programs with Indefinite Causal Orders: A Linear Approach to Coherent Control of Quantum Processes, doi:10.48550/arXiv.2607.09534. arXiv:2607.09534.
[5] R. F. Blute, J. R. B. Cockett, R. A. G. Seely & T. H. Trimble (1996): Natural deduction and coherence for weakly distributive categories. Journal of Pure and Applied Algebra 113(3), pp. 229–296, doi:10.1016/0022-4049(95)00159-X.
[6] Giulio Chiribella, Giacomo Mauro D'Ariano & Paolo Perinotti (2008): Quantum Circuit Architecture. Phys. Rev. Lett. 101, p. 060401, doi:10.1103/PhysRevLett.101.060401.
[7] Giulio Chiribella, Giacomo Mauro D'Ariano & Paolo Perinotti (2008): Transforming quantum operations: Quantum supermaps. Europhysics Letters 83(3), p. 30004, doi:10.1209/0295-5075/83/30004.
[8] Giulio Chiribella, Giacomo Mauro D'Ariano & Paolo Perinotti (2009): Theoretical framework for quantum networks. Phys. Rev. A 80, p. 022339, doi:10.1103/PhysRevA.80.022339.
[9] Giulio Chiribella, Giacomo Mauro D'Ariano, Paolo Perinotti & Benoit Valiron (2013): Quantum computations without definite causal structure. Phys. Rev. A 88(2), p. 022318, doi:10.1103/PhysRevA.88.022318.
[10] J. R. B. Cockett & R. A. G. Seely (1997): Weakly distributive categories. Journal of Pure and Applied Algebra 114(2), pp. 133–173, doi:10.1016/0022-4049(95)00160-3.
[11] Bob Coecke & Ross Duncan (2008): Interacting Quantum Observables. In Luca Aceto, Ivan Damgård, Leslie Ann Goldberg, Magnús M. Halldórrsson, Anna Ingólfsdóttir & Igor Walukiewicz, editors: Automata, Languages and Programming, Springer Berlin Heidelberg, Berlin, Heidelberg, pp. 298–310, doi:10.1007/978-3-540-70583-3_25.
[12] Bob Coecke & Aleks Kissinger (2017): Picturing Quantum Processes: A First Course in Quantum Theory and Diagrammatic Reasoning. Cambridge University Press, doi:10.1017/9781316219317.
[13] Bob Coecke, Dusko Pavlovic & Jamie Vicary (2013): A new description of orthogonal bases. Mathematical Structures in Computer Science 23(3), pp. 555–567, doi:10.1017/S0960129512000047. arXiv:0810.0812.
[14] James Hefford & Matt Wilson (2024): A Profunctorial Semantics for Quantum Supermaps. In: Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS '24), ACM, pp. 43:1–43:15, doi:10.1145/3661814.3662123. arXiv:2402.02997.
[15] Kengo Hirata & Takeshi Tsukada (2026): Causality in Pure Quantum Computation with Quantum Control. In: 41st Annual Symposium on Logic in Computer Science (LICS 2026), Leibniz International Proceedings in Informatics (LIPIcs) 380, Schloss Dagstuhl–Leibniz-Zentrum für Informatik, pp. 57:1–57:28, doi:10.4230/LIPIcs.LICS.2026.57.
[16] Robin Houston, Dominic J. D. Hughes & Andrea Schalk (2005): Modelling linear logic without units (preliminary results). arXiv:math/0504037.
[17] Dominic J. D. Hughes (2012): Simple free star-autonomous categories and full coherence. Journal of Pure and Applied Algebra 216(11), pp. 2386–2410, doi:10.1016/j.jpaa.2012.03.020.
[18] G.M. Kelly & M.L. Laplaza (1980): Coherence for compact closed categories. Journal of Pure and Applied Algebra 19, pp. 193–213, doi:10.1016/0022-4049(80)90101-2.
[19] Aleks Kissinger & Sander Uijlen (2019): A categorical semantics for causal structure. Logical Methods in Computer Science 15(3), doi:10.23638/LMCS-15(3:15)2019. arXiv:1701.04732.
[20] Miguel L. Laplaza (1972): Coherence for distributivity. In Saunders Mac Lane, editor: Coherence in Categories, Lecture Notes in Mathematics 281, Springer-Verlag, pp. 29–65, doi:10.1007/BFb0059555.
[21] Ognyan Oreshkov, Fabio Costa & Časlav Brukner (2012): Quantum correlations with no causal order. Nature Communications 3, p. 1092, doi:10.1038/ncomms2076. arXiv:1105.4464.
[22] Peter Selinger (2007): Dagger compact closed categories and completely positive maps. Electronic Notes in Theoretical Computer Science 170, pp. 139–163, doi:10.1016/j.entcs.2006.12.018.
[23] Will Simmons & Aleks Kissinger (2022): Higher-Order Causal Theories Are Models of BV-Logic. In: 47th International Symposium on Mathematical Foundations of Computer Science (MFCS 2022), Leibniz International Proceedings in Informatics (LIPIcs) 241, Schloss Dagstuhl–Leibniz-Zentrum für Informatik, pp. 80:1–80:14, doi:10.4230/LIPIcs.MFCS.2022.80. arXiv:2205.11219.
[24] Matt Wilson (2026): Higher-order circuits. arXiv:2602.18701.
[25] Matt Wilson & Giulio Chiribella (2021): Causality in Higher Order Process Theories. Electronic Proceedings in Theoretical Computer Science 343, pp. 265–300, doi:10.4204/EPTCS.343.12. arXiv:2107.14581.
[26] Matt Wilson & Giulio Chiribella (2022): A Mathematical Framework for Transformations of Physical Processes. arXiv:2204.04319.
[27] Matt Wilson & Giulio Chiribella (2026): Monoidal su-categories. arXiv:2608.15885.
[28] Matt Wilson, Giulio Chiribella & Aleks Kissinger (2026): Quantum Supermaps are Characterized by Locality. Quantum 10, p. 2013, doi:10.22331/q-2026-03-09-2013. arXiv:2205.09844.