The Quantum Monad on Relational Structures
Samson Abramsky, Rui Soares Barbosa, Nadish de Silva, Octavio, Zapata

TL;DR
This paper introduces a quantum monad framework for homomorphism games on relational structures, revealing how quantum strategies can demonstrate contextuality and quantum advantage in various computational and logical tasks.
Contribution
It develops a novel quantum monad approach to homomorphism games, linking quantum strategies with categorical structures and contextuality, unifying previous results.
Findings
Quantum strategies correspond to Kleisli morphisms in the quantum monad.
Examples of quantum advantage powered by contextuality are provided.
The framework unifies diverse prior results in quantum computation and relational structures.
Abstract
Homomorphisms between relational structures play a central role in finite model theory, constraint satisfaction and database theory. A central theme in quantum computation is to show how quantum resources can be used to gain advantage in information processing tasks. In particular, non-local games have been used to exhibit quantum advantage in boolean constraint satisfaction, and to obtain quantum versions of graph invariants such as the chromatic number. We show how quantum strategies for homomorphism games between relational structures can be viewed as Kleisli morphisms for a quantum monad on the (classical) category of relational structures and homomorphisms. We show a general connection between these notions and state-independent quantum realizations of strong contextuality in the Abramsky-Brandenburger formulation of contextuality. We use these results to exhibit a wide range of…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
\newarrow
Eq===== \newarrowmon¿—¿ \newarrowepi—-¿¿ \newarrowmto——¿ \newarrowrel–+-¿ \newarrowincC—¿ \newarrowpfn—-harpoon \diagramstyle[newarrowhead=vee,newarrowtail=vee]
The Quantum Monad on Relational Structures
Samson Abramsky
Department of Computer Science, University of Oxford
{samson.abramsky,rui.soares.barbosa}@cs.ox.ac.uk
Rui Soares Barbosa
Department of Computer Science, University of Oxford
{samson.abramsky,rui.soares.barbosa}@cs.ox.ac.uk
Nadish de Silva
Department of Computer Science, University College London
[email protected], [email protected]
Octavio Zapata
Department of Computer Science, University College London
[email protected], [email protected]
Abstract
Homomorphisms between relational structures play a central role in finite model theory, constraint satisfaction and database theory. A central theme in quantum computation is to show how quantum resources can be used to gain advantage in information processing tasks. In particular, non-local games have been used to exhibit quantum advantage in boolean constraint satisfaction, and to obtain quantum versions of graph invariants such as the chromatic number. We show how quantum strategies for homomorphism games between relational structures can be viewed as Kleisli morphisms for a quantum monad on the (classical) category of relational structures and homomorphisms. We use these results to exhibit a wide range of examples of contextuality-powered quantum advantage, and to unify several apparently diverse strands of previous work.
1 Introduction
Finite relational structures and the homomorphisms between them form a mathematical core common to finite model theory [24], constraint satisfaction [14], and relational database theory [23]. Moreover, much of graph theory can be formulated in terms of the existence of graph homomorphisms, as expounded e.g. in the influential text [17]. Thus, implicitly at least, the mathematical setting for all these works is categories of -structures and homomorphisms, for relational vocabularies .
What could it mean to quantize these structures? More precisely, with the advent of quantum computing, we can now consider the consequences of using quantum resources for carrying out various information-processing tasks. A major theme of current research is to delineate the scope of the quantum advantage which can be gained by the use of quantum resources. How can this be related to these fundamental structures?
Our starting point is the notion of quantum graph homomorphism introduced in [26] as a generalization of the notion of quantum chromatic number [11]. Consider the following game, played by Alice and Bob cooperating against a Verifier. Their goal is to establish the existence of a homomorphism for given graphs and . Verifier provides vertices to Alice and Bob respectively. They produce outputs in response. No communication between Alice and Bob is permitted during the game. They win if the following conditions hold: and , where we write for the adjacency relation.
If only classical resources are permitted, then the existence of a perfect strategy for Alice and Bob — one in which they win with probability 1 — is equivalent to the existence of a graph homomorphism in the standard sense. However, using quantum resources, in the form of an entangled bipartite state where Alice and Bob can each perform measurements on their part, there are perfect strategies in cases where no classical homomorphism exists, thus exhibiting quantum advantage.
Alice–Bob games have also been studied for other tasks, notably for constraint systems. Consider the following system of linear equations over :
[TABLE]
Of course, this system is not satisfiable in the standard sense, as we can see by summing over the left- and right-hand sides. Now consider the following Alice–Bob game. The Verifier sends Alice an equation, and Bob a variable. Alice returns an assignment to the variables in the equation, and Bob returns an assignment for his variable. They win if Bob’s assignment agrees with Alice’s, and moreover Alice’s assignment satisfies the given equation. Classically, the existence of a perfect strategy is equivalent to the existence of a satisfying assignment for the whole system. Using quantum resources, there is a perfect strategy for the above system, which corresponds to Mermin’s “magic square” construction [28]. This can be generalized to a notion of quantum perfect strategies for a broad class of constraint systems [13, 12], which have strong connections both to the study of contextuality in quantum mechanics, and to a number of challenging mathematical questions [35, 34]. Clearly, these games are analogous to those for graph homomorphisms. What is the precise relationship?
In [26], generalizing results in [11], the existence of a quantum perfect strategy for the homomorphism game from to is characterized in terms of the existence of a family of projectors in -dimensional Hilbert space for some , subject to certain conditions. Analogous results for constraint systems are proved in [13]. This characterization eliminates the two-person aspect of the game, and the shared state, leaving a “projector-valued relation” as the witness for existence of a quantum perfect strategy. We shall henceforth call these witnesses quantum graph homomorphisms. An important further step is taken in [26]. A construction on graphs is introduced, such that the existence of a quantum graph homomorphism from to is equivalent to the existence of a standard graph homomorphism .
Our contribution begins at this point. We describe a general notion of non-local game for witnessing homomorphisms between structures for any relational signature. We show that the use of quantum resources in these games can be characterized by a notion of quantum homomorphism. Moreover, quantum homomorphisms can in turn be characterized as the Kleisli morphisms for a quantum monad on the (classical) category of relational structures and homomorphisms. This monad is graded [29] by the dimension of the Hilbert space.
Our account refines and generalizes the ideas from both [11, 26] and [13]. We characterize quantum solutions for general constraint satisfaction problems, showing as a special case that these subsume the binary constraint systems of [13]. We also show how quantum witnesses for strong contextuality in the sense of [4] are characterized by quantum homomorphisms.
The precise relationship with the quantum graph homomorphisms of [26] turns out to be more subtle. We show that their notion is characterized by a quantum solution in our sense for a related boolean constraint system. Overall, we show that a wide range of notions of quantum advantage is captured in a uniform way by the quantum monad, applied directly to the standard classical structures.
For reasons of limited space, some background material on linear algebra and quantum mechanics and some proofs have been relegated to an Appendix.
2 From quantum perfect strategies to quantum homomorphisms
We write . We fix a finite relational vocabulary , where has arity , . A -structure has the form , where is a non-empty set, and , . A homomorphism of -structures is a function such that, for all and : . Here we use vector notation: , and . We denote the category of -structures and homomorphisms by , and the full subcategory of finite structures by .
We now consider the following game, played on finite structures , , in which Alice and Bob cooperate to convince a Verifier that there is a homomorphism from to :
- •
Alice and Bob are separated, and not allowed to communicate (exchange classical information) while the game is played.
- •
In a play of the game, the Verifier sends Alice an index , and a tuple ; and Bob an element .
- •
Alice returns a tuple , and Bob returns an element .
- •
Alice and Bob win that play if
- (i)
- (ii)
, .
Alice and Bob may use probabilistic strategies. A perfect strategy is one in which they win with probability .
It is clear that if only classical resources are allowed, the existence of a perfect strategy is equivalent to the existence of a homomorphism from to . The actual strategy played by Alice and Bob may be pure or mixed, in the latter case using some shared randomness.
We now consider the use of quantum resources in the homomorphism game. We shall only consider the case of finite-dimensional resources in this paper. Such resources have the following general form:
- •
There are finite-dimensional Hilbert spaces and , and a pure state on . This state is shared between Alice and Bob. The separation between Alice and Bob is reflected in the fact that Alice can only perform operations on , while Bob can only perform operations on .
- •
For each and tuple , Alice has a POVM .
- •
For each , Bob has a POVM
These resources are used as follows:
- •
Given and , Alice measures on her part of .
- •
Given , Bob measures on his part of .
- •
They obtain the joint outcome with probability .
If with probability 1 the outcome satisfies the winning conditions, then this is a quantum perfect strategy.
We can write the winning conditions explicitly in terms of the quantum operations:
[TABLE]
A first remark is that our assumption of the bipartite structure of the state space does not in fact lose any generality. We could have asked simply that Bob’s operators commute with those of Alice. However, since we are considering the finite-dimensional case, a result of Tsirelson [36, 34] implies that this is equivalent to the tensor product formulation we have used.
Furthermore, using a pure state also does not lose any generality. Indeed, if we had a mixed state , with the trace replacing the inner products in (QS1) and (QS2), then the linearity of the trace implies that we could just as well use any of the pure states with the same measurements, and still satisfy the conditions.
We shall now show that in fact a quantum perfect strategy can without loss of generality be assumed to have a very special form, which will lead us to the equivalence with quantum homomorphisms. These results combine ingredients from [13] and [26, 11]. The proofs are closest to those in [33], but are considerably simpler as well as more general.
For notational convenience, we shall focus on the case where the relational signature has a single -ary relation . Thus a quantum perfect strategy for the homomorphism game from to has the form , where and are POVMs satisfying the conditions (QS1) and (QS2).
Our first step is to show that without loss of generality, can be taken to have full Schmidt rank.
Lemma 1**.**
Given a quantum perfect strategy , we can find a strategy where has the form with for all .
Proof.
Our proof will follow closely the first part of the proof of Theorem 6.5.1 in [33], so we omit detailed calculations. We write the Schmidt decomposition of as , where , are orthonormal families of vectors, and .
We define , . Thus , and . It is straightforward to verify that . We have , and .
Similarly, we define , and . Again, it is straightforward to verify that this yields well-defined POVMs, and moreover that the probabilities are preserved: . Thus is a quantum perfect strategy. ∎
The following simple general result will be useful.
Lemma 2**.**
Let be a -algebra, and , , be self-adjoint elements of , where is also invertible. Suppose that . Then and are projectors, and they both commute with . If is a -algebra, then .
Proof.
First, . Since is invertible, this implies that , so is a projector. Similarly, . Moreover, since , and are self-adjoint, . Hence .
If is a -algebra, then it is standard that commutes with every element which commutes with [9, 31], so , and since is invertible, this yields . ∎
We shall now show that under the assumption of full Schmidt rank, the measurements are already remarkably constrained. We define .
Lemma 3**.**
Let be a quantum perfect strategy in which has full Schmidt rank. Then for all , , , and are projectors, and whenever .
Proof.
We write as , where . The corresponding diagonal matrix is full rank, and hence invertible, and . Note that , the vectorization of . Using the standard equations and , we have
[TABLE]
By Proposition 17, , and since is invertible, this is equivalent to . By the quantum strategy condition (QS1), when and . This in turn implies that when and .
Now fix and . Let , and . We have , and when . Hence . We can now apply Lemma 2, taking , , and , to conclude that and are projectors, and moreover that they commute with . We can use the last part of Lemma 2 to conclude that whenever . ∎
Finally, we show that the state can be chosen to be maximally entangled.
Lemma 4**.**
Let be a quantum perfect strategy where with for all . Then is a quantum perfect strategy, where is the maximally entangled state.
Proof.
Let be the diagonal matrix associated with . Using Lemma 3,
[TABLE]
since commutes with and is invertible. Similarly,
[TABLE]
These conditions will be preserved by any state whose diagonal matrix is full rank and commutes with the matrices . This holds in particular for the maximally entangled state, whose diagonal matrix has the form . ∎
We can now combine Lemmas 1, 3 and 4 to obtain the following result:
Theorem 5**.**
The existence of a quantum perfect strategy implies the existence of a strategy with the following properties:
- •
The POVMs and are projective.
- •
The state is a maximally entangled state .
- •
If then .
- •
If and , then .
It is worth noting that the procedure for obtaining the strategy in this special form has three steps:
- •
In Step 1, the state and strategies are projected down to the subspace corresponding to the support of the Schmidt decomposition of the state. This step reduces the dimension of the Hilbert space, and preserves the probabilities for the strategy exactly.
- •
Step 2 does not change the strategy at all, but shows that it must already have strong properties.
- •
Step 3 changes the state but not the measurements. In general, the probabilities for the strategy will be changed, but the possibilities are preserved exactly.
Thus in passing to the special form, the dimension is reduced; the process by which we obtain projective measurements is not at all akin to dilation.
This theorem shows that all the information determining the strategy is in Alice’s operators. Moreover, Alice’s operators must be chosen non-contextually, so that is independent of the context . This means that we can define projectors whenever . If , then we have , so is well-defined.
Now, recall the notion of joint measurability: a family of POVMs , …, is said to be jointly measurable if there is a POVM such that for all , . The following result is standard [16].
Proposition 6**.**
A family of projective measurements is jointly measurable by a POVM if and only if they pairwise commute, and in this case the POVM is the product of the family, and hence projective.
For each , the projective measurements defined above are jointly measured by . Thus is the projective measurement given by .
We shall now introduce the notion of quantum homomorphism between relational structures and . A quantum homomorphism is a family of projectors in for some , satisfying the following conditions:
- •
(QH1) For all , .
- •
(QH2) For all , , , and , . Thus we can define a projective measurement , where .
- •
(QH3) If and , then .
Note that (QH1) implies that for any , whenever .
We write for the existence of a quantum homomorphism from to .
Theorem 7**.**
For finite structures , , the following are equivalent:
There is a quantum perfect strategy for the homomorphism game from to . 2. 2.
.
Proof.
The implication from (1) to (2) follows directly from Theorem 5 and the subsequent discussion. For the converse, given a quantum homomorphism , we can define , , and use the maximally entangled state to obtain a quantum perfect strategy. It is straightforward to verify that the homomorphism conditions (QH1)–(QH3) imply the strategy conditions (QS1) and (QS2). ∎
As a final remark, although we have focussed on a single relation to simplify the notation, our results go through for arbitrary relational signatures. Note that the general form of condition (QH2) is that and must commute whenever and are adjacent in the Gaifman graph of — that is, they both occur in some tuple of some relation.
3 From quantum homomorphisms to the quantum monad
We now show how to characterize quantum homomorphisms as the Kleisli morphisms of a monad on the category of relational structures. This monad is graded [29] by the dimension of the Hilbert space used as the quantum resource.
The monad will be defined on the category of all -structures, since will always be infinite, even if is finite. For the underlying universes of the structures, the construction can be seen as a quantum variant of the discrete distribution monad [19], widely used in coalgebra and semantics. It is well known that the distribution monad can be defined over any commutative semiring, with the non-negative reals being used for the standard case of probabilities [19, 4]. Here we shall use the projectors with ranging over the positive integers. For each , is a partial commutative semiring, since we can only add projectors if they are orthogonal, and only multiply them if they commute. We also have the graded multiplication given by the tensor product: if and , then .
We fix a relational signature . For each positive integer and -structure , we shall define a -structure . The universe of this structure is the set of all functions satisfying the normalization condition: . Note that the normalization condition implies that the projectors are pairwise orthogonal. Since we are in finite dimension , this in turn implies that has finite support: for all but finitely many . We can think of as the projector-valued distributions on in dimension .
For each relation of arity in , we define to be the set of all tuples such that:
- •
(QR1) For all , : .
- •
(QR2) For all , if , then , where .
Note that the first condition implies that the product of projectors in the second is a well-defined projector.
Proposition 8**.**
Let and be finite -structures. There is a bijective correspondence between quantum homomorphisms from to in dimension and standard homomorphisms .
Proof.
Given a quantum homomorphism , define by , where . (QH1) implies normalization. Given , we have to show that . (QH2) implies that (QR1) is satisfied for , , where , . Similarly, (QH3) implies (QR2).
For the converse, given , define . Again, normalization implies (QH1), (QR1) implies (QH2), and (QR2) implies (QH3). ∎
This correspondence is analogous to the familiar one between relations and set-valued functions, which shows that the category of relations is the Kleisli category of the powerset monad on .
Now we show that extends to a functor on . Given a homomorphism , we define by .
Proposition 9**.**
* is a well-defined homomorphism. Moreover, is functorial: and .*
Proof.
The finite support and normalization conditions ensure that is well-defined. Functoriality is proved exactly as for the distribution monad. We verify that is a homomorphism. Suppose that . By (QR1), this implies that for all , . This implies that
[TABLE]
so satisfies (QR1). For (QR2), if ,
[TABLE]
by (QR2) for , since and implies . Thus . ∎
The unit of the monad sends to the “delta distribution” , where , if . Verification that this is well-defined and yields a natural transformation is straightforward.
We also have the graded monad multiplication: . This is defined as follows: . We prove that this gives a well-defined natural transformation in the Appendix. Thinking of as the graded semiring multiplication on projectors, we can see the correspondence to the distribution monad.
We recall that given a category , the endofunctor category is monoidal; a monad on is a monoid in this category [25]. Now let be a monoid, which we can view as a discrete category with a strict monoidal structure. An -graded monad [29] on is a lax monoidal functor from into . Such a functor is given by the following data: an assignment of an endofunctor on to each element of ; a natural transformation (the graded unit); and a natural transformation for all , (the graded multiplication). These are subject to coherence conditions, which generalize the usual monad equations. We refer to [29] for details.
In our case, we use the monoid of positive integers under multiplication.
Theorem 10**.**
The triple is a -graded monad on .
The proof of this result involves verifying a number of equations, and is fairly lengthy but straightforward. We provide details in the Appendix.
We are particularly interested in the Kleisli category for this graded monad. The objects of this category are the same as those of . A morphism from to is a homomorphism . By Proposition 8, we know that Kleisli morphisms correspond exactly to quantum homomorphisms.
The graded composition of Kleisli arrows and is the arrow given by . An explicit description can be calculated from the graded monad structure given above: . If we write this in terms of the corresponding quantum homomorphisms , , we obtain given by the formula . This generalizes the concrete definition for quantum graph homomorphisms from [26].
4 Quantum advantage via the quantum monad
We shall now show how the quantum monad provides a unified framework for expressing quantum advantage in a wide range of information processing tasks. We shall show equivalences between:
- •
state-independent strong contextuality arguments
- •
quantum advantage in constraint satisfaction
- •
existence of quantum (but not classical) homomorphisms between relational structures.
4.1 Classical correspondences
We begin with the standard classical correspondence between constraint satisfaction problems and the existence of homomorphisms. A CSP instance has the form where is a set of variables, is a domain of values111One could have different domains associated with different variables. However, this is an inessential generalization, which we omit to keep notation simple., and is a set of constraints of the form , where for some , , and . We say that is a -ary constraint. A solution of the CSP is a function such that, for all , , where .
Given we define two structures over the signature with a -ary relation symbol for each -ary constraint . First, has as universe , and for each , . Secondly, has universe , and for each , . The following is immediate:
Proposition 11**.**
There is a one-to-one correspondence between solutions for and homomorphisms .
There is also a converse to this result. Given -structures and , we can define the CSP , where , , and .
Proposition 12**.**
There is a one-to-one correspondence between homomorphisms and solutions for .
We will now look at empirical models over measurement scenarios, introduced in [4] as a general setting for studying contextuality, in quantum mechanics and beyond, with non-locality as a special case.
A measurement scenario is a triple , where is a set of measurement labels; is a family of subsets of , where we think of as a set of compatible measurements, or a context; and is a set of measurement outcomes. An empirical model for a scenario is a family of probability distributions on the joint outcomes of measuring all the variables in a context . Such empirical models can arise from observational data (hence the name), or be generated by measuring a quantum state in contexts comprising jointly measurable observables. A hierarchy of notions of contextuality can be defined in this general setting [4, 2]. We shall be concerned with strong contextuality. We say that is strongly contextual if there is no global assignment such that, for all , . That is, there is no global assignment which is consistent with the model in the sense of yielding possible outcomes (non-zero probability) in all contexts. This form of contextuality is witnessed by the GHZ construction [15, 27], as well as by Kochen–Specker paradoxes [21], and post-quantum devices such as the PR box [32].
Given , we fix an ordering on , and define a CSP , where is the set of constraints such that , and .
Proposition 13**.**
There is a one-to-one correspondence between consistent global assignments for and solutions of . Thus is strongly contextual iff has no (classical) solution.
We thus have a three-way correspondence between CSPs, empirical models, and homomorphisms between relational structures.
4.2 Quantum solutions
We now consider how quantum resources enter the picture. Since we already have a notion of quantum homomorphism for general relational structures, the correspondences established in the previous subsection give us ready-made notions of quantum solution for CSPs and empirical models. We define a quantum solution for a CSP to be a quantum homomorphism , i.e. a Kleisli morphism for some . Similarly, we define a quantum solution for an empirical model to be a quantum homomorphism .
We shall now compare these notions to existing ones for empirical models and constraints. These will turn out to be special cases.
Note first that given an empirical model , the corresponding CSP is determined purely by the supports of the probability distributions , i.e. the possibilistic content of the model. It is only this information which is relevant to strong contextuality. We can consider a fine-grained notion of realization of a probabilistic empirical model, as in [4]. However, if our concern is to give a quantum witness for strong contextuality of an empirical model , then this is given by a state , and a PVM for each , such that whenever and both occur in some . These must then satisfy, for all and , , where .
This provides a quantum witness for strong contextuality if is a strongly contextual empirical model. An example is provided by the GHZ state, using and measurements for each party [4]. An infinite family of such examples using three-qubit states is described in [1].
We can also consider a stronger notion. A state-independent quantum witness for is given by a family of PVMs which, for any state , yield a quantum witness for . The Mermin magic square and pentagram [28], and Kochen–Specker constructions [21, 10], provide examples of state-independent quantum realizations of strong contextuality. Note that in the state-independent case, we have the condition: . Comparison with the definition of quantum homomorphism immediately yields the following result:
Proposition 14**.**
For an empirical model there is a one-to-one correspondence between state-independent quantum witnesses for and quantum solutions for .
An interesting point arising from this result, taken together with the results from Section 2, is that state-independent strong contextuality proofs can always be underwritten by non-locality arguments. This can be seen as a general form of constructions for turning Kochen–Specker contextuality proofs into Bell non-locality arguments [18]. Indeed, the rôle of the entangled state and of Bob in the non-local game is to provide an operational or physical underpinning for the compatibility or generalized no-signalling assumption which is made for empirical models [4]. Can we find a similar underpinning in the state-dependent case? We shall return to this point in the final section.
We now consider binary constraint systems (BCS), which have been extensively studied [13, 12, 35, 20]. We shall follow the account in [13]. A BCS is simply a boolean CSP . In this case, constraints can be written in the form , where is a boolean function. Our general notion of quantum solution yields in this case a family of PVMs for , such that whenever and both occur in some constraint, and for with .
In [13], a notion of operator solution for a BCS is defined. This is an assignment of a self-adjoint operator (aka observable) to each variable , such that: (1) each is binary, i.e. ; (2) when and both occur in the same constraint. To express constraints, the representation of boolean values , , is used. It is standard that each boolean function can be uniquely represented by a real multilinear polynomial [30]. Moreover, if the corresponding boolean function in the -representation is , then for : . It is also standard that if we substitute pairwise commuting self-adjoint operators , …, for the variables , we obtain a self-adjoint operator . The condition for an operator solution to satisfy the constraints is then expressed as follows: for each constraint , where is represented by the polynomial , we must have .
To relate this notion of operator solution to our quantum solution, note that a binary observable with has a spectral decomposition , where , are projectors. Commutation of the observables for variables occurring in the same context is equivalent to commutation of the corresponding projectors. Given a constraint , since the observables , …, pairwise commute, we obtain a resolution of the identity . Multiplying by this expression yields
[TABLE]
It follows that iff for all with , . As an immediate consequence, we have:
Proposition 15**.**
Given a BCS , there is a one-to-one correspondence between operator solutions of the BCS and quantum solutions of the corresponding CSP.
4.3 Graphs
The results we have seen thus far show that our notion of quantum homomorphism subsumes a number of existing notions in contextuality and non-local games. However, as we shall now see, the situation in the setting which provided the original motivation for our approach, namely graph homomorphisms, is somewhat more subtle.
Graphs arise as structures for the signature with a single binary relation. Simple graphs are those where the relation is symmetric and irreflexive. If we specialize our definition of quantum homomorphism to the case between graphs and , this gives a family of projectors satisfying the following conditions:
- •
for all and with , ;
- •
for all and with and , .
This definition differs from that introduced by Mančinska and Roberson [26] as a generalization of quantum graph colouring [11], in that the latter does not impose the first condition forcing commutativity between the PVMs corresponding to adjacent vertices of . We refer to this as an MR quantum graph homomorphism in order to distinguish it from our notion.
This reflects a difference in the Alice–Bob game used to motivate each definition. In the game we consider, Alice receives an ordered edge of as an input and Bob a vertex of , and we require that Alice answers with an edge of and Bob with a vertex of in a fashion consistent with Alice’s choice. By contrast, Mančinska and Roberson consider a symmetric Alice–Bob game, where each player receives a vertex of as input and outputs a vertex of , and their outputs are required to be the same when they receive the same vertex, and required to form an edge of whenever their inputs form an edge of .
It is clear that a quantum homomorphism between graphs in the sense of this paper is also an MR quantum graph homomorphism. But the precise relationship between the two notions is yet to be understood in general: in particular, whether the existence of an MR quantum graph homomorphism implies the existence of a quantum homomorphism in our sense. However, by adapting a construction due to Ji [20], we can capture the existence of MR quantum graph homomorphisms in terms of quantum homomorphisms of relational structures, via a BCS.
Given graphs and , we define . For each , we have a boolean constraint ; a constraint when ; and a constraint whenever and . This defines a BCS .
Theorem 16**.**
Given graphs and , there is a one-to-one correspondence between MR quantum graph homomorphisms from to and quantum homomorphisms for the associated CSP .
Proof.
We recall that an MR quantum graph homomorphism is given by a family of projectors such that (MR1) , and (MR2) whenever and . A quantum homomorphism is given by a family of projectors , , , , such that the following conditions hold: (QH1) ; (QH2) , ; (QH3) , ; (QH4) , . The commutativity conditions which are additionally required are implied by the orthogonality conditions (QH2) and (QH3).
Given an MR homomorphism , we define , . Clearly (QH1) is satisfied. (MR1) implies (QH2), while (MR2) implies (QH3). Finally, using (QH2), , and by (MR1), (QH4) holds.
Conversely, given a quantum homomorphism , we define . (MR2) follows from (QH3), while using (QH1), we can reverse the reasoning in the previous paragraph to show that (QH4) implies (MR1). These passages are clearly mutually inverse, so the result follows. ∎
It is noteworthy that our approach allows us to avoid ad hoc coding of constraints by polynomials, as in [13, 20]. Instead, we quantize the standard classical notions in a uniform way, using the quantum monad.
5 Outlook
This work suggests a number of directions for further study. We list a few:
- •
A notion of quantum graph isomorphism, with an equivalent characterization via an Alice–Bob game, has been studied in [8]. This can be generalized to relational structures. How does this fit in our quantum monad framework?
- •
Our approach captures quantum advantage provided by state-independent strong contextuality. Does state-dependent contextuality admit a similar treatment?
- •
Any strategy for an Alice–Bob game has a winning probability, which is related to the contextual fraction [3]. Can our approach be adapted to deal with quantitative aspects?
- •
Homomorphisms are intimately related with the existential positive fragment. Can this be extended to provide a notion of quantum validity for first-order formulae?
- •
Can other concepts from finite model theory, such as pebble games, which admit a comonadic formulation [7], be similarly quantized?
- •
The algebras of the quantum monad can be described as convex structures with mixing weighted by projectors rather than just numbers in . Is this viewpoint useful?
Appendix
Review of linear algebra and quantum mechanics background
Since we are working in finite dimensions, we will use standard matrix notation. Thus we are dealing with complex matrices. We write matrix transpose as . Apart from the usual operations of matrix addition and multiplication, there is the adjoint , which is the conjugate transpose of . Thus . The zero matrix is , the identity matrix in dimension is .222We will omit dimensional subscripts whenever we can get away with it. We view complex matrices interchangably as linear maps , acting on “column vectors”, i.e. matrices. We identify matrices with scalars, i.e. complex numbers. The inner product of vectors is given by the matrix product . The norm of a vector is . The standard basis vectors in dimension are , where has ’th component , and all other components [math].
A square matrix is self-adjoint (aka Hermitian) if . It is positive semidefinite if it self-adjoint, and for all vectors . If is positive semidefinite, so is for any . We have the order if is positive semidefinite. The condition says exactly that is positive semidefinite. The matrices form a convex cone. is a projector if . We write for the set of projectors. A fact we shall use frequently is that for any family of projectors in , iff whenever .
If is a matrix and a matrix, then the Kronecker product is an matrix, which represents the tensor product of the corresponding linear maps. This operation is strictly associative, with unit . The key equation is the interchange law with matrix multiplication: . This is functoriality. The category of complex matrices is a strict monoidal category with respect to this operation. Indeed, the category of complex matrices is equivalent to the category of finite-dimensional Hilbert spaces at the level of dagger compact closed categories, the basic setting for categorical quantum mechanics [5, 6]. The final operation we consider is vectorization of a matrix: turns a matrix into a -vector by stacking the columns of on top of each other. In terms of the closed structure on the category of matrices, it is the name of the morphism . The “cup” or unit of the compact closed structure is . We have the equation , and the “sliding rule”: , from which we can derive the key equation for vectorization: . Diagrammatically, this is
A$$B$$C$$=$$A^{T}$$C$$B
A vector has a Schmidt decomposition , where , and are orthonormal sets of vectors in and respectively, and for all . This follows directly from Singular Value Decomposition. We refer to as the Schmidt rank of .
The following result is standard, but we did not find an explicit reference so we include a proof.
Proposition 17**.**
Let and be positive semidefinite matrices. Then .
Proof.
Since and are positive semidefinite, they have positive semidefinite square roots , , and , where . Since is positive semidefinite, . But implies . ∎
Now we briefly review the needed notions from quantum mechanics. A (pure) state in dimension is a vector of unit norm in . A POVM (positive operator-valued measure) is a family with for all , and . The indices label the measurement outcomes. Measuring a POVM on a state yields outcome with probability . A POVM is projective (or a PVM) if is a projector for all . This implies that for all , i.e. the projectors are mutually orthogonal. The product of projectors is a projector if and only if they commute, which is usually written as , where .
Quantum monads
Proposition 18**.**
For each , is a well-defined homomorphism, and yields a natural transformation.
Proof.
Firstly, is a well-defined function, by finiteness of support. To show that it is a homomorphism, consider . We must show firstly that for all , and , , where , . Using linearity, this reduces to showing that commutes with for all . Applying (QR1) to and , we have that commutes with . If commutes with , we are done. If not, then we know that cannot be adjacent to in the Gaifman graph of . Hence for any expansion with , , , so by (QR2) we must have . Using normalization, we have , and so
[TABLE]
Now let , . To show that (QR2) holds for reduces similarly to showing that, if , then for all . If we are done; otherwise, since , we must have , and applying (QR2) to , we must have .
Naturality is commutativity of the following square. {diagram} This is the following calculation:
[TABLE]
The second step uses the fact that . ∎
The unit and graded multiplication of a graded -monad are required to satisfy the following coherence conditions: {diagram}
We verify these for the quantum monad.
Lemma 19**.**
Let be a structure and . Then, the following diagram commutes: {diagram}
Proof.
Let and . The claim is that . The left-hand side of this equation expands to
[TABLE]
and the right-hand side to
[TABLE]
where is defined by for all . ∎
Lemma 20**.**
Let be a structure and . Then, the following diagram commutes: {diagram}
Proof.
Let and . The claim is that . We have:
[TABLE]
∎
Additional material on the quantum monad
We shall now show that the quantum monad is monoidal (or commutative) and affine [22]. This continues the analogy with the distribution monad, which is well known to have these properties [19].
The category has finite products, given by the usual cartesian product of structures. The terminal object is the one-element structure, with each relation interpreted as the universal relation. Because of normalization, the following is immediate:
Proposition 21**.**
For all , . Thus the quantum monad is affine.
Now given structures and , we define a map by .
Proposition 22**.**
This is a well-defined homomorphism, and the family defines a graded natural transformation satisfying the monoidal coherence conditions, thus witnessing a commutative strength.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] S. Abramsky, R.S. Barbosa, G. Carù, N. de Silva, K. Kishida, and S. Mansfield. Minimum quantum resources for strong non-locality, 2017. Submitted for publication.
- 2[2] Samson Abramsky, Rui Soares Barbosa, Kohei Kishida, Raymond Lal, and Shane Mansfield. Contextuality, cohomology and paradox. In Stephan Kreutzer, editor, 24th EACSL Annual Conference on Computer Science Logic (CSL 2015) , volume 41 of Leibniz International Proceedings in Informatics (LIP Ics) , pages 211–228, Dagstuhl, Germany, 2015. Schloss Dagstuhl–Leibniz-Zentrum für Informatik.
- 3[3] Samson Abramsky, Rui Soares Barbosa, and Shane Mansfield. The contextual fraction as a measure of contextuality. Submitted, 2017.
- 4[4] Samson Abramsky and Adam Brandenburger. The sheaf-theoretic structure of non-locality and contextuality. New J. Phys. , 13(11):113036, 2011.
- 5[5] Samson Abramsky and Bob Coecke. A categorical semantics of quantum protocols. In Logic in Computer Science, 2004. Proceedings of the 19th Annual IEEE Symposium on , pages 415–425. IEEE, 2004.
- 6[6] Samson Abramsky and Bob Coecke. Categorical quantum mechanics. Handbook of quantum logic and quantum structures: quantum logic , pages 261–324, 2008.
- 7[7] Samson Abramsky, Anuj Dawar, and Pengming Wang. The pebbling comonad in finite model theory. ar Xiv preprint ar Xiv:1704.05124 , 2017. To appear in Li CS 2017.
- 8[8] Albert Atserias, Laura Mančinska, David E Roberson, Robert Šámal, Simone Severini, and Antonios Varvitsiotis. Quantum and non-signalling graph isomorphisms. ar Xiv preprint ar Xiv:1611.09837 , 2016.
