Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Diagrammatic Reasoning and Quantum Computation
Aleks Kissinger
ACA, Kalamata
November 4, 2015
QUANTUM GROUP
Q UANTUM G ROUP Introduction Quantum circuits Spiders - - PowerPoint PPT Presentation
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey Diagrammatic Reasoning and Quantum Computation Aleks Kissinger ACA, Kalamata November 4, 2015 Q UANTUM G ROUP Introduction Quantum circuits Spiders ZX-calculus MBQC
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Aleks Kissinger
ACA, Kalamata
November 4, 2015
QUANTUM GROUP
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
A first course in quantum theory and diagrammatic reasoning Bob Coecke & Aleks Kissinger CUP 2015
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
certain equations
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
certain equations
(a · b) · c = a · (b · c) and a · e = a = e · a
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
certain equations
(a · b) · c = a · (b · c) and a · e = a = e · a
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
certain equations
(a · b) · c = a · (b · c) and a · e = a = e · a
(a · b) · c = a · (b · c)
a := x b := (y · e) c := z
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
certain equations
(a · b) · c = a · (b · c) and a · e = a = e · a
(a · b) · c = a · (b · c)
a := x b := (y · e) c := z then replace a sub-term: w · ((x · (y · e)) · z)
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
= a b c b c a = = a a a
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
= a b c b c a = = a a a
w · ((x · (y · e)) · z)
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
= a b c b c a = = a a a
w · ((x · (y · e)) · z)
becomes: w x y z x z w y
w x y
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
= a b c b c a
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
= a b c b c a
shared boundary:
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
= a b c b c a
shared boundary:
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
= = =
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
= = =
coalgebras: = = =
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
just trees =
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
just trees =
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
= ⊕
H H
⊕
H H
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
= ⊕
H H
⊕
H H H
Zα
⊕ ⊕
Zα
⊕ ⊕
Zα H
⊕
H H H H H
⊕ ⊕ ⊕ ⊕
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
= ⊕
H H
⊕
H H H
Zα
⊕ ⊕
Zα
⊕ ⊕
Zα H
⊕
H H H H H
⊕ ⊕ ⊕ ⊕ So, we can define an equational theory for quantum circuits, using rewriting.
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
H
⊕
Zα
⊕ ⊕ = ⊕
Zα H
⊕
H H H H
⊕ ⊕ ⊕ ⊕
H H
=
H
⊕
Zα
=
H
⊕
H Zα
⊕
H H H
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
H
⊕
Zα
⊕ ⊕ = ⊕
Zα H
⊕
H H H H
⊕ ⊕ ⊕ ⊕
H H
=
H
⊕
Zα
=
H
⊕
H Zα
⊕
H H H
encode decode
Z Z H H H H H H H
=
Z H
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
(Selinger 2013)
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
C1 = C2 = ⇒ C1 =E C2
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
C1 = C2 = ⇒ C1 =E C2
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
C1 = C2 = ⇒ C1 =E C2
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
C1 = C2 = ⇒ C1 =E C2
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
C1 = C2 = ⇒ C1 =E C2
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
C1 = C2 = ⇒ C1 =E C2
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
C1 = C2 = ⇒ C1 =E C2
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
C1 = C2 = ⇒ C1 =E C2
mostly machine-generated)
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
smaller pieces
H H H
⊕ ⊕ ⊕ ⊕
H Zα
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
smaller pieces
H H H
⊕ ⊕ ⊕ ⊕
H Zα
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
|1 → |11 ⊕ |00 → |0 |01 → |1 |10 → |1 |11 → |0
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
|1 → |11 ⊕
|−− → |−
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
|1 → |11 ⊕
|− → |−−
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
|1 → |11
|− → |−−
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
|1 → |11
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
|1 → |11
|1 → 1
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
|1 → |11
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
|1 → |11
|11 → |1
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
These satisfy 8 identities: = = = = = = = ...making them a commutative Frobenius algebra.
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
...you don’t need to remember all that! The only thing to remember is, for: ... ... :=
|1..1 → |1...1
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
...you don’t need to remember all that! The only thing to remember is, for: ... ... :=
|1..1 → |1...1 we have: ... ... ... ...
...
= ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
...you don’t need to remember all that! The only thing to remember is, for: ... ... :=
|1..1 → |1...1 we have: ... ... ... ...
...
= ... ...
=
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
...you don’t need to remember all that! The only thing to remember is, for: ... ... :=
|−..− → |−...− we have: ... ... ... ...
...
= ... ...
=
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Direction of edges doesn’t matter: = =:
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Direction of edges doesn’t matter: = =: ...in fact, only topology matters: = =
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Red + green spiders also satisfy: = = =
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Red + green spiders also satisfy: = = = ...from which we can derive: = make the overall structure into a Hopf algebra
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
... ... :=
|1..1 → |1...1 ... ... :=
|−..− → |−...−
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
α
... ... :=
|1..1 → eiα |1...1
α
... ... :=
|−..− → eiα |−...−
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
α
... ... :=
|1..1 → eiα |1...1 ...
α + β
... ... ...
α β ...
= ... ...
α
... ... :=
|−..− → eiα |−...− ...
α + β
... ... ...
α β ...
= ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Theorem
Phased spiders are universal for qubit quantum computation.
Proof.
Let: ⊕ :=
U
:=
γ β α
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
The ZX-calculus consists of the two spider-fusion rules:
...
α + β
... ... ...
α β ...
= ... ... ...
α + β
... ... ...
α β ...
= ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
The ZX-calculus consists of the two spider-fusion rules:
...
α + β
... ... ...
α β ...
= ... ... ...
α + β
... ... ...
α β ...
= ... ...
four Interaction rules:
= = =
π π π π α π
=
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
The ZX-calculus consists of the two spider-fusion rules:
...
α + β
... ... ...
α β ...
= ... ... ...
α + β
... ... ...
α β ...
= ... ...
four Interaction rules:
= = =
π π π π α π
=
and the Colour Change rule:
α
· · ·
α
· · · · · · · · = · · · · ·
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
The ZX-calculus consists of the two spider-fusion rules:
...
α + β
... ... ...
α β ...
= ... ... ...
α + β
... ... ...
α β ...
= ... ...
four Interaction rules:
= = =
π π π π α π
=
and the Colour Change rule:
α
· · ·
α
· · · · · · · · = · · · · ·
where
π 2 π 2 π 2
:=
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Theorem (Backens 2013)
The ZX-calculus is complete for Clifford ZX-diagrams: D1 = D2 = ⇒ D1 =zx D2 D1 :=
· · · · · ·
π 2
· · · · · ·
π 2
D2 :=
· · · · · ·
π 2
· · · · · ·
π 2
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
equivalent) paradigm to the circuit model
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
equivalent) paradigm to the circuit model
start with a big entangled state called a graph state and do many local measurements in different bases: ... ... ... ... ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
equivalent) paradigm to the circuit model
start with a big entangled state called a graph state and do many local measurements in different bases: ... ... ... ... ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
equivalent) paradigm to the circuit model
start with a big entangled state called a graph state and do many local measurements in different bases: ... ... ... ... ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
equivalent) paradigm to the circuit model
start with a big entangled state called a graph state and do many local measurements in different bases: ... ... ... ... ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
equivalent) paradigm to the circuit model
start with a big entangled state called a graph state and do many local measurements in different bases: ... ... ... ... ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
equivalent) paradigm to the circuit model
start with a big entangled state called a graph state and do many local measurements in different bases: ... ... ... ... ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
equivalent) paradigm to the circuit model
start with a big entangled state called a graph state and do many local measurements in different bases: ... ... ... ... ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
equivalent) paradigm to the circuit model
start with a big entangled state called a graph state and do many local measurements in different bases: ... ... ... ... ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
equivalent) paradigm to the circuit model
start with a big entangled state called a graph state and do many local measurements in different bases: ... ... ... ... ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
equivalent) paradigm to the circuit model
start with a big entangled state called a graph state and do many local measurements in different bases: ... ... ... ... ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
equivalent) paradigm to the circuit model
start with a big entangled state called a graph state and do many local measurements in different bases: ... ... ... ... ... ...
measurement outcomes. This is called feed-forward, and it’s where all the magic happens.
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
creating entanglement with controlled-Z operations:
=
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
creating entanglement with controlled-Z operations:
=
... ... ... ... ... ... ← →
... ... ... ... ... ... ... ... ...
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
π
,
α + π
,
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
π
,
α + π
,
... α π error
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
... α π = ... π α ... π α = π π ... α π = = π α ... π
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
... α π = ... π α ... π α = π π ... α π = = π α ... π
to account for it: π α π ... −β γ + π = ... α β γ
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
... α π = ... π α ... π α = π π ... α π = = π α ... π
to account for it: π α π ... −β γ + π = ... α β γ
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
transforming MBQC patterns to circuits, which has some advantages over
from the diagrammatic/ZX point of view, which is available on the arXiv.2
1Rewriting measurement-based quantum computations with generalised flow. R. Duncan,
personal.strath.ac.uk/ross.duncan/papers/gflow.pdf
2A graphical approach to measurement-based quantum computing. R. Duncan.
arXiv:1203.6242
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
generalisations4
3The Topology of Quantum Algorithms. LICS 2013, J. Vicary. arXiv:1209.3917 4Abstract structure of unitary oracles for quantum algorithms. J.Vicary, W. Zeng.
arXiv:1406.1278
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
5Graphical Calculus for Quantum Key Distribution. B. Coecke, Q. Wang, B. Wang,
6Quantum Protocols involving Multiparticle Entanglement and their Representations in the
zx-calculus. A. Hillebrand. Masters thesis, Oxford 2011. www.cs.ox.ac.uk/people/bob.coecke/Anne.pdf
7An Abstract Approach towards Quantum Secret Sharing. Masters thesis, Oxford 2012.
www.cs.ox.ac.uk/people/bob.coecke/VladimirZamdzhievThesis.pdf
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
GHZ/Mermin non-locality argument8
αi
=
αi αi
=
α3 α2 α1
=
quantum-like theories9
8Strong Complementarity and Non-locality in Categorical Quantum Mechanics. B. Coecke,
9Mermin Non-Locality in Abstract Process Theories. QPL 2015
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
expressiveness of the diagrammatic language
Introduction Quantum circuits Spiders ZX-calculus MBQC Survey
Vladimir Zamdzhiev, and David Quick