Picturing Quantum Processes Aleks Kissinger and Bob Coecke Radboud University and Oxford University ESSLLI Toulouse 2017 Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 1 / 40 www.cambridge.org/pqp 20% discount @ CUP with code: COECKE2017 Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 2 / 40 Chapters 11-13: Quantum Foundations, Computation, and Resources Mermin once summarized a popular attitude towards quantum theory as “Shut up and calculate”. We suggest a different slogan: “Shut up and contemplate”! — Lucien Hardy and Rob Spekkens, 2010. Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 3 / 40 Spiders n n ... := ... i i ... i i i ... i P i m m Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 4 / 40 Spiders n n ... := i ... i i ... i i i ... i P m m ... ... ... ... Kissinger & Coecke ... = ... Picturing Quantum Processes ... ESSLLI Toulouse 2017 4 / 40 (Classical) spiders are linear maps: ... ... ...so we can double them to get quantum spiders: ... ... ... ! := double = ... ... ... ...which also fuse together: ... ... ... ... Kissinger & Coecke ... = ... Picturing Quantum Processes ... ESSLLI Toulouse 2017 5 / 40 Measuring is a spider: i = P i = i i P i i i ...and so is encoding: := Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 6 / 40 They connect classical to quantum: ... ... ... ... ...giving something new: ... ... ... ... = ... ... ... ... Bastard spiders! ... ... ... ... := ... ... ... Kissinger & Coecke Picturing Quantum Processes ... ESSLLI Toulouse 2017 7 / 40 Bastard spiders fuse together: ... ... ... ... ... = ... ... They also absorb other kinds of spider: ... ... ... ... ... ... ... = ... Kissinger & Coecke ... ... ... Picturing Quantum Processes ... = ... ... ESSLLI Toulouse 2017 8 / 40 Useful bastards Bastard spiders arise naturally in the interaction between classical and quantum data, e.g. • Discarding: = = = • Decoherence: = Kissinger & Coecke = Picturing Quantum Processes = ESSLLI Toulouse 2017 9 / 40 Useful bastards (cont’d) • Non-demolition measurement: = = Kissinger & Coecke = Picturing Quantum Processes = ESSLLI Toulouse 2017 10 / 40 Multicoloured spiders ... i = i ... ... ... i ... ... ... ... i P ... = ... ... Kissinger & Coecke ... ... Picturing Quantum Processes ... i i ... i ... ... = ... i ... i i P ... = ... ... ESSLLI Toulouse 2017 11 / 40 Complementary bases 0 1 0 1 Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 12 / 40 Complementarity Theorem. Two bases are complementary (a.k.a. mutually unbiased): ∀i, j j : = i 1 D if and only if: = Kissinger & Coecke 1 D Picturing Quantum Processes ESSLLI Toulouse 2017 13 / 40 Complementarity Theorem. Two bases are complementary (a.k.a. mutually unbiased): ∀i, j j : = i 1 D if and only if: = Kissinger & Coecke 1 D Picturing Quantum Processes ESSLLI Toulouse 2017 14 / 40 Complementarity = (encode in Kissinger & Coecke 1 D ) THEN (measure in Picturing Quantum Processes ) = (no data flow) ESSLLI Toulouse 2017 15 / 40 Stern-Gerlach N S Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 16 / 40 Stern-Gerlach . Kissinger & Coecke & Picturing Quantum Processes ESSLLI Toulouse 2017 17 / 40 Stern-Gerlach := Kissinger & Coecke := Picturing Quantum Processes ESSLLI Toulouse 2017 18 / 40 Stern-Gerlach := := Z -measurement N S Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 18 / 40 Stern-Gerlach := := Z -measurement X -measurement N S N S Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 18 / 40 Stern-Gerlach S N N S Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 19 / 40 Stern-Gerlach S N N S X -measurement Z -measurement Kissinger & Coecke = Picturing Quantum Processes ESSLLI Toulouse 2017 19 / 40 Stern-Gerlach N S N S N S Kissinger & Coecke blocked! Picturing Quantum Processes ESSLLI Toulouse 2017 20 / 40 Stern-Gerlach N S S N N blocked! S 0 0 2nd Z -measurement X -measurement = 1st Z -measurement Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 20 / 40 Teleportation with spiders Aleks Bob ρ Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 21 / 40 Teleportation with spiders = Kissinger & Coecke = = Picturing Quantum Processes = = ESSLLI Toulouse 2017 22 / 40 Power of the Graphical Language We now have a fairly powerful language, it is natural to ask: Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 23 / 40 Power of the Graphical Language We now have a fairly powerful language, it is natural to ask: Q: Is it universal? Can we express any map in terms of spiders? Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 23 / 40 Power of the Graphical Language We now have a fairly powerful language, it is natural to ask: Q: Is it universal? Can we express any map in terms of spiders? Q: Is it complete? Can we prove every equation between maps using some set of spider-equations? Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 23 / 40 Universality Q: Can we write any linear map as a diagram of: ... ... ? and ... Kissinger & Coecke ... Picturing Quantum Processes ESSLLI Toulouse 2017 24 / 40 Universality Q: Can we write any linear map as a diagram of: ... ... ? and ... A: Clearly not! e.g. Kissinger & Coecke ... 1 0 0 i Picturing Quantum Processes ESSLLI Toulouse 2017 24 / 40 Universality Q: Can we write any linear map as a diagram of: ... ... ? and ... A: Clearly not! e.g. ... 1 0 0 i Q2: How much more do we need? Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 24 / 40 Phases 0 1 0 1 Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 25 / 40 Phases 0 α 1 D α 1 Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 26 / 40 Phase spiders = α+β α Kissinger & Coecke β Picturing Quantum Processes ESSLLI Toulouse 2017 27 / 40 Phase spiders = α+β α β ... ... α ... Kissinger & Coecke := α ... Picturing Quantum Processes ESSLLI Toulouse 2017 27 / 40 Phase spiders = α+β α β ... ... := α ... α ... α ... ... ... ... = β ... Kissinger & Coecke ... Picturing Quantum Processes α+β ... ESSLLI Toulouse 2017 27 / 40 Universality Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 28 / 40 Universality Theorem. Any linear map with 2D inputs and outputs can be expressed as a diagram of: ... ... and α ... Kissinger & Coecke Picturing Quantum Processes α ... ESSLLI Toulouse 2017 28 / 40 Universality Theorem. Any linear map with 2D inputs and outputs can be expressed as a diagram of: ... ... and α α ... ... Corollary. Any quantum map from qubits to qubits can be expressed as a diagram of: ... α ... Kissinger & Coecke ... , α , and ... Picturing Quantum Processes ESSLLI Toulouse 2017 28 / 40 Universality Proof. (idea) γ Any single-qubit unitary: Ub = + β CNOT: α ...gives any unitary, which gives any state: ... ψb ... = Ub 0 ... 0 ...which gives any map by process-state duality. Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 29 / 40 Completeness Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 30 / 40 Completeness Q. Can we find a complete set of equations to describe the behaviour of: ... ... α α and ? ... ... Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 30 / 40 Completeness Q. Can we find a complete set of equations to describe the behaviour of: ... ... α α and ? ... ... A. Yes! The ZX-calculus. Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 30 / 40 ZX-calculus ... α ... ... ... ... = α+β ... ... ... β ... α ... ... ... .... Kissinger & Coecke α+β ... .... ... π 2 π 2 = ... = β - π2 = ... - π2 Picturing Quantum Processes - π2 - π2 π 2 ESSLLI Toulouse 2017 31 / 40 ZX-calculus Theorem. The ZX-calculus is complete for Clifford diagrams, i.e. diagrams where α ∈ {0, π, ± π2 }. Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 32 / 40 ZX-calculus Theorem. The ZX-calculus is complete for Clifford diagrams, i.e. diagrams where α ∈ {0, π, ± π2 }. Theorem. (Hot off the press! complete for all diagrams. 1 2 1,2 ) A bigger version of the ZX-calculus is Jeandel, Perdrix, Vilmart. 31 May, 2017. arXiv:1705.11151 Wang & Ng. 29 June, 2017. arXiv:1706.09877 Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 32 / 40 Application: Quantum Computing The quantum circuit model: measure some outputs - π4 π 4 quantum gates π 4 - π2 π 4 - π4 prepare a state Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 33 / 40 Quantum algorithms Quantum process Classical computation bit ⇒ f Ubf := fb N bits Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 34 / 40 Quantum algorithms Quantum process Classical computation bit ⇒ f Ubf := fb N bits ⇒ Deutsch-Jozsa, Bernstein-Vazirani, quantum seach, and hidden subgroup (e.g. factoring) algorithms. Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 34 / 40 Automation Quantomatic: Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 35 / 40 Spekkens’ toy model :: ∗ 7→ {(0, 0)} :: ∗ 7→ {(0, 1)} :: ∗ 7→ {(1, 0)} :: ∗ 7→ {(1, 1)} Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 36 / 40 Spekkens’ toy model Z :: (a, b) 7→ (a, b ⊕ 1) Z :: (a, b) 7→ (a, a ⊕ b) H :: (a, b) 7→ (b, a) CZ :: ((a, b), (c, d)) 7→ ((a, b ⊕ c), (c, a ⊕ d)) MEASURE(a, b) := reveal a, randomize b Kissinger & Coecke Picturing Quantum Processes ESSLLI Toulouse 2017 37 / 40 Spekkens’ toy model ... ... ... ... a,b ... = ... ... ... ... a+c , b+d c ,d ... ... a,b .... Kissinger & Coecke ... ... a, a a, a = ... b, b = ... a+c , b+d c ,d ... .... = a, a Picturing Quantum Processes b, b b, b b, b ESSLLI Toulouse 2017 38 / 40 GHZ/Mermin non-locality quantum theory 0 0 π 2 π 2 π 2 0 π 2 π 2 π 2 0 ziA yiA ziB Kissinger & Coecke π π ziA yiA ziB = π = 0 yiB ziC yiC yiB ziC yiC = 0 = 0 any local theory π 0 Picturing Quantum Processes ESSLLI Toulouse 2017 39 / 40 Thanks! ... Coecke, Abramsky, Backens, Duncan, Edwards, Gogioso, Hadzihasanovic, Heunen, Lal, Dixon, Merry, Pavlovic, Perdrix, Quick, Selinger, Zamdzhiev, ... Special thanks ⇒ Jamie Vicary and David Reutter - qubit.zone simulators www.cambridge.org/pqp Kissinger & Coecke quantomatic.github.io Picturing Quantum Processes ESSLLI Toulouse 2017 40 / 40