Manuscript Offprint
arXiv:2610.40573What Can Be Computed with Indefinite Causal Structure?
Abstract
Can quantum computation become more powerful when operations do not need to follow a definite causal order? We study this question in the process matrix formalism of Oreshkov et al. (Nature Communications, 2012), which allows quantum operations to be connected without a fixed global order. In the computational model, a quantum circuit succinctly describes a process matrix, and the algorithm is given access to its generated channel, with computational cost measured by the size of the generating circuit.
We give polynomial-time algorithms in two settings. First, general process matrix computation suffices to solve every problem in NP. The valid processes used by our algorithm satisfy the purification postulate of Araújo et al. (Quantum, 2017), and their generated channels are unitary, although their generating circuits are not. Second, requiring the process matrices themselves to be pure, we give a polynomial-time algorithm for unique-sink orientation, a general problem capturing several longstanding computational problems in optimization. Our unitary generators are constructed explicitly and efficiently. Assuming that unique-sink orientation has no quantum polynomial-time algorithm, our result shows that indefinite causal order can provide computational power beyond BQP within the process matrix formalism, even while preserving unitarity.
Contents
1 Introduction 1
1.1 Results 3
1.2 Related Work 5
2 Technical Overview 6
2.1 General process matrix computation and NP 7
2.2 Purifiable versus pure processes 9
2.3 Pure processes and unique-sink orientation 10
3 Preliminaries 13
3.1 Computational Complexity Theory 14
3.2 Quantum Information Theory 15
4 Process Matrix Formalism 17
4.1 A Computational Model based on Process Matrices 19
4.2 Existing and New Complexity Classes 23
5 Quantum Computation with Efficient General Process Matrices 26
5.1 Generating a unitary channel from a generator of its Choi state 26
5.2 Finding a unique satisfying input 31
5.3 Solving NP 32
5.4 Inverting an efficiently computable permutation 33
6 Quantum Computation with Efficient and Pure Process Matrices 34
6.1 A unitary generator for the USO Oracle 34
6.2 Connections to physical implementation 39
A Supplementary Proofs 43
A.1 The USO characterization and validity of our construction 43
The quantum circuit model, based on standard quantum mechanics, allows superpositions of physical states, but the circuit still specifies a causal order (formally, a partial order) between the execution of its gates. It is therefore natural to ask whether relaxing the latter requirement can change the computational power of the model. To make this question meaningful, however, one needs to specify which connections between quantum operations are allowed, why they define consistent computations, and how to measure their computational cost.
Process matrices: local quantum mechanics without a fixed global order. Oreshkov, Costa and Brukner [OCB12] introduced the process matrix formalism (PMF), which has since become a central framework for studying indefinite causal order. The formalism separates two assumptions. The first is that ordinary quantum mechanics governs information processing within each local spacetime region, and the second is that globally, these regions are connected according to a definite causal order. In the PMF, these regions are modeled as laboratories, each receiving a quantum system, performing an operation, and producing an output system. A process matrix is an algebraic object describing the correlations and possible information flow between these laboratories, without imposing a definite causal order on one hand, but also not violating local quantum mechanics.
Let us explain what are process matrices in the language of computer science. A joint probability distribution describes correlations between classical registers, while a joint density matrix describes quantum correlations between quantum registers, including entanglement. These correlations, classical or quantum, are between physical systems. Process matrices extend this to correlations between quantum operations. To elaborate, an ordinary quantum circuit implements a completely positive trace-preserving (CPTP) map from input registers to output registers. A joint density matrix, in contrast, can be thought of as a snapshot of registers occupying different spatial regions: it specifies their joint state, but not their evolution. This motivates viewing density matrices as describing quantum correlations between systems across space at a given time, and process matrices as generalized states describing correlations between operations across space and time.
Both density matrices and quantum channels arise naturally as special cases of process matrices. When the laboratories receive quantum systems but send none out, the process matrix reduces to a joint density matrix describing their input systems. When one laboratory’s output is sent to another laboratory’s input, an ordinary quantum channel describes this connection. The PMF includes both situations, while also allowing correlations between local operations that cannot be explained by a definite global causal order [OCB12].
A bit more formally, consider local laboratories applying quantum channels . A process matrix describes a transformation from the local operations to a global operation . This transformation depends linearly on each local operation. We require to be a quantum channel for every choice of the local channels, including operations involving auxiliary registers whose inputs may be entangled across laboratories or with an external input [CDPV13, AFNB17]. This requirement allows us to describe how local quantum operations are combined, without either thinking of specific channels or prescribing a definite causal order between them.
Purification and physicality. The evolution of a closed quantum system is unitary, and hence preserves information. This reversibility is a fundamental feature of quantum mechanics. General quantum channels need not be reversible, but that is only since they may describe a part of a larger system. Namely, any quantum channel can be implemented by initializing auxiliary registers, applying a unitary transformation on the larger system, and discarding some output registers – this process is called purification. Thus, information that appears to be lost may remain in registers that are no longer observed. The PMF as was initially defined by [OCB12] does not guarantee an analogous reversibility for transformations corresponding to process matrices.
Araújo, Feix, Navascués and Brukner [AFNB17] later proposed a purification postulate to impose such a requirement. Specifically, we call a process pure if every choice of local unitary operations , including operations involving auxiliary registers, induces a global unitary transformation . A process is called purifiable if it can be obtained from a larger pure process by fixing additional inputs to pure states and discarding additional outputs. The postulate requires physically realizable processes to be purifiable. This is indeed a nontrivial restriction: the original process of [OCB12], whose correlations cannot arise under any definite causal order, even allowing classical uncertainty about that order, is not purifiable [AFNB17].
From process matrices to computation. Indefinite causal order already offers advantages in information processing tasks. The quantum switch [CDPV13], which coherently controls the order of two operations, already provides advantages using a pure process [AFNB17]. For example, it can determine with certainty whether two unknown unitary gates commute or anticommute using each only once, which is impossible for fixed-order circuits under the same query restriction [Chi12]. It also enables protocols that use exponentially less communication than one-way quantum protocols [GFAB16], and allows two channels that individually erase all input information to transmit classical information when applied in a superposition of orders [ESC18]. These results do not settle whether pure, or even general process matrices, enable efficient computation beyond BQP.
Araújo, Guérin and Baumeler [AGB17] formalize process matrix computation using uniformly generated, polynomial-size ordinary quantum circuits C with designated output registers connected back to input registers. In this work we call such a circuit, together with its designated connections, a process matrix generator when the connected transformation is a quantum channel for every choice of local channels on the individual connections, including auxiliary registers as above. The computational model grants access to the resulting channel, with cost measured by the size of C.
This computational model was shown [AGB17] to admit a description in terms of a subclass of postselection closed timelike curves (CTCs), represented using postselected teleportation [LMGP 11a]. To elaborate, general postselection can introduce an input-dependent normalization, making the induced evolution nonlinear. In contrast, process matrix validity imposes a strong restriction: the postselection probability must be independent of both the input state and the local operations, preserving linearity. Thus, [AGB17] define the class corresponding to polynomial-time process matrix computation as , standing for BQP with access to linear postselection CTCS. Importantly, corresponds to process matrix computation without asking for the purification restriction. Pure PMGs (Definition 4.13) further restrict this to unitary CTCs: the generator is unitary, and so is the connected evolution for every choice of local unitary operations.
An efficient process matrix generator circuit gives a short description of a process, but the computation obtained by its process matrix may be much harder to implement. Postselected teleportation illustrates this difficulty: its success probability can be exponentially small, even when the connected channel is unitary. Araújo, Guérin and Baumeler [AGB17] showed that lies between BQP and PP, leaving open whether the first inclusion is strict. We explore this question, including under the further requirement that the process itself be pure: can indefinite causal structure enable computation beyond BQP while preserving the reversibility of quantum mechanics?
1.1 Results
We investigate quantum computation with indefinite causal structure, considering both purifiable processes that are not pure, and the further restriction to pure processes. Our work has two main parts.
-
First, we show that polynomial-time process computation can solve every problem in NP. Our constructed process is furthermore purifiable (Definition 4.17), but not pure (Definition 4.13).
-
Second, we give a polynomial-time algorithm for the unique-sink orientation problem, using pure processes whose unitary generators are constructed explicitly and efficiently.
Hardy [Har09, Section 4.3] asked whether indefinite causal structure can enable efficient computation beyond BQP. Within the process matrix framework, our results answer this question affirmatively, even when restricted to pure processes, assuming that USO has no quantum polynomial-time algorithm. These results also clarify the role of linearity in postselection closed timelike curves, and distinguish between purification as a proposed condition for physicality, and a potential condition for efficient realization.
As part of our work we also extend the computational framework of [AGB17]. For a promise problem, the generating circuit constructed from the input may be guaranteed to define a valid process only when the promise holds. Our definition also covers inputs that do not satisfy the promise: if the circuit does not define a valid process, the algorithm is given access to an arbitrary quantum channel, and must remain correct for any such channel. On promised inputs, the computation is unchanged. We give the formal definitions in Section 4.
Part I: Linear CTCs, purification, and NP. The computational power of postselection CTCs has been closely associated with their nonlinear evolution [LMGP 11a, Section V], and quantum computation with unrestricted postselection CTCs has exactly the power of PP [Aar05]. The restriction to linear CTCs was motivated, in part, by the possibility that removing nonlinearity would exclude such computational power [AGB17, Section III]. We show that linearity alone does not provide this restriction.
Theorem 1.1. Let as in Definition 4.10. Then,
The containment continues to hold even given two more conditions: the valid generation queries are required to describe purifiable processes (Definition 4.17) whose generated channels (Definition 4.8) are unitary.
In our construction, even though the circuit generator is purifiable and the generated channel is unitary, the circuit generating the process is not unitary, which makes the process not pure (Definition 4.13). We discuss how this can be interpreted in our Technical Overview (see Section 2.2).
The main construction solves unique-witness search. Given a Boolean circuit with exactly one satisfying input , we construct in classical polynomial time a PMG whose generated channel swaps between and and fixes the other computational basis states. Thus, one use of the generated channel obtains . To solve all of NP, where the input circuit does not necessarily have exactly one witness, we use the Valiant-Vazirani reduction [VV85] and verify every candidate witness before accepting.
We also show how to use general process computation for coherent permutation inversion. Given a classical circuit computing a permutation , we efficiently construct a PMG whose generated channel implements , including on superpositions and inputs entangled with other registers. The unique-witness and permutation-inversion constructions are given in Section 5.
Part II: Pure processes solve unique-sink orientation. We next require the generating circuits themselves to be unitary and the resulting processes to be pure and polynomial-time. We show an algorithm in this framework solving the unique-sink orientation problem (USO), a well-studied problem arising in optimization [SW01]. An instance specifies the directions of the edges of an -dimensional Boolean cube, with the promise that every face has exactly one sink. The orientation is given succinctly by a Boolean circuit that, on input a vertex, outputs the directions of its outgoing edges. The task is to find the sink of the entire cube. The most efficient known quantum algorithms for USO take time [Bac17]. We prove the following.
Theorem 1.2 (Informal; See Theorem 6.2). The problem USO (Definition 6.1) can be solved in polynomial time using pure process computation (Definition 4.15). The algorithm uses the generated channel once and succeeds with probability 1.
More specifically, our construction generate access to a coherent inversion of the USO function. Write for the string whose i-th bit indicates whether the edge in direction i leaves x. The USO property implies that s is a permutation (Lemma 6.1), and our generated unitary implements
The sink is obtained by setting .
Unique-sink orientation and related problems. The study of USO connects decades of work in optimization, game theory, and formal verification [SW01, JS08]. Classical polynomial-time reductions to USO cover rational P-matrix linear complementarity, simple stochastic games, discounted and mean-payoff games, parity games, one-dimensional energy games, and full modal -calculus model checking [GR05, JS08, FJS09, BCD 11, Wil01]. These connections give the apparently simple task of finding a sink several different meanings. For example, stochastic games have been used to design controllers for autonomous transport and energy management [KPW18]. In cybersecurity, this includes finding optimal defensive strategies to preserve service availability against an adversary seeking to disrupt it [DKSS14]. Model checking makes it possible to verify properties of software through a formal model, even when that software’s behavior is too complex to understand by inspecting its code [CGK 18]. For these problems, general polynomial-time solvability remains open in both classical and quantum computation.
Technical contributions: Constructing valid process matrices. Beyond the generating circuits themselves, our two main results introduce techniques in quantum information theory for proving process validity. For general processes, we show how an ordinary quantum circuit preparing the Choi state of an isometry can be turned into a process matrix generator implementing that isometry (Lemma 5.1). This gives the construction underlying our NP result. For pure processes, our statement is slightly more general than the USO algorithm. We construct explicit polynomial-size pure process matrix generators for a family of quantum changes of basis. Each basis vector is obtained from a computational-basis state by applying single-qubit unitaries, each chosen between two options. The binary choices depend efficiently on x, and furthermore satisfy a combinatorial condition that guarantees process validity (Theorem 6.1). This combinatorial condition is exactly a characterization of unique-sink orientations, which is how the connection to USO comes up in the first place.
Directions for physical implementation. We also relate the structure of our pure generators to existing circuit simulations and quantum-switch implementation proposals (Section 6.2). In particular, our construction includes a product basis for which a quantum-switch measurement protocol and a photonic implementation proposal are known. Efficient physical realization for arbitrary USO instances remains open.
Note that the overall number of faces is .
1.2 Related Work
Process matrices and information processing. The process matrix formalism was introduced by Oreshkov, Costa and Brukner [OCB12] to describe quantum correlations without assuming a definite global causal order. A sequence of works explored the information-processing advantages available in this setting. Chiribella [Chi12], Araújo, Costa and Brukner [ACB14], and Renner and Brukner [RB22] demonstrated query advantages for tasks involving unknown quantum operations. In communication, Guérin et al. [GFAB16] gave a protocol using exponentially less communication than any one-way quantum protocol for the same task. Other communication advantages include transmitting classical information through completely depolarizing channels and perfect quantum communication using certain channels with zero quantum capacity [ESC18, CBB 21]. Applications also include quantum metrology and refrigeration [ZYC20, FV20]. More recently, Abbott, Mhalla and Pocreau [AMP24, AMP25] studied Boolean-function query complexity using general processes, obtaining advantages in both the error achievable with a fixed number of queries and exact query complexity. Bavaresco et al. [BKM 25] proved an exponential query lower bound for simulating the quantum switch: for arbitrary unknown n-qubit channels, a deterministic exact simulation that calls one channel only once must call the other exponentially many times. These query results concern access to unknown operations. For computation with explicitly described circuits, Araújo, Guérin and Baumeler [AGB17] introduced the computational framework on which we build. They also constructed processes that violate causal inequalities but admit ordinary quantum-circuit simulations with constant overhead. Finally, Araújo, Feix, Navascués and Brukner [AFNB17] defined pure and purifiable processes and proposed purifiability as a necessary condition for physical realizability.
Computational models of closed timelike curves. Deutsch [Deu91] introduced a model of CTCs in which the state travelling around a loop must be a fixed point of its evolution. Aaronson and Watrous [AW09] characterized the power of polynomial-time classical and quantum computation in this model as PSPACE. Another model uses postselected teleportation to connect a system’s output back to its input [LMGP 11b, LMGP 11a]. Results on quantum computation with postselection and its implementation using CTCs establish exactly the power of PP for unrestricted postselection CTCs [Aar05, BW12]. Both models generally induce nonlinear evolution.
Logical consistency and reversibility. Baumeler and Wolf [BW17, BW18] studied classical circuits with feedback under the requirement that, for each input, there is exactly one assignment of values to the wires consistent with the gates. They characterized the decision problems solvable in their polynomial-time non-causal circuit model as . They also obtained this class as an upper bound for classical deterministic processes, where consistency must hold under every choice of local operations. Baumeler et al. [BCR 19] further showed that every valid deterministic classical process admits a reversible extension. They distinguished classical reversibility from validity under arbitrary local quantum operations, which requires a separate argument for a pure quantum process.
Experimental evidence and physical realizability. The physical realizability of general process matrix computation is unknown. Even for the standard quantum circuit model, constructing a scalable quantum computer remains an outstanding challenge. Nevertheless, several experiments support indefinite causal order between quantum operations. Photonic implementations of the quantum switch have been certified against classical mixtures of definite orders , and its full process matrix has been reconstructed [AQWR24]. More recent experiments reported violations of Bell-like inequalities for causal order . These conclusions rely on assumptions about the devices and their spacetime arrangement, and experimental loopholes may remain. The experiments concern the quantum switch and do not establish the physical realizability of general or even pure process matrices.
These are usually referred to as Deutschian CTCs in the literature.
These are usually referred to as postselection CTCs in the literature.
2 Technical Overview
In this section we describe the main ideas behind our results. Before technical details, we recall how to formalize computation with process matrices.
How to compute with process matrices. In the introduction we described a process matrix as specifying quantum correlations between local quantum operations. To use such a process for efficient computation, we need a succinct description of it. In our model, this description is an ordinary quantum circuit. For ease of presentation, we first consider unitary circuits, although the same approach applies to general quantum circuits.
Consider a unitary circuit acting on qubits. We call its first single-qubit input and output registers the feedback registers, denoted , and denote the remaining registers by . For the moment, think of as a static diagram, rather than a computation being executed. Its gates and wires describe connections between the input and output registers. We will use this entire diagram to specify how local operations at the feedback registers are connected to one another and to the remaining registers.
How to prove validity. At this point we can consider the interpretation in terms of laboratories. The circuit (or more precisely the pair ) defines the correlations between the laboratories. The PMF says that if is a PMG, then whatever operations performed in the laboratories, without causal order, the rest of the system will continue to behave like a quantum channel.
Let us explain it more carefully. Each laboratory performs an operation at one of the feedback registers. receives the output of and returns a system to its input. Furthermore allow each to act also on an auxiliary input and produce an auxiliary output . Connect the output of each feedback register back to its input through , leaving and all auxiliary registers external. The resulting transformation, denoted , takes an input on , and produces an output on , . We require it to be a quantum channel for every choice of local quantum channels and auxiliary registers. In particular, the inputs may be entangled across laboratories, with , or with an external reference. As said, with satisfies this requirement we call it process matrix generator (PMG, Definition 4.8).
The generated channel. For the computation itself, we set all the local operations to the identity and use no auxiliary registers. Each feedback output is then connected directly to its corresponding input, leaving a transformation on Q. We call this the generated channel and denote it by .
For a unitary circuit , there is a simple expression for this connection (see Lemma 4.1 for formal statement). Writing for its unitary matrix and , we have
The partial trace here acts on the matrix itself: it connects the feedback input and output indices. It does not mean executing and then discarding the feedback registers from the resulting state. For a unitary , if is a valid PMG, then is unitary. In fact, a valid PMG with a unitary generating circuit is pure (Definition 4.13): every choice of local operations that are guaranteed to be unitary, including operations on auxiliary registers, gives a global unitary transformation.
For a valid PMG D, the model gives us access to , with cost measured by the size of C. This is where the opportunity for a jump in computational power: a small generating circuit can describe a channel that may be difficult to implement by an ordinary quantum circuit. Our constructions therefore have two parts. We design a circuit whose feedback connections give the transformation we want, and then prove that the circuit remains valid for every choice of local operations.
2.1 General process matrix computation and NP
The main quantum-information result behind our NP algorithm is a construction that turns a circuit preparing a Choi state into a process matrix generator for the corresponding channel. We first explain this construction, and then show how to use it to solve NP.
For an n-qubit unitary V, its Choi state is
One can think of this state as a superposition of inputs together with their corresponding outputs. The intuition is that a circuit that generates gives a succinct description of the channel , however, this description is "not accessible" – it is unclear how to execute the action of , using . Here, we show that general process matrices allow this seemingly inaccessible information to be extracted. Our construction gives the following statement, presented here for unitaries.
Theorem 2.1 (Informal; see Lemma 5.1). Given a quantum circuit preparing , there is a classical polynomial-time algorithm that constructs a PMG whose generated channel applies V.
From a Choi state to a channel. Let an -qubit state and recall what happens when we use for teleportation. For each , we perform a Bell-basis measurement on the -th input qubit and the -th qubit of the first half of . Together, these measurements give a uniformly random outcome . The remaining register (what used to be the second part of the register containing ) contains , where is the Pauli operator associated with and . Thus, the outcome gives exactly what we want, but its probability is only .
We construct a generating circuit with single-qubit feedback input registers and external input qubits containing the state to which we want to apply . Its outputs likewise consist of feedback qubits and external qubits. The idea is to arrange the feedback connections so that only the teleportation outcome exists in the generated channel.
The circuit first measures its feedback input registers in the computational basis, obtaining . It then prepares in fresh auxiliary registers and performs the teleportation procedure on the external input and the first half of , obtaining . The circuit then swaps the second half of into the external registers, which now contain , and sets the feedback output to the computational-basis state . The remaining registers are discarded. When each feedback output is connected directly to its input, the two strings must agree. This implies
If is nonzero, at least one feedback bit is flipped, so that branch cannot contribute to the connected transformation. If , every value of is allowed, and the operation on the external input is .
The normalization also works out exactly. Each value of contributes the channel with weight , and there are possible values of . Adding these weights gives the desired channel, without any input-dependent normalization.
Why this is a valid process. So far, we have connected each feedback output directly to its input, in other words, we know that if this is a valid process matrix, it will give us the channel we want. The main technical part is proving that C correctly describes a quantum correlation in the PMF, namely, that its derived operator is a valid process matrix. Formally, we need to argue that the transformation must remain a quantum channel when arbitrary local operations are inserted into the feedback slots. Our construction actually satisfies a stronger condition. We can allow a single quantum channel to act jointly on all the feedback qubits, together with arbitrary auxiliary registers. As we explain later, this stronger validity property also guarantees that our process is purifiable. Let A be an arbitrary quantum channel acting on the 2n feedback qubits, possibly together with auxiliary registers.
We do not go into detail about the full proof, but in a nutshell, explicitly measuring the feedback registers inside the generating circuit C helps is the key to our validity proof. The measurement is used in the following way: different measurement outcomes contribute as separate branches, rather than interfering with one another. In a branch with teleportation outcome j, the external input undergoes the unitary , while the inserted channel A determines the operation on the auxiliary registers. When checking trace preservation, the unitary cancels with its adjoint. We are therefore left with showing that the operations induced by A on the auxiliary registers, summed over all measurement branches with their corresponding weights, preserve the trace. We show this using the fact that A is a valid quantum channel and thus trace-preserving.
To see why the sum over branches preserves the trace, write the feedback output as . Summing over is the same as summing over all pairs . For each fixed input to the inserted channel , we are therefore summing over all its possible returned values and all its branches. Since is trace-preserving, the corresponding Kraus operators satisfy the completeness relation: the sum of each operator's adjoint times itself is the identity on the auxiliary input. Finally, summing over the choices of cancels the teleportation factor . This proves validity, including on entangled inputs. Lemma 5.1 gives the full calculation.
Using the construction to solve NP. We first recall that the Valiant–Vazirani reduction [VV85] transforms a satisfiable Boolean circuit into a different formula with exactly one satisfying input, with inverse-polynomial probability. It also preserves non-satisfiability of formulas (see Theorem 3.1). This suggests our approach to solving NP, by solving SAT: assume momentarily we could take care of unique-witness finding. Then, given a SAT formula, repeat the VV reduction polynomially many times independently, use our process matrix algorithm to search for a witness in each resulting instance, and verify every returned candidate witness against the VV-reduced formula. If our unique-witness finder works, then whenever any reduced instance has a unique witness, our construction will find it. On the remaining instances, whatever channel is returned, an incorrect candidate cannot pass the final classical check.
We therefore focus on unique-witness search. We are given a Boolean circuit with exactly one satisfying input , and would like to find . For simplicity, assume that ; we can ensure this by adding one input bit and requiring it to be 1 for verification to pass. Next, consider the unitary that exchanges and , and fixes every other computational-basis state. If we had access to , finding the witness would be immediate by applying it to . However, the direct way to construct a circuit for uses the very string we are trying to find. The theorem above gives us another approach: prepare its Choi state using only the verifier , and turn this preparation into a PMG whose generated channel applies .
Generating the Choi state of . For , the Choi state is
Almost all terms have the simple form . Only two terms are different, and we can recognize when to produce them by checking .
Start with a uniform superposition over pairs . If , , and , write into an output register. If , write when , and when
We later discuss whether the central role of measurement in this proof points to an artificiality of the model, when generating circuits are allowed to be non-unitary.
Recall that A acts on both the feedback registers and its auxiliary registers. Once the feedback connections are closed, its auxiliary registers remain part of the external input and output.
. Conceptually, we mark these branches as successful. There are overall branches and successful branches: one for each , and two for . They produce exactly the terms of , with equal amplitudes.
| Condition on x | b | First output | Second output |
|---|---|---|---|
| and | 0 | x | x |
| 0 | x | ||
| 1 | x |
Observe that, on the successful branches, we have the following normalized state:
In each term, the first ket contains the original registers , and the second contains the two output registers. The outputs contain the pairs we want, but they are still entangled with . We therefore need to uncompute these original registers. The point is that on successful branches this is easy: the output tells us what was. If its first component is zero, then and its second component is ; if its second component is zero, then and its first component is ; otherwise, and both components equal . We can therefore uncompute and the work registers, leaving the outputs in the state on the successful branches. We showed how to uncompute information only once we are at the state of successful branches. However, the successful branches take exactly , independently of , and as we show in the body of the paper a constant number of amplitude-amplification operations makes the preparation exact iwth probability 1; see Section 5.2.
Notice that preparing this state does not by itself give an efficient way to find . Measuring it in the computational basis reveals only in the two exceptional terms, whose total probability is . However, our general construction turns this state preparation into a PMG implementing . This gives the unique-witness solver needed for the Valiant–Vazirani reduction, completing the algorithm for NP.
Inverting a permutation. The same Choi state transformation from Lemma 5.1 also gives coherent permutation inversion. Suppose we are given a classical circuit computing a permutation , then we can efficiently prepare
simply by evaluating in superposition followed by swapping the input and output registers. The construction above turns this state preparation into a PMG whose generated channel applies , including on superpositions and inputs entangled with other registers (see Section 5.4).
2.2 Purifiable versus pure processes
Every process obtained by our Choi-state construction from Section 2.1 is actually purifiable. Note that it is purifiable (Definition 4.17) but not pure (Definition 4.13), because its generating circuit is not unitary. To establish purifiability, we need to show that the process has a pure extension, that is, a larger unitary transformation that remains a valid process under every choice of local operations, and that recovers the original process when we initialize its additional inputs and discard its additional outputs. As we show in Proposition 5.1, the reason for its purifiability is that validity holds even when a single channel acts jointly on all feedback qubits – this is a substantially stronger guarantee than validity holding against disjoint spacetime regions. We can therefore regard the entire process as a transformation that takes one quantum channel A and produces another, . We combine this fact with Theorem 1 of [CDP08] to establish the existence of a pure extension.
Is there an efficiency gap between purifiable and pure processes? There are two details to observe in what we’ve seen in this section so far. The first is that in the Choi-state transformation (Lemma 5.1) and its derived constructions for NP and permutation inversion, measurements are instrumental to our proof. The measurements make the proof work, but in our construction they also make the process non-pure. The second thing to observe is that the purification argument above does not tell us how to find the purification efficiently. This suggests a possible gap that does not exist in ordinary quantum computation. Specifically, finding a purification of a given quantum circuit is always easy, and can be done by a classical deterministic polynomial-time algorithm. Here, we do not know whether that is the case. Concretely: given a purifiable PMG that admits a polynomial-size pure PMG extension, is there a polynomial-time procedure, classical or quantum, that finds such an extension? Note, for example, that a straightforward purification procedure applied to the generating circuit from Lemma 5.1 gives a unitary quantum circuit, but the resulting circuit is no a PMG anymore: on some inputs to the additional registers introduced by purification, the feedback connections induce a transformation that is not trace-preserving.
A different question concerns physical realizability, which we are less equipped to answer. Here we are asking about efficient physical realization, rather than existence alone: in a theory that assumes pure processes are physical and have computational cost proportional to the generating circuit's size, is the same true for purifiable processes that are not pure? Concretely, in such a theory, assume we have a purifiable but non-pure PMG. Can one efficiently obtain access to its generated channel without first finding its purification? This question is currently difficult to answer, as we do not even know whether all pure processes are physical.
Remark 2.1 (An example of a pure extension that uses the witness). Consider our unique-witness construction. We only need the Boolean verifier v for it and the witness z is of course unknown. From v, we efficiently construct a circuit that prepares , and use inside our PMG C. This circuit prepares the Choi state, performs the teleportation measurements, and sets the feedback outputs according to their outcomes. None of these steps requires knowing z, yet the generated channel (after tracing out the feedback registers) applies and therefore computes z on input .
Proposition 5.1 guarantees that this PMG has a pure extension. So, what happens if we apply this argument to our concrete PMG arising solving unique witness search? For this particular construction, the extension can be chosen to have a polynomial-size generating circuit that uses once, together with elementary unitary operations. We leave verification of this construction to the reader. However, to write down the circuit implementing , our construction uses explicitly: its gates implement the exchange of and . Thus, given , we can efficiently construct and execute the unitary generating circuit for the pure extension. But the whole point of the model is to find given . The original generator is efficiently constructed from alone, whereas constructing this particular description of its pure extension first requires the very witness we are trying to find.
This proves that a polynomial-size pure extension exists for every unique-witness instance. It does not give an efficient procedure for finding that extension from v, and whether a different construction can do so remains open. The purification postulate requires existence; it does not impose this computational requirement. In our next result, we construct the pure generators themselves explicitly and efficiently from the input.
2.3 Pure processes and unique-sink orientation
We now construct the unitary generating circuit directly from the input, and prove that it describes a pure process. Our goal is to solve unique-sink orientation (USO), defined formally in 6.1. We will approach this through permutation inversion again, however the technical chronology here will be different. We’ll observe that from a relatively simple idea, the description of USO arises naturally. As it turns out, the condition that makes our validity proof work is exactly a characterization of unique-sink orientations.
Idea: try to invert a permutation unitarily. Suppose we are given a classical circuit computing a permutation , and would like to apply its inverse. Here's an idea for inverting it – first just thinking of the generated channel, without thinking whether circuit is a valid PMG. Define
We construct a unitary circuit C on 2n qubits, with n single-qubit feedback registers , collectively denoted by R, and an n-qubit external register Q.
Let us first describe the ordinary computation of . On input , compute reversibly into fresh work registers, and add it bitwise modulo 2 to . The external register now contains . Since still contains , we can reverse the computation of and return the work registers to zero. Finally, swap and . The resulting unitary acts as
This circuit is efficiently constructed from the circuit for . In particular, all we used was the ability to evaluate in the forward direction.
Now connect each feedback output directly to its input. Recall that this connection takes the partial trace of the matrix (see our simplification Lemma 4.1). A term contributes only when the feedback input equals the feedback output . By our choice of ,
For each external input y, exactly one string x satisfies this equation, namely . This is also the string placed in the external output. Therefore,
By linearity, the same transformation inverts coherently on superpositions.
So far, this looks like a way to invert any efficiently computable permutation using a pure process. But we have not yet proved that our circuit describes a valid quantum correlation between operations, namely, whether it is a PMG. We only know that the identity feedback connections give a unitary transformation. We still need to show that arbitrary local operations can be inserted into these connections without making the resulting transformation invalid. This is where we will need a restriction on .
What makes the circuit describe a valid quantum correlation? We begin with local unitaries that have no auxiliary registers. Let be an arbitrary single-qubit unitary inserted into feedback pair , and denote the feedback-connected transformation by , that is:
Our goal is to show that is unitary for every choice of the .
Fix a feedback input string . Before the swap, the circuit applies to qubit of : it either leaves that qubit alone or flips it. After the swap, that qubit goes through and must return to feedback input . Its contribution is therefore the following row in the matrix ,
Since the circuit places x in the external output, the entire row of corresponding to output x is
Each factor is a row of a unitary matrix, so every full row has norm one. What remains is to show that different rows are orthogonal.
Take two strings . Because their rows are tensor products, it suffices to find one coordinate where the corresponding factors are orthogonal. Suppose that at some coordinate i,
At this coordinate, the circuit applies the same bit flip for both strings. We are therefore looking at different rows of the same unitary matrix . These small rows are thus orthogonal, regardless of the choice of . Consequently, the two full rows, which are in turn obtained by tensoring the small rows, are orthogonal as well.
This gives us the following sufficient condition:
In words, for every distinct strings, look at the coordinates where they differ – on one of these coordinates the circuit has to output the same bit on both inputs. That coordinate preserves orthogonality even after an arbitrary local unitary is inserted.
Where unique-sink orientation enters. Guided by the above condition on permutations, we look to the literature, and find that it has a combinatorial meaning. Recall that a unique-sink orientation [SW01] directs the edges of the Boolean cube so that every face, including the entire cube, has exactly one sink. Its outmap records the outgoing edges: if the edge in direction is going from to the outside , and otherwise. The input to our algorithm is a Boolean circuit computing , and the task is to find the vertex with .
A characterization of USOs states that an outmap s describes a unique-sink orientation if and only if
see [SW01] and Lemma our 6.1. In particular, this implies that s is a permutation: distinct inputs always have distinct outputs.
We can therefore set in our construction. To see why this gives the condition needed for validity, recall that . At the coordinate supplied by the USO characterization, both and change when we move from to , so their XOR stays the same. Thus,
Conversely, when , equality of these XORs implies . The USO characterization is therefore exactly the condition we obtained from the unitarity calculation.
Including auxiliary registers. To finish proving purity, we must allow each to act jointly on its feedback qubit and an arbitrary auxiliary register . The inputs to these registers may also be entangled. We explain why the same orthogonality argument continues to work, by generalizing vectors to operators.
For a bit a, write
Previously, fixing the input and output bits of the feedback qubit gave a scalar. Now it gives an operator on . Denote this operator by , where is the feedback input bit and is the feedback output bit. Unitarity of gives
Formally, from to , where is the vector with all zeros except a single 1 in coordinate .
This is the same statement about rows as before: each row has unit norm and different rows are orthogonal, except that the entries are now operators.
We use this identity to check that by a block-wise analysis. Fix two external output strings for the register, and consider the corresponding block of , which is an operator on . If , every coordinate contributes the identity on . Otherwise, the USO condition gives a coordinate with and . At that coordinate we multiply different block rows of the same unitary , obtaining zero. The entire off-diagonal block is therefore zero. This proves the unitarity condition from Definition 4.13, and hence our circuit is a pure PMG.
This concludes the pure construction for USO: given the circuit for a USO outmap s, construct C as above and use its generated channel, whose unitary acts as
On input , this gives the unique sink with probability 1. The generating circuit is constructed in classical polynomial time from the circuit for , and the algorithm uses its generated channel once; see Theorem 6.2.
Beyond permutation inversion. Looking back at the proof, the bit flips were not essential. At each coordinate, what mattered was that equal values of selected the same unitary. We can therefore replace the choices by any two single-qubit unitaries , given by unitary circuits. The generating circuit computes , applies the selected gates to (that is, we execute on register ), uncomputes , and swaps the registers, just as before. The same validity argument applies.
More explicitly, define
The condition on guarantees that the vectors form an orthonormal basis, and the generated unitary satisfies
This describes our overall general result, given in Theorem 6.1. The permutation construction is the case , , where .
3 Preliminaries
We use the following standard notions and notations from classical and quantum computation in this work.
• For , define . The set of all finite binary strings is .
• Unless stated otherwise, is the base-2 logarithm, is the Euclidean norm of a vector, and is bitwise addition modulo 2 (aka, bitwise XOR).
• For , the n-qubit state space is . In particular, it is known that is a -dimensional Hilbert space. A register is a copy of such a space with its specified computational basis. Registers of the same dimension may represent different systems.
• A pure quantum state is a unit vector in . A mixed quantum state is a matrix which is positive semidefinite and satisfies . Positive semidefinite means that for every vector .
• For , an to (general) quantum circuit is a quantum circuit with input an -qubit mixed state, can perform any quantum gate from the fixed set of single-qubit gates , the two-qubit quantum gates and three-qubit Toffoli gate , execute measurement gates and add ancillary qubit registers containing , where each of the above operations costs 1 time unit. At the end of the execution, outputs an -qubit mixed state.
• For , an -qubit unitary circuit is an to quantum circuit such that there exists a unitary matrix such that for every -qubit pure state the action of corresponds to the action of the unitary, that is, .
Circuit conventions. The single-qubit gates in the fixed set are
and is the adjoint of . Measurements are in the computational basis. General quantum circuits may also discard registers and use measurement outcomes for classical control. A unitary circuit may use additional work registers, provided these registers are returned to on every input to the stated unitary. The circuit description includes its register sizes and gate count, type and position, which sums up to . Input and output registers with zero qubits are allowed, with and empty tensor products equal to the one-dimensional identity. The definitions below use the same conventions for zero-qubit registers.
3.1 Computational Complexity Theory
Definition 3.1 (Promise Problem and Language). A promise problem is a pair of disjoint sets . It is a decision problem when , and in this case its language is .
Definition 3.2 (Search Problem). A search problem is specified by a relation and a promised input set . An algorithm solves the problem with probability if, on every , it outputs a string satisfying with probability at least . All relations used below have polynomially bounded output length.
Definition 3.3 (The Complexity Class BQP and Promise BQP). The class BQP consists of languages decidable by a uniform polynomial-time quantum algorithm with probability at least on every input. The analogous promise class requires correctness only on .
Definition 3.4 (The Complexity Class UP). A promise problem is in UP if there is a deterministic polynomial-time verifier and a polynomial such that, for every there is a single such that and for there is no such that .
Definition 3.5 (The Complexity Class coUP). A promise problem is in coUP if there is a deterministic polynomial-time verifier and a polynomial such that, for every it follows that for every we have and for there is exactly one such that .
Definition 3.6 (The Complexity Class TFUP). TFUP is the class of search problems where the relations are polynomial-time verifiable, has polynomially bounded witnesses, and has exactly one witness on every input.
The Satisfiability Problem SAT. We define the satisfiability problem SAT, which is known to be NP-complete [Kar10]. Recall that SAT is a decision problem and in the below definition, the input is an arbitrary binary string in , which is then interpreted as a CNF formula . In case the input is not in the correct format to be interpreted as a CNF formula (which can be checked by a classical efficient algorithm) the input is counted as a instance.
Definition 3.7 (The Satisfiability Problem). The Satisfiability problem, denoted SAT is a decision problem, where the input is a CNF formula with n input Boolean variables. The problem is defined as follows.
• is the set of all (binary encodings of) CNF formulas that are satisfiable.
• is .
The Valiant-Vazirani Theorem. We use the Valiant-Vazirani Theorem [VV85], which can be stated as follows.
Theorem 3.1 (Valiant-Vazirani Theorem). There exists a classical probabilistic polynomial-time Turing machine that gets as input a CNF formula that has input n Boolean variables, and outputs a CNF formula that has polynomially many (in n) Boolean variables, with the following guarantees.
• If then .
• If then .
3.2 Quantum Information Theory
We define linear operators over Hilbert spaces. In the scope of this work we will always define Hilbert spaces as complex vector spaces, for different amounts of qubits .
Definition 3.8 (Set of linear operators between two vector spaces). Let A, B two complex vector spaces. The set is defined as the set of all linear transformations from A to B.
• In case A = B, we write for short.
• The identity map on A is denoted by .
• In case the sets are Hilbert spaces (and in our case, state spaces), then the set of linear operators is the set of appropriate matrices. Formally, if there are such that , , then , and the action of a linear transformation is vector-matrix multiplication, where the matrix is the left multiplicand. In that case we denote and .
Definition 3.9 (Unitary matrix and isometry). Let and . A matrix is unitary if . A matrix is an isometry if ; here the input and output spaces need not have the same dimension. We write for the linear map .
An operator which we will use extensively in this work is taking the partial trace of a square matrix.
More precisely, we think of Hilbert spaces (with the notation ) as a variable that takes a value for some . This in particular means that we can have two different Hilbert spaces that capture the same spaces, but describe the states of non-identical physical quantum systems.
Definition 3.10 (Partial trace of an operator). Let and a linear operator for , , that is, is a square matrix. The partial trace of with respect to is defined as the following matrix in :
We can also write .
Definition 3.11 (Partial trace with different external input and output spaces). Let , , , and let . The partial trace over the two copies of is the matrix
This extends Definition 3.10; when , the two definitions agree.
Definition 3.12 (Completely positive and trace-preserving maps). Let . We say that is completely positive if, for every additional finite-dimensional register and every positive semidefinite matrix , the matrix is positive semidefinite. Here is the identity map on . We say that is trace-preserving if for every . A map satisfying both conditions is called CPTP.
Definition 3.13 (Quantum channel). Let , Hilbert spaces and let . We say that is a quantum channel from to if it is a completely positive, trace-preserving (linear) map from to . In case , for some , we say that is a channel from to qubits, or an -to- quantum channel.
Throughout this work we use the Choi-Jamiolkowski isomorphism (or CJ isomorphism for short), which for Hilbert spaces , , induces a bijection between
which is the set of linear transformations from to , and
which is the set of linear transformations from to itself. The CJ isomorphism in particular induces an isomorphism between (1) -to- quantum channels and (2) a special set of matrices in . The CJ isomorphism is defined as follows.
Definition 3.14 (Choi-Jamiolkowski operator of a linear operator). Let a linear operator for , for some . The Choi-Jamiolkowski (or CJ in short) operator of is given by the following matrix :
We will also use the inverse CJ isomorphism, which is defined as follows.
Definition 3.15 (Inverse of Choi-Jamiolkowski transformation). Let a linear operator. The inverse CJ transformation of the tuple is defined as the linear operator such that for every ,
Here is the transpose in the specified computational basis of .
Remark 3.1 (3 input parameters in inverse CJ isomorphism). In the above definition 3.15 of the reverse CJ transformation CJ , note that unlike the forward transformation CJ, we need to specify not only the operator M but also the spaces , . The reason is that the space can be decomposed in many different ways (i.e. for Hilbert spaces of different dimensions), and imply different operators by the inverse CJ transformation. This is different from the case of the forward transformation CJ, where the input and output linear spaces are implicitly defined as part of the operator C.
Definition 3.16 (Matrix representation of a quantum channel). Let a quantum channel from to . A matrix representation of is a finite collection of matrices such that, for every ,
Every finite-dimensional quantum channel has such a representation. The matrices are also called Kraus operators. They describe the channel mathematically; they are not additional input matrices that an algorithm is required to write down. Omitting the second equality gives a representation of a completely positive map that does not necessarily preserve trace.
Definition 3.17 (Unitary implementation of a quantum channel). Let a quantum channel from to . A unitary implementation of consists of additional registers , and a unitary such that, for every input density matrix ,
Such an implementation is also called a unitary dilation. For a circuit-described channel, its measurement and discarded registers can be kept coherently to obtain a polynomial-size implementation of this form, which is called the purification of the quantum circuit.
Definition 3.18 (Trace distance and approximation of a state). For a matrix , its trace norm is . For two density matrices , of the same dimension, their trace distance is
A state-generation procedure has error at most if its output has trace distance at most from its specified output state.
4 Process Matrix Formalism
Process matrices were first defined in [OCB12] and since then became a central object in the study of indefinite causal structure in quantum mechanics. In this section we give the required definitions for information processing based on process matrices, computational models, computationally-bounded variations and complexity classes. We follow the definitions from the literature, in some places using previous definitions as they are, and in some other places giving logically equivalent definitions which would be easier to operate in the scope of this paper. We also provide numerous new definitions.
Definition 4.1 (Double ket notation). Let a matrix such that , for some . We define the following "double ket" vectors in :
Definition 4.2 (Boundary pairs and local quantum channels). Let , let be a tuple of positive integers, and let . For every , let , be -qubit registers, and set
The tuple m is the ordered partition into boundary pairs. In our circuit notation, the are inputs to the circuit and the are outputs from it. A local quantum channel on pair i is any channel
where , are arbitrary additional registers. These additional registers are external: they are not connected back to the circuit. Their inputs may be entangled with each other and with the external input to the circuit.
We next define the indefinite operator of a matrix , which is used later to define what is a process matrix. In what follows, we think of as a CJ representation of some quantum channel from to .
Definition 4.3 (Indefinite Operator). Let for Hilbert spaces , , , such that . The indefinite operator of with respect to the Hilbert spaces , is the operator such that
where
Connecting local operations to the feedback registers. We next allow a quantum channel to be inserted into each feedback pair. Each local channel receives a feedback output and returns a feedback input; its auxiliary registers remain external. The following definition gives the CJ operator of the resulting transformation. It uses the contraction from [AGB17, Section III], with our input and output labels.
Definition 4.4 (Indefinite operator with local channels). Let
and fix a partition into feedback pairs as in Definition 4.2, with
For each , let , be auxiliary registers and let
be a quantum channel. Write , , and .
The indefinite operator of W with these local channels is
Here is the partial transpose on the feedback registers in their computational bases. Each factor acts on its named registers, with tensor factors reordered accordingly. After taking the partial trace, the remaining registers are ordered as .
The induced linear map from P, E to F, is
When all local channels are identities and there are no auxiliary registers, this reduces to the indefinite operator in Definition 4.3. The induced map need not be a quantum channel for an arbitrary W; requiring this for every choice of local channels is part of the process matrix definition below.
We define process matrices as follows.
Definition 4.5 (Process Matrix). Let for Hilbert spaces , , , such that . Define the following linear operator as
where is the indefinite operator of W with respect to the spaces , , as in Definition 4.3, and is the inverse CJ transformation, as in Definition 3.15.
Fix a partition m of the two boundary registers as in Definition 4.2. We say that W is a process matrix with respect to , , and m if W is positive semidefinite and, for every collection of auxiliary registers and every choice of local quantum channels , the induced operator
from Definition 4.4 is a quantum channel. From hereon unless noted otherwise the partition m is implicitly set to be , where and such that for all , , which is why we suppress the notation.
Remark 4.1 (Intuition behind the operator PMO). The name PMO is meant for a Process Matrix Operator. The idea behind the operator PMO is that it tries to take a general linear map, and map it to not just any linear transformation, but a quantum channel. What defines a process matrix W is that it is positive semidefinite and that this mapping gives a quantum channel for every choice of local quantum channels on the specified boundary pairs, including additional registers. The identity connection is only one of these choices.
4.1 A Computational Model based on Process Matrices
In the above subsections, all definitions were information theoretical. The work [AGB17] was the first to consider the complexity theoretical aspect of process matrices. In this subsection we add our own notions of computation and computational complexity of process matrices, based on the previous work.
Definition 4.6 (Quantum channel of a quantum circuit). For , let a quantum circuit from to qubits (as in defined in Section 3).
The quantum channel of , denoted is the linear map that agrees with the execution of on every -qubit mixed quantum state.
Definition 4.7 (Circuit description for a process). Let a non-negative integer, an -to- quantum circuit with the boundary registers ordered as in Definition 4.2. The pair is a circuit description for a process. We implicitly use separate single-qubit boundary pairs , , where is an input qubit of and is the corresponding output qubit.
For any arbitrary local channels , the channel acts from to where may have arbitrary sizes and remain external. Their inputs may be entangled with each other and with the external input to . For , there are no boundary pairs. The size includes and .
Quantum Circuits as Process Matrix Generators. We next define a new notion, called Process Matrix Generators (PMG). Intuitively, PMGs are quantum circuits such that if we take their CJ representations, we get a process matrix. More precisely, for an -to- quantum circuit C we take the n first qubits to be boundary registers and ask whether the CJ representation is a process matrix w.r.t. these registers. We care about polynomial-time PMGs, as they play a central role in the definition of polynomial-time process matrix computation. In particular, when we later define the complexity class from previous work (and a new class ), we will do so using the new definition, and ask that all process matrix transformations allowed in are only by quantum polynomial-time PMGs.
Definition 4.8 (Process Matrix Generator). Let , let and let an -to- quantum circuit. Consider the quantum channel of the circuit , such that , , , .
Define the following operator :
where is as per Definition 4.5. We use the implicit single-qubit boundary convention from Definition 4.7. If is a process matrix for these separate boundary pairs, as in Definition 4.5, we say that the tuple is a Process Matrix Generator (or PMG), and denote by the Process Matrix Channel of the tuple. For , we also write and for the connection with local channels.
Simplified formula for evaluating process matrix generators. The following Lemma gives a formula for the identity-connected operator of the tuple . It does not replace the validity condition for all local quantum channels. Specifically, assume that is an isometry on quantum states, that given an -qubit pure state , concatenates ancillary qubits and executes a unitary on qubits. The below Lemma is a generalization of the simplifying Equation (21) from [AGB17].
Lemma 4.1 (Simplified PM Formula for Isometries). Let , , and let a unitary matrix. Let the quantum channel of the k-isometry of , that is, for an input -qubit mixed state the channel adds an ancilla of qubits and executes , that is,
Denote the Hilbert spaces of the channel,
such that , , , .
Let and let the indefinite operator of with respect to , (as in Definition 4.3). Then we have the equality
for the matrix such that
That is, is the matrix derived by tracing out the Hilbert space of the leftmost qubits from the unitary matrix itself, and the linear operator is such that for an input matrix , outputs:
In particular, if W is a process matrix with respect to and under the implicit single-qubit boundary convention, then
• is a valid quantum channel.
• For any quantum circuit C that implements the original channel with the same ordered boundary registers, the tuple is a PMG with generated channel (as in Definition 4.8).
Note that the converse does not follow from the identity-connected formula: can be a quantum channel even when W is not a process matrix.
Proof. Note that there is an isometry that for any , . It follows that the action of the channel for an input -qubit mixed state is . This implies that .
By Definition 4.3, the indefinite operator of with respect to the Hilbert spaces is
Let us break down the expression inside the partial trace. By Definition 4.1,
From Definition 4.3 we also have
By the linearity of trace we get
Next, by the cyclic property of trace, the above equals
\begin{align*}&\cdot\left(\langle y|\otimes\langle y|\cdot V^{\dagger}\right)\left(|u\rangle\otimes I_{\mathcal{L}(\mathcal{H}_{P})}\otimes|u\rangle\otimes I_{\mathcal{L}(\mathcal{H}_{F})}\right)\right)\\=&\sum_{a,b\in\{0,1\}^{n},i,j\in\{0,1\}^{r},u,v\in\{0,1\}^{n}}Tr_{A_{I},A_{O}}\Bigg(\left(\langle v|\otimes I_{\mathcal{L}(\mathcal{H}_{P})}\otimes\langle v|\otimes I_{\mathcal{L}(\mathcal{H}_{F})}\right)\left(|a,i\rangle\otimes V\cdot|a,i\rangle\right)\\&\cdot\left(\langle b,j|\otimes\langle b,j|\cdot V^{\dagger}\right)\left(|u\rangle\otimes I_{\mathcal{L}(\mathcal{H}_{P})}\otimes|u\rangle\otimes I_{\mathcal{L}(\mathcal{H}_{F})}\right)\Bigg).\end{align*}By considering the result of inner products for the expression inside the trace, we get that the summand for i, j, u, v is
Observe that at this point of the calculation, for the expression inside the trace (for each set of indices ), the systems are not longer present. In particular, the trace can be removed from the previous sum, and we get that equals:
We next consider, for every fixed pair , the sum over all different :
Observe that in the above we have a sum, over , where every summand is a product between two elements. However, the left element in each product only depends on , and every element on the right only depends on . It follows that the above can be written in the form:
Let us analyze the left multiplicand, and the analysis of the right multiplicand will be symmetric:
Recall that we have . Now, observe that for every we have
To conclude, by denoting , for every we have the equality:
In a similar manner, by a symmetric calculation we have the equality for every :
Let us summarize the results and conclude the proof. We saw that
and by our analysis of the multiplicands in the sum, the above equals
It is left to observe that by the Definition 3.14, the last expression is exactly the CJ transformation of the linear operator defined in the statement of Lemma 4.1.
4.2 Existing and New Complexity Classes
We now define two models of efficient process matrix computation. The first allows general generating circuits, provided they describe valid processes. The second requires the generating circuits to be unitary and the processes to be pure. We also distinguish this restriction from purifiability, which requires a pure extension to exist without imposing an efficiency requirement on its construction.
General process computation. Both our model and that of [AGB17, Section IV] assume access to the channel specified by a classical generating-circuit description. In the CTC interpretation, the model grants the ability to construct the corresponding feedback connections. The previous definition requires the supplied circuit to describe a valid process. Here we also specify what happens when it does not: a well-formed generation query returns an arbitrary quantum channel of the prescribed dimensions, and the algorithm must satisfy its correctness requirement for every such channel. This defines the generation operation on every well-formed description, without requiring the algorithm to determine process validity.
Definition 4.9 (Linear Closed Timelike Curve Generator). Let A a function with input set of pairs where and C a quantum circuit from to qubits for some , and output set of -to- qubit quantum channels. A need not be efficiently computable. We say that A is a linear CTC generator if for every well-formed input , if the pair is a PMG (as in Definition 4.8) then A outputs the channel , and if the input is not a PMG, the output channel of A can be arbitrary.
We can now define the complexity class .
Definition 4.10 (The Complexity Class BQP ). The complexity class BQP is the set of promise problems that are solvable by a quantum polynomial-time algorithm with access to linear post-selection CTCs. Formally, such that there exists a quantum polynomial-time Turing Machine M such that for every linear CTC generator A (as per Definition 4.9), for every with probability at least , and for every with probability at least , such that
• is the machine M with oracle access to A and the channels that it outputs.
• Every generation query has a classical description. The query may depend on the input x itself and on the preceding computation, and may be adaptive.
• Every query to A and every use of the channel it produces costs time.
Pure processes. Araújo, Feix, Navascués and Brukner [AFNB17, Definition 1] introduced pure processes as those that induce a global unitary transformation whenever the local operations are unitary, including operations on auxiliary registers. We give the relevant definitions.
Definition 4.11 (Unitary Quantum Channel). Let and let be an -to- qubit quantum channel, as in Definition 3.13. We say that is a unitary quantum channel if there exists a unitary matrix such that, for every -qubit pure state ,
Definition 4.12 (Pure Process Matrix). Let W be a process matrix as in Definition 4.5, with feedback input R, feedback output S, external input P, and external output F, with a fixed partition into feedback pairs .
We say that W is pure if, for every choice of auxiliary registers , and local unitary channels from , to , , the induced channel
from to is unitary.
By Theorem 2 of [AFNB17], a process matrix W is pure if and only if
for a unitary . We use this notion to define pure process matrix generators.
Definition 4.13 (Pure Process Matrix Generator). Let be a PMG as in Definition 4.8. We say that D is a pure process matrix generator, or pure PMG, if C is a unitary quantum circuit. Each of the following conditions is equivalent to D being pure:
• CJ ( ) is a pure process matrix according to Definition 4.12, with the same n separate single-qubit feedback pairs.
- C is a unitary circuit with matrix satisfying the following condition. Write for the feedback registers. For every choice of auxiliary registers and local unitaries acting on , ,
Here we identify corresponding feedback input and output registers, and each operator acts as the identity on registers not mentioned in its definition. The auxiliary registers remain external and are not traced out.
In particular, the generated channel is unitary.
Remark 4.2 (A PMG with a unitary generated channel is not necessarily pure). A unitary generated channel alone does not make a PMG pure. For example, our Choi-state construction in Lemma 5.1 generates a unitary channel when V is unitary, although the ordinary channel implemented by its generating circuit is not unitary. To see which local operations reveal this distinction, introduce an auxiliary input qubit at each feedback pair and choose the local operation to be a SWAP. This sends into and returns as an auxiliary output . The resulting global channel is exactly , up to register names. Thus, although every inserted operation is unitary, the global channel is not. Purity requires unitarity for every such choice, not only when the local operations are identities.
Pure process computation. We define the class , which restricts to pure process computation.
Definition 4.14 (Unitary Closed Timelike Curve Generator). Let A a function with input set of pairs where and C a quantum circuit from to qubits for some , and output set of r-to-r qubit quantum channels. We say that A is a unitary CTC generator if for every well-formed input , if the pair is a pure PMG (as in Definition 4.13) then A outputs the channel (and if the input is not a pure PMG, the output channel of A can be any r-to-r quantum channel).
We can now define the complexity class .
Definition 4.15 (The Complexity Class ). The complexity class is the set of promise problems solvable by a quantum polynomial-time algorithm with access to unitary post-selection CTCs. Formally, there exists a quantum polynomial-time Turing machine M such that, for every unitary CTC generator A as in Definition 4.14,
and
The access and cost conventions are as follows:
• is the machine M with oracle access to A and the channels that it returns.
• Every generation query has a classical description. Queries may depend on the input x and on the preceding computation, and may be adaptive.
• Every query to A and every use of the channel it returns costs time.
Purifiable processes. Araújo, Feix, Navascués and Brukner [AFNB17, Definition 3] introduced purifiable processes and proposed purifiability as a necessary condition for physical realizability. Informally, a process is purifiable if it can be recovered from a larger pure process by initializing additional inputs to pure states and discarding additional outputs.
Definition 4.16 (Purifiable Process Matrix). Let W be a process matrix as in Definition 4.5, with feedback input R, feedback output S, external input P, and external output F, with a fixed partition of R, S into feedback pairs. We say that W is purifiable if there are additional external registers , and a unitary
satisfying both of the following conditions:
-
is a process matrix for the same feedback pairs, with external input and external output . Since is unitary, is a pure process.
-
Initializing to zero and discarding recovers W. Formally, writing
we have
Validity of is required on every input to , including inputs entangled with the other external registers, and under every choice of local quantum channels. No circuit-synthesis or efficiency requirement is imposed on U.
Definition 4.17 (Purifiable Process Matrix Generator). Let be a PMG as in Definition 4.8. We say that is purifiable if is a purifiable process matrix according to Definition 4.16, with the same separate single-qubit feedback pairs.
Equivalently, there is a unitary U defining a pure extension as above such that, for every matrix X on the original circuit input,
If U is implemented by a circuit , then is a pure PMG. The existence of such a circuit over our fixed gate set, its size, and the complexity of constructing it are additional requirements, not part of purifiability.
5 Quantum Computation with Efficient General Process Matrices
We show that general process matrix computation can solve every problem in NP. Our main tool turns an efficient preparation of an isometry's Choi state into a process matrix generator implementing that isometry. We first prove this construction and its purifiability, and then use it for unique-witness search, solving NP, and coherent permutation inversion.
5.1 Generating a unitary channel from a generator of its Choi state
Preparing the Choi state of an isometry does not by itself give an efficient circuit implementing that isometry. The following lemma shows that it does give an efficient process matrix generator. We also prove a stronger validity guarantee that will allow us to establish purifiability.
Lemma 5.1 (Generating an isometry from its Choi-state generator). Let , and let be an isometry. Denote , and let
Assume there is an ordinary polynomial-size quantum circuit that prepares the state exactly. Then there is a classical deterministic polynomial-time algorithm that, given , outputs a pair which is a PMG (Definition 4.8) such that, for every input quantum state ,
In particular, when n = m, the generated channel is unitary.
The pair actually satisfies a stronger property than being a PMG. Specifically, the induced Process Matrix Operator is a quantum channel even when the single-qubit feedback registers are treated as one joint register. That is, the validity condition holds for every quantum channel A acting jointly on all feedback qubits, with arbitrary auxiliary input and output registers, rather than only for tuples of local quantum channels as in Definition 4.5.
Proof. Let , and denote by , for , the -qubit Pauli matrices, chosen with phases so that , , and . These matrices satisfy that the trace of their inner product with each other is always 0 unless it is with themselves, specifically, .
Write
The vectors form an orthonormal basis for . Next, consider the -qubit state , and specifically, making a partial measurement to its leftmost qubits in the basis . By definition, for every , the measurement outputs with probability
and conditioned on this outcome, the remaining m qubits are in the state
whenever . A useful observation is that for every quantum state and we have
To see the equality, expand the three vectors in the computational basis and use the definition of .
Now, since and is unitary, the squared norm of the right-hand side is , independently from . This altogether implies that measuring the first two registers in the basis produces each with probability , and the corresponding external state is . The corresponding statement for mixed inputs and inputs entangled with additional registers follows by linearity, where the transformation acts as the identity on the additional registers.
The process matrix generator. We describe a polynomial-size ordinary quantum circuit C acting on -qubit inputs and outputting qubits. Specifically, the feedback registers are the first 2n qubits, thus there are additional n external input qubits and m external output qubits. On an arbitrary input, C executes the following procedure:
-
Measure the feedback input in the computational basis, and denote the outcome by .
-
Execute the circuit to prepare in an -qubits register , and perform the measurement from Equation (5.2) on the remaining qubits in the external input and the first qubits of . Denote the measurement outcome by .
-
Set the feedback output to by adding (mod 2) the measurement outcome to the feedback registers. Output the remaining qubits of as the external output, and discard the remaining registers.
The circuit C uses only ordinary quantum operations and note that its size is polynomial in . Validity of the generator. We next show that the pair constructed above is a PMG. Recall that in our definition a PMG needs to remain a valid quantum channel even when arbitrary quantum channels, with arbitrary auxiliary registers, are inserted in the feedback. In fact, we prove a stronger property, where all the 2n feedback qubits are treated as a single register and the inserted quantum channel can act jointly on all of them.
Let , be arbitrary auxiliary registers, and let be an arbitrary quantum channel from the feedback output qubits and to the feedback input qubits and . Formally,
Recall the matrix representation of a quantum channel from Definition 3.16 through Kraus operators. Since is a quantum channel, there exist matrices such that for every input matrix ,
We use the Kraus operators only for analyzing the quantum channel A, and do not assume that the algorithm receives their descriptions or can compute them efficiently.
Recall that the feedback channel has input which is the out of on its first qubits and output which is conceptually the input to . For every , and , denote by the part of corresponding to the feedback input and the feedback output . Formally, we define
Thus, on an auxiliary input state , the vector is the -component of after removing the feedback output register. In particular, the second equality in the matrix representation of gives, for every fixed ,
(5.3)
We now consider the transformation obtained by connecting the circuit through the channel . Recall the execution of : it first measures the feedback input and obtains , then makes the Bell-basis measurement and obtains , and finally sets the feedback output to . By Equation (5.2), the operation applied to the external input in the branch with outcome is . For this branch to contribute to the connected transformation, the channel must take the feedback output back to the feedback input . According to the above notation, the corresponding operation on the auxiliary registers is , for some .
Consequently, the connected transformation has the following matrix representation. For and , define the matrices
Since the feedback input and the Bell basis are measured during the execution of C, the different outcomes r, j contribute as separate branches. Therefore, denoting by the induced Process Matrix Operator, for every matrix X on the external input and the auxiliary input E we have
In particular, this shows that is completely positive, also when its input is entangled with arbitrary additional registers. It remains to prove that the induced operator is trace-preserving.
Recall that V is an isometry and the matrices are unitary. Thus , and we have
In the second equality we simply used the change of variables , and the third equality follows from Equation (5.3). The last equality holds because there are possible strings . By Definition 3.16, this proves that the induced operator is trace-preserving. Combining this with complete positivity, we get that the Process Matrix Operator induced by is a quantum channel for every and arbitrary auxiliary registers , . Thus, is a PMG, and the stronger validity property in the statement of the lemma also holds.
The generated channel. We are left to show the action of the generated channel , which is obtained by inserting the identity channel on the feedback registers without auxiliary input. In this case the inserted channel has the single matrix , and therefore . Recall that the feedback output of is , so the condition holds if and only if . Thus, in the matrix representation of the derived channel, the only nonzero operators are
one for every . In particular, recalling that there are different values of , for every quantum state we have
This completes the proof.
Purifiability of the construction. The stronger validity property in Lemma 5.1 also implies purifiability. We state the implication separately, since it applies beyond our particular construction.
Proposition 5.1 (Joint validity implies purifiability). Let be a PMG. Suppose that its induced transformation remains a quantum channel when an arbitrary quantum channel A acts jointly on all n feedback qubits, including arbitrary auxiliary input and output registers. Then D is purifiable in the sense of Definition 4.17.
Proof. Write R, S for the feedback input and output of C, and P, F for its external input and output. Treat all feedback pairs as one pair, so that A acts from S to R, possibly together with auxiliary registers. Denote the resulting transformation by .
The mapping is a deterministic quantum supermap in the terminology of [CDP08]. Indeed, it is linear and completely positive in the CJ representation, since its Choi operator is up to a reordering of registers. By our assumption, it maps every quantum channel to a quantum channel, including when auxiliary registers are present.
Theorem 1 of [CDP08] therefore gives a memory register M, an additional output register G, and isometries
such that, for every A without auxiliary registers,
The same identity holds with arbitrary auxiliary registers, on which the surrounding operations act as the identity. Crucially, and are fixed independently of A.
Extend and to unitaries by adding input registers , respectively. Denote these unitaries by
Memory and environment spaces may be enlarged to qubit registers as needed. Initializing to zero recovers . Define a unitary from to SFG by applying to , and then applying to , leaving untouched.
To verify process validity, insert an arbitrary joint channel A from SE to . The connected transformation is an ordinary circuit: apply , pass S through A, and apply to the returned register R and the kept registers M, . Every operation is a quantum channel, so the connected transformation is a quantum channel on every joint input to P, , , E. If A is unitary, every operation is unitary. In particular, this holds for every tuple of local unitary operations on the original separate feedback pairs. Thus, is a pure process.
Finally, initialize , to zero and discard . By the realization above, this recovers for every , including its auxiliary extensions. This also recovers the entire original generating channel : choose to swap with an external -qubit input, returning that input to and sending to an external output. With this choice, the connected transformation is precisely , up to register ordering. Consequently, for every matrix on ,
Taking and proves purifiability.
Applying Proposition 5.1 to the stronger validity guarantee in Lemma 5.1, every process obtained by that lemma is purifiable. In particular, this applies to the unique-witness and permutation-inversion constructions below. The argument establishes existence of a pure extension; it does not provide a polynomial-time algorithm for constructing its description from the supplied Choi-state preparation circuit.
5.2 Finding a unique satisfying input
Our next construction applies the previous lemma to the problem of finding the unique satisfying input of an efficiently computable Boolean function.
Theorem 5.1 (Unique-witness search). There exists a classical deterministic polynomial-time algorithm M that, given a Boolean circuit with exactly one satisfying input z, computes a pair for which is a PMG and whose generated channel is unitary. Moreover, using one query to this generated channel, M recovers z with probability 1.
Proof. Let be a Boolean circuit as in the statement, with unique satisfying input . Introduce one additional input bit and require it to be 1 for verification to pass. We continue to write for the padded verifier, its input length, and its unique witness, respectively. Thus, . We discard the added bit when reporting the witness for the original instance. Denote . Consider the following unitary matrix :
Observe that is unitary, as it is a permutation of the computational-basis vectors, and that . We will show how to generate the channel corresponding to without first computing .
By Lemma 5.1, it suffices to give an ordinary polynomial-size quantum circuit that prepares the state
We describe such a circuit next.
Preparing the state . Start with the uniform superposition on qubits,
Add registers A, C, G on k, k and 1 qubits respectively, initially in the all-zero state . By ordinary reversible computation, evaluate and compute the following (additions are modulo 2):
-
If , , and , add to and 1 to .
-
If and , add to and 1 to .
-
If and , add to and 1 to .
-
In all other cases, leave unchanged.
Observe that, on all branches with , the pair uniquely determines the original input : if then ; if then ; and otherwise . Therefore, conditioned on , the original registers and all computational work registers can be reversibly returned to the all-zero state, without changing .
There are exactly successful pairs : one for each and two more for . All successful pairs give different values of , and these values are exactly the pairs appearing in Equation (5.4). Therefore, the probability that is exactly , and conditioned on this event the output registers are in state , with no entangled information left behind.
Recall that in our Lemma 5.1 we use a circuit that makes with probability 1, and the above approach achieves probability 1/2, and can get arbitrarily close to 1 by repetition, but not exactly. We next turn this constant-probability preparation to be exact.
Append an independent Hadamard bit in a single-qubit register , and call a branch good if . The probability of this event is exactly 1/4. Let be the total number of qubits used by this preparation, including all work registers. Denote the unitary computation described so far by , let , and let be the projector onto the good subspace. Then we can write
for normalized orthogonal states , where has the output registers in state and every work register in a fixed (untangled) state. Direct calculation gives
Indeed, the right reflection produces , whose inner product with is . Reflecting this state about (which is the second operation) therefore gives . The first (rightmost) operation in Equation (5.5) is an ordinary phase flip controlled on (i.e., apply a control Z two-qubit gate with control register and target register ) and the second reflection is implemented by applying , then , and finally . Both are implementable by polynomial-size quantum circuits. Thus we obtain, without measurement or postselection, an exact polynomial-size preparation of .
Process generation and correctness. Apply Lemma 5.1 to this preparation circuit, with . We obtain a polynomial-size ordinary quantum circuit for which is a PMG and whose generated channel is
The generated channel is unitary, even though the original circuit may use measurements and discarded registers. By applying this generated channel to and measuring the output, the algorithm recovers the unique satisfying input with probability 1. The construction and every oracle use cost polynomial resources, which concludes the proof.
5.3 Solving NP
We now use Theorem 5.1 and the Valiant–Vazirani reduction from Theorem 3.1 to solve SAT, and consequently all of NP, in BQP . We apply our unique-witness construction to each reduced formula and verify the returned candidate assignment before accepting.
Theorem 5.2.
The algorithm makes polynomially many nonadaptive generation queries. Whenever the formula used in a query has exactly one satisfying assignment, the query is a PMG and its generated channel is unitary.
Proof. It suffices to solve SAT. Let be any generation oracle satisfying Definition 4.9, and let an input CNF formula with input variables. If the input does not encode a CNF formula, reject. Formulas with no variables are evaluated directly. We describe a quantum polynomial-time Turing Machine that, with access to , decides whether .
Let , for a sufficiently large absolute constant . The machine executes the following procedure times, with independent randomness for each execution of the Valiant-Vazirani reduction:
-
Execute from Theorem 3.1, obtaining a CNF formula .
-
Apply the deterministic circuit construction from Theorem 5.1 to the Boolean circuit that verifies a satisfying assignment of . Denote the resulting pair by , and query .
-
Apply the returned channel to the designated all-zero input, and measure its output in the computational basis. Remove the extra witness bit introduced in the proof of Theorem 5.1, obtaining a candidate assignment w. Accept if .
If none of the iterations accepted, reject.
The construction in Step 2 outputs a well-formed circuit description for every . If has exactly one satisfying assignment, Theorem 5.1 guarantees that this description is a PMG whose generated channel finds the assignment.
Correctness. Suppose first that . By Theorem 3.1, every formula generated in Step 1 is unsatisfiable. Therefore, no candidate assignment can pass Step 3, regardless of which channels A returns. The machine rejects with probability 1.
Now suppose that . There is a constant such that each execution of Step 1 produces a uniquely satisfiable formula with probability at least . Whenever this event occurs, Theorem 5.1 guarantees that Step 2 supplies the channel that recovers the unique satisfying assignment. Step 3 therefore accepts with probability 1. Consequently, the probability that all iterations reject is at most
Since , choosing sufficiently large gives
Running time and generation queries. The reduction, the circuit construction, and the final verification all take polynomial time. Every generation query and every use of its returned channel have polynomial cost under Definition 4.10. As a side note, one can also verify that the generation queries are nonadaptive. This proves SAT .
5.4 Inverting an efficiently computable permutation
We end with an application of Lemma 5.1 to computing a function, rather than finding a single witness. The construction uses the same computational model , and provides a unitary that inverts a permutation on arbitrary quantum inputs.
Theorem 5.3 (Permutation inversion). There exists a deterministic polynomial-time algorithm that, given an ordinary classical circuit for a permutation , outputs a PMG whose generated channel is the unitary transformation
In particular, this transformation acts coherently on arbitrary input superpositions and inputs entangled with additional registers.
Proof. Let be a permutation with polynomial-size evaluation circuit. The strategy is to use Lemma 5.1 by a simply circuit that generates the Choi state of the inverse .
Prepare the uniform superposition over , compute into a fresh register and SWAP the two registers. Since is a permutation, the same state equals
where is unitary. Applying Lemma 5.1 gives a polynomial-size PMG with generated channel . The computational model therefore gives access to this channel. This proves the theorem.
6 Quantum Computation with Efficient and Pure Process Matrices
In this section we construct pure processes, with unitary generating circuits constructed efficiently from the input. We first prove a general result on quantum changes of basis and then use it to invert USO outmaps. This gives our algorithm for USO and its consequences through classical reductions. We end by discussing connections to physical implementation.
6.1 A unitary generator for the USO Oracle
We recall the unique-sink orientation problem, introduced in [SW01]. The input describes an exponentially large graph by a circuit which computes the directions of the edges incident to a given vertex.
Definition 6.1 (Unique-Sink Orientation (USO) Problem). Let . The -dimensional Boolean cube has vertex set , where two vertices are adjacent if they differ in exactly one coordinate. For every , let be the string whose -th coordinate is 1 and all other coordinates are 0. An orientation of the cube assigns a direction to every edge, and is represented by a function , where if the edge between and is directed away from , and if it is directed to . In particular, for every and . We call the outmap of the orientation.
A face of the cube is obtained by fixing an arbitrary subset of coordinates to specified values. A sink of a face is a vertex of that face with no outgoing edges along any of its free coordinates. An orientation is called a unique-sink orientation (USO) if every face has exactly one sink. This includes the entire cube, obtained by fixing no coordinates, and faces consisting of a single vertex, obtained by fixing all coordinates (which trivially satisfies the requirement, because there are no free coordinates in that case).
In the computational problem USO, the input is a classical Boolean circuit computing an outmap s, promised that the corresponding orientation is a USO. The output is the unique vertex satisfying . Running times are measured in the description length of the input circuit.
The following characterization of unique-sink orientations is given in [SW01, Lemma 2.3]. We also state an equivalent formulation that will be useful for our constructions. For completeness, we provide a proof in Appendix A.1.
Lemma 6.1 (Pairwise characterization of USO). A function is a USO outmap if and only if
In particular, every USO outmap is a permutation of . For , Equation (6.1) is equivalent to
The original paper does not provide a proof, but this combinatorial fact is well-known and folklore.
Main technical theorem. We next construct a pure PMG for a family of quantum changes of basis. For each computational-basis label , consider a product state obtained by applying a single-qubit unitary at each coordinate, choosing between two gates according to . The generated transformation will map this state back to . The condition in Equation (6.2) guarantees both that these states form an orthonormal basis and that our generating circuit describes a pure process. Our algorithm for USO will follow as a special case.
Theorem 6.1 (Generating a USO-decomposable unitary by a pure PMG). Let be given by a classical Boolean circuit satisfying Equation (6.2). Let a set of single-qubit unitaries, each given by an ordinary unitary circuit. For every define
Then, the following holds.
• The vectors form an orthonormal basis of and thus the matrix
is unitary.
• Moreover, there is a classical deterministic polynomial-time algorithm that, given the circuits and , outputs a pair which is a pure PMG and whose generated Process Matrix Operator unitary (as in Definition 4.13) is the matrix .
Proof. We first verify the claim about the basis. Every has norm one because is unitary. For different , choose as in Equation (6.2). In the inner product , the factor at this coordinate is
Thus the vectors are orthonormal, and there are of them in .
The process matrix generator. We describe a polynomial-size unitary quantum circuit acting on 2 registers , , each having qubits. Specifically, let be the -qubit feedback input register with one qubit in each , and let be the -qubit external input register. On a basis input and an arbitrary quantum state , the circuit performs the following operations:
-
Compute in an initially all-zero, n-qubit work register W.
-
For every , apply to qubit of , controlled on the corresponding bit of .
-
Reverse the computation of , returning W to its all-zero state. The register R has not been changed, so this uncomputation does not require knowing the contents of Q.
-
Swap R and Q.
Consequently, the channel of C is the unitary given by
Validity of the generator. We prove the equivalent condition in Definition 4.13. Let be arbitrary additional registers, and let be an arbitrary unitary on . Write . Recall again that these registers and unitaries are used only in the proof of validity, the algorithm is not given their descriptions and need not implement them. Our goal is to show that the matrix
is a unitary transformation on the registers Q, E.
Our first step will be to look on the entire transformation before applying the partial trace. Let , be inputs to the and registers respectively and for let be an input to the register. We have the equalities
(6.5)
We next want to trace out the R register from the above transformation.
Writing the state as a standard-basis superposition over the feedback register. To compute the partial trace explicitly, we first expand the feedback output in the computational basis. This will let us identify the component which stays in each summand of the partial trace. Let us focus on registers R and E in Equation 6.5 and stop thinking about this as the output of a computation, and just as a state – we seek to write this state in a way that the R register contains a superposition of computational-basis vectors. Even more specifically, the state is enumerated by which we can fix, so what remains in registers R, E is
where for each , we define as the disjoint -th part of the string .
Next, for each value , , define the unitary
For bits , let be the matrix on obtained by fixing the input feedback bit of to and its output feedback bit to . Formally,
Equivalently, . We deduce the equality:
which overall, given Equation 6.5 implies
Therefore, when we take the partial trace, only the term survives. The external output remains, together with the matrix on multiplying that term. Summing over all feedback input labels , we obtain
Proving unitarity by block-wise analysis. We would next like to prove that . One view that Equation 6.6 allows is that the input and output of the register completely determines the transformation applied to the remaining system . Accordingly we will analyze block-wise, partitioned into blocks fixing the input-output of .
For , define the matrix by
Thus, x and y refer only to the external output and input registers, respectively. It follows that
We next compute the Q-blocks of . For every ,
(6.7)
In the last equality, we used that, for fixed , the -th factor depends on only through its -th bit. Recall that for all the matrix is unitary and thus . For , taking the part of the equality gives
Back to analyzing . If , Equation (6.8) implies that every factor in Equation (6.7) is , so the resulting matrix is . Otherwise, Equation (6.2) gives an index such that and . Write . At this coordinate, the factor is
where the equality follows from Equation (6.8), because . Hence the entire tensor product is zero. We have proved that the diagonal matrices of are identities and all its off-diagonal matrices are zero. Consequently,
Since the additional registers and the unitaries were arbitrary, this proves the equivalent condition in Definition 4.13. Together with the unitarity of , we conclude that is a pure PMG.
The generated channel. For the identity insertion, Lemma 4.1 identifies the generated unitary with . For every , its action is
for the matrix from the statement of Theorem 6.1. This proves Equation (6.3). In particular, the generated operation sends to , and the same equality holds with an identity operation on any untouched reference register. This concludes the proof.
The special case of USO. Taking and in the preceding theorem gives the following result.
Theorem 6.2 (Coherent inversion of a USO outmap). There is a classical deterministic polynomial-time algorithm which, given a circuit for a USO outmap , outputs a pure PMG (w.r.t. Definition 4.13) whose generated unitary is
In particular, one query to the generated channel on finds the unique sink with probability 1.
Proof. Compute by an ordinary Boolean circuit. By Lemma 6.1, satisfies Equation (6.2). For the gates , the circuit in Theorem 6.1 is
It is a pure PMG by that theorem. Moreover, , which proves Equation (6.9). The computational model gives access to the generated channel . Applying it to gives , the unique sink.
For general , Theorem 6.1 instead gives a quantum basis transformation. Thus the same validity argument supports both the permutation inverse and the quantum constructions below. The relation between process functions and orthogonal product bases has been studied in [KB23]; here we specify a succinct circuit representation and prove the corresponding algorithm in .
Corollary 6.1 (Consequences of classical reductions). Every problem with a classical polynomial-time promise-preserving reduction to circuit-described Cube-USO has a polynomial-time algorithm using pure process computation.
Proof. Compute the outmap circuit supplied by the reduction, use Theorem 6.2 to find its sink, and decode the solution. For a polynomial-time Turing reduction, apply the same procedure to each USO instance it produces. On a promised source input, each such instance satisfies the USO promise, so our construction supplies a pure PMG for every call.
Known reductions therefore give polynomial-time algorithms using pure process computation for rational P-matrix linear complementarity [SW01], its generalized and P–Lin-Bellman formulations, and Grid-USO with total-side-length encoding [BFG 24]. They also cover simple stochastic, discounted, mean-payoff, and parity games [GR05, JS08, FJS09], quantitative stochastic parity games [BKZ25], and finite-state modal -calculus model checking [Wil01]. The game problems here have explicitly represented finite arenas and are turn-based, fully observed, two-player, and zero-sum, with binary rational numerical data where applicable. Model checking takes an explicitly represented finite transition system and a formula as input. We use these classical reductions directly; the process construction needed for each resulting USO instance is the one in Theorem 6.2.
6.2 Connections to physical implementation
Theorem 6.2 gives an efficient generating circuit for a pure process that solves USO. Whether pure processes can be implemented physically with resources polynomial in the size of their generating circuits remains unknown. The structure of our construction gives concrete connections to existing circuit simulations and proposals for physical implementation, which we discuss below.
For our algorithm, a physical implementation would need to provide the generated channel, obtained when all local operations are identities. Reproducing the entire process under arbitrary local operations is a stronger requirement. This distinction already appears in [AGB17, Section VI]: they construct a family of pure processes that violate causal inequalities, yet whose connected channels admit efficient ordinary-circuit simulations when the local operations are given by circuit descriptions. Their generators use controlled bit flips followed by a SWAP, as in our construction.
Our more general construction also has a concrete connection to work on quantum control of causal order. Recall that Theorem 6.1 generates the transformation
Each basis vector is a product state, with only two possible single-qubit operations at each coordinate. For example, take n = 3 and
With and , these vectors are exactly the SHIFT basis studied in [KB23]. Steffinlongo and Dourdent [SD26] show how a quantum switch can implement the corresponding projective measurement and propose a photonic realization. Thus, a specific case of our basis construction already has a switch-based implementation proposal. The proposal concerns measurement in this basis, rather than the coherent transformation T.
These connections suggest studying physical implementations of the generated transformation directly. For USO, the target is particularly simple to state: take , so that , and implement the map . The same two single-qubit gates are used for every instance; the instance enters through the efficiently computable function . Whether this structure permits a physical implementation with resources polynomial in the description of the instance remains open. Existing simulations and switch-based proposals establish particular cases, but do not provide such a construction for arbitrary USO instances.
Acknowledgements. The main ideas in this paper were developed by the author. During its preparation, the author used ChatGPT (OpenAI) to help work through and check mathematical arguments, draft and revise proofs, explore the literature, and improve the presentation. The author takes full responsibility for all statements and proofs in this paper.
References
[Aar05] Scott Aaronson. Quantum computing, postselection, and probabilistic polynomial-time. Proceedings of the Royal Society A, 461:3473–3482, 2005.
[ACB14] Mateus Araújo, Fabio Costa, and Časlav Brukner. Computational advantage from quantum-controlled ordering of gates. Physical review letters, 113(25):250402, 2014.
[AFNB17] Mateus Araújo, Adrien Feix, Miguel Navascués, and Časlav Brukner. A purification postulate for quantum mechanics with indefinite causal order. Quantum, 1:10, 2017.
[AGB17] Mateus Araújo, Philippe Allard Guérin, and Åmin Baumeler. Quantum computation with indefinite causal structures. Physical Review A, 96(5):052315, 2017.
[AMP24] Alastair A. Abbott, Mehdi Mhalla, and Pierre Pocreau. Quantum query complexity of boolean functions under indefinite causal order. Physical Review Research, 6(3):L032020, 2024.
[AMP25] Alastair A. Abbott, Mehdi Mhalla, and Pierre Pocreau. Classical and quantum query complexity of boolean functions under indefinite causal order. In Proceedings of the 22nd International Conference on Quantum Physics and Logic, volume 426 of Electronic Proceedings in Theoretical Computer Science, pages 270–300, 2025.
[AQWR24] Michael Antesberger, Marco Túlio Quintino, Philip Walther, and Lee A. Rozema. Higher-order process matrix tomography of a passively-stable quantum switch. PRX Quantum, 5(1):010325, 2024.
[AW09] Scott Aaronson and John Watrous. Closed timelike curves make quantum and classical computing equivalent. Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences, 465(2102):631–647, 2009.
[Bac17] Dave Bacon. Quantum approach to the unique sink orientation problem. Physical Review A, 96(1):012323, 2017.
[BCD 11] Luboš Brim, Jakub Chaloupka, Laurent Doyen, Raffaella Gentilini, and Jean-François Raskin. Faster algorithms for mean-payoff games. Formal Methods in System Design, 38(2):97–118, 2011.
[BCR 19] Åmin Baumeler, Fabio Costa, Timothy C. Ralph, Stefan Wolf, and Magdalena Zych. Reversible time travel with freedom of choice. Classical and Quantum Gravity, 36(22):224002, 2019.
[BFG 24] Michaela Borzechowski, John Fearnley, Spencer Gordon, Rahul Savani, Patrick Schnider, and Simon Weber. Two choices are enough for P-LCPs, USOs, and colorful tangents. In Proceedings of ICALP, 2024. Full version: arXiv:2402.07683v2.
[BKM 25] Jessica Bavaresco, Hlér Kristjánsson, Mio Murao, Tatsuki Odake, Marco Túlio Quintino, Philip Taranto, and Satoshi Yoshida. Simulating the quantum switch with quantum circuits is computationally hard. Nature Communications, 16:10216, 2025.
[BKZ25] Raphaël Berthon, Joost-Pieter Katoen, and Zihan Zhou. A direct reduction from stochastic parity games to simple stochastic games. In Proceedings of CONCUR, 2025. Full version: arXiv:2506.06223.
[BW12] Todd A Brun and Mark M Wilde. Perfect state distinguishability and computational speedups with postselected closed timelike curves. Foundations of Physics, 42:341–361, 2012.
[BW17] Åmin Baumeler and Stefan Wolf. Non-causal computation. Entropy, 19(7):326, 2017.
[BW18] Åmin Baumeler and Stefan Wolf. Computational tameness of classical non-causal models. Proceedings of the Royal Society A, 474(2209):20170698, 2018.
[CBB 21] Giulio Chiribella, Manik Banik, Some Sankar Bhattacharya, Tamal Guha, Mir Alimuddin, Arup Roy, Sutapa Saha, Sristy Agrawal, and Guruprasad Kar. Indefinite causal order enables perfect quantum communication with zero capacity channels. New Journal of Physics, 23(3):033039, 2021.
[CDP08] Giulio Chiribella, Giacomo Mauro D'Ariano, and Paolo Perinotti. Transforming quantum operations: Quantum supermaps. EPL, 83(3):30004, 2008.
[CDPV13] Giulio Chiribella, Giacomo Mauro D'Ariano, Paolo Perinotti, and Benoit Valiron. Quantum computations without definite causal structure. Physical Review A—Atomic, Molecular, and Optical Physics, 88(2):022318, 2013.
[CGK 18] Edmund M. Clarke, Jr., Orna Grumberg, Daniel Kroening, Doron Peled, and Helmut Veith. Model Checking. MIT Press, 2 edition, 2018.
[Chi12] Giulio Chiribella. Perfect discrimination of no-signalling channels via quantum superposition of causal structures. Physical Review A—Atomic, Molecular, and Optical Physics, 86(4):040301, 2012.
[Deu91] David Deutsch. Quantum mechanics near closed timelike lines. Physical Review D, 44(10):3197, 1991.
[DKSS14] Tushar Deshpande, Panagiotis Katsaros, Scott A. Smolka, and Scott D. Stoller. Stochastic game-based analysis of the DNS bandwidth amplification attack using probabilistic model checking. In Proceedings of the 10th European Dependable Computing Conference (EDCC), pages 226–237. IEEE, 2014.
[ESC18] Daniel Ebler, Sina Salek, and Giulio Chiribella. Enhanced communication with the assistance of indefinite causal order. Physical review letters, 120(12):120502, 2018.
[FJS09] John Fearnley, Marcin Jurdziński, and Rahul Savani. Linear complementarity algorithms for infinite games. arXiv:0909.5653, 2009.
[FV20] David Felce and Vlatko Vedral. Quantum refrigeration with indefinite causal order. Physical review letters, 125(7):070603, 2020.
[GFAB16] Philippe Allard Guérin, Adrien Feix, Mateus Araújo, and Časlav Brukner. Exponential communication complexity advantage from quantum superposition of the direction of communication. Physical review letters, 117(10):100502, 2016.
[GGK 18] Kaumudibikash Goswami, Christina Giarmatzi, Michael Kewming, Fabio Costa, Cyril Branciard, Jacqueline Romero, and Andrew G White. Indefinite causal order in a quantum switch. Physical review letters, 121(9):090503, 2018.
[GR05] Bernd Gärtner and Leo Rüst. Simple stochastic games and P-matrix generalized linear complementarity problems. In Proceedings of FCT, 2005.
[GTW 26] Yu Guo, Hao Tang, Bo-Xuan Wang, Min-Yu Lv, Jia-Wen Fan, Xiao-Min Hu, Yun-Feng Huang, Chuan-Feng Li, Guang-Can Guo, Giulio Chiribella, and Bi-Heng Liu. Experimental violation of a bell-like inequality for causal order. Science Advances, 12(24):eaee2912, 2026.
[Har05] Lucien Hardy. Probability theories with dynamic causal structure: a new framework for quantum gravity. arXiv preprint gr-qc/0509120, 2005.
[Har07] Lucien Hardy. Towards quantum gravity: a framework for probabilistic theories with non-fixed causal structure. Journal of Physics A: Mathematical and Theoretical, 40(12):3081–3099, 2007.
[Har09] Lucien Hardy. Quantum gravity computers: On the theory of computation with indefinite causal structure. In Quantum reality, relativistic causality, and closing the epistemic circle: essays in honour of Abner Shimony, pages 379–401. Springer, 2009.
[JS08] Marcin Jurdziński and Rahul Savani. A simple P-matrix linear complementarity problem for discounted games. In Proceedings of CiE, volume 5028 of LNCS, pages 283–293, 2008.
[Kar10] Richard M Karp. Reducibility among combinatorial problems. Springer, 2010.
[KB23] Ravi Kunjwal and Åmin Baumeler. Trading causal order for locality. Physical Review Letters, 131:120201, 2023.
[KPW18] Marta Kwiatkowska, David Parker, and Clemens Wiltsche. PRISM-games: Verification and strategy synthesis for stochastic multi-player games with multiple objectives. International Journal on Software Tools for Technology Transfer, 20(2):195–210, 2018.
[LMGP 11a] Seth Lloyd, Lorenzo Maccone, Raul Garcia-Patron, Vittorio Giovannetti, and Yutaka Shikano. Quantum mechanics of time travel through post-selected teleportation. Physical Review D—Particles, Fields, Gravitation, and Cosmology, 84(2):025007, 2011.
[LMGP 11b] Seth Lloyd, Lorenzo Maccone, Raul Garcia-Patron, Vittorio Giovannetti, Yutaka Shikano, Stefano Pirandola, Lee A Rozema, Ardavan Darabi, Yasaman Soudagar, Lynden K Shalm, et al. Closed timelike curves via postselection: theory and experimental test of consistency. Physical review letters, 106(4):040403, 2011.
[OCB12] Ognyan Oreshkov, Fabio Costa, and Časlav Brukner. Quantum correlations with no causal order. Nature communications, 3(1):1092, 2012.
[QLX 26] Dengke Qu, Quan Lin, Lei Xiao, Xiang Zhan, and Peng Xue. Experimental violation of a bell-like causal inequality in a photonic quantum switch. Science Advances, 12(32):eaee9271, 2026.
[RAC 26] Carla M. D. Richter, Michael Antesberger, Huan Cao, Philip Walther, and Lee A. Rozema. Toward an experimental device-independent verification of indefinite causal order. PRX Quantum, 7(1):010354, 2026.
[RB22] Martin J. Renner and Časlav Brukner. Computational advantage from a quantum superposition of qubit gate orders. Physical Review Letters, 128(23):230503, 2022.
[RRF 17] Giulia Rubino, Lee A Rozema, Adrien Feix, Mateus Araújo, Jonas M Zeuner, Lorenzo M Procopio, Časlav Brukner, and Philip Walther. Experimental verification of an indefinite causal order. Science advances, 3(3):e1602589, 2017.
[SD26] Anna Steffinlongo and Hippolyte Dourdent. Simulating noncausality with quantum control of causal orders. Physical Review Research, 8:013127, 2026.
[SW01] Tibor Szabó and Emo Welzl. Unique sink orientations of cubes. In Proceedings of FOCS, pages 547–555, 2001.
[VV85] Leslie G Valiant and Vijay V Vazirani. Np is as easy as detecting unique solutions. In Proceedings of the seventeenth annual ACM symposium on Theory of computing, pages 458–463, 1985.
[Wil01] Thomas Wilke. Alternating tree automata, parity games, and modal -calculus. Bulletin of the Belgian Mathematical Society – Simon Stevin, 8, 2001.
[ZYC20] Xiaobin Zhao, Yuxiang Yang, and Giulio Chiribella. Quantum metrology with indefinite causal order. Physical Review Letters, 124(19):190503, 2020.
A Supplementary Proofs
We prove the pairwise characterization of USO, show that the USO property is necessary for our particular generating circuit, and bound the effect of approximating the single-qubit gates in our more general construction.
A.1 The USO characterization and validity of our construction
The characterization in Lemma 6.1 compares pairs of vertices. We first show that, on every face of a USO, the outmap restricted to the free coordinates takes each possible value exactly once. The pairwise condition will then follow by considering the smallest face containing the two vertices.
Proof of Lemma 6.1. Suppose that is a USO outmap, and fix a face with free coordinates . We want to show that
is a bijection between the vertices of this face and .
First, fix . Partition the face into the smaller faces whose free coordinates are precisely . A vertex satisfies for every if and only if it is the sink of its smaller face. Since each smaller face has exactly one sink, there are exactly such vertices.
Now fix . We count the vertices whose outmap is zero exactly on the coordinates in , among those in . By inclusion–exclusion, this number is
Thus every possible outmap value occurs exactly once. For any distinct vertices , consider the smallest face containing both. Its free coordinates are exactly those where and differ. Their outmap values on these coordinates must also differ, proving Equation (6.1).
Conversely, suppose Equation (6.1) holds. Apply it first to two vertices differing only at coordinate i. Their i-th outmap bits must differ, so s assigns a consistent direction to their shared edge. Next, fix any face with free coordinates J. The same condition says that its restricted outmap is injective. Since the face and have the same size, this map is bijective. Exactly one vertex maps to the all-zero string on J, and this vertex is the unique sink of the face. Taking the entire cube also shows that s is a permutation.
Finally, whenever , we have
Substituting gives Equation (6.2).
Why our generating circuit needs the USO property. Theorem 6.2 shows that a USO gives a valid pure PMG. For the particular circuit used in that theorem, the converse also holds. To see why, we choose local channels that fix some feedback inputs and therefore restrict them to a face. On external input , the trace of the resulting output counts the sinks of that face. Validity requires this trace to be exactly one.
Proposition A.1 (The exact condition needed by our USO generator). Let be any Boolean function, and let be the unitary circuit in Equation (6.10). Then is a PMG if and only if is a USO outmap.
Proof. One direction is Theorem 6.2. For the other, suppose is a PMG. Fix a face by setting the coordinates in to a string , and write for its free coordinates. At each feedback pair , insert the channel that discards its input and prepares . At each feedback pair , insert the identity. Set the external input to .
The reset channel at coordinate i has Kraus operators
For each , let be the connected Kraus operator corresponding to these choices of . Write . Expanding the operator partial trace gives
Indeed, the reset channels force , and their Kraus operators select the feedback outputs . At a free coordinate , the identity connection requires , which is equivalent to .
Every vertex satisfying and for all appears for exactly one value of , with amplitude one. Distinct vertices give orthogonal output states. Therefore,
Since the connected transformation is trace-preserving, this number must be one. On a one-dimensional face, this says that exactly one endpoint has outmap bit zero along its edge, so s defines a consistent orientation. On any face, it then says that there is exactly one sink. Thus s is a USO outmap.
Approximating the single-qubit gates. Theorem 6.1 applies to any choice of the single-qubit unitaries. Thus, replacing them by unitary approximations still gives a pure PMG. What changes is the generated unitary. The next lemma bounds this change in terms of the approximation error of the individual gates.
Lemma A.1 (Precision of the basis transformation). Fix as in Theorem 6.1. Let , be the generated matrices for two collections of single-qubit unitaries , . If
then
Here is the operator norm, and is the squared Frobenius norm. If both collections are implemented by unitary circuits, both generating circuits describe pure PMGs exactly.
Proof. Fix a row x of T. By Equation (6.3), this row is
Replace these factors one at a time by the corresponding factors from . Each replacement changes the row by Euclidean norm at most : the changed factor differs by norm at most , and every other factor has norm one. By the triangle inequality, the two rows differ by norm at most . Summing the squared differences over the rows gives
Taking square roots and using that the operator norm is at most the Frobenius norm proves Equation (A.1). Both generating circuits describe pure PMGs by Theorem 6.1.
The same bound controls the output trace distance, including when the input is entangled with a reference register. Tensoring with the identity on that register leaves the operator norm unchanged. For unit vectors , , the trace distance between their density matrices is
Applying this inequality to the two output states gives the claim for pure joint inputs. For a mixed joint input, first purify it and then discard only the additional purifying register. Trace distance cannot increase under this last operation, so the bound also holds for mixed inputs, with the original reference register included in the output.
The approximation compares the unitary matrices with their specified phases. These phases matter here: a gate is selected according to the feedback input, so changing its phase can change the relative phases between different branches of the computation.