simulation of quantum circuits by zx diagram contraction
play

Simulation of quantum circuits by ZX-diagram contraction John van - PowerPoint PPT Presentation

Simulation of quantum circuits by ZX-diagram contraction John van de Wetering john@vdwetering.name Institute for Computing and Information Sciences Radboud University Nijmegen September 6, 2019 Holy Trinity of quantum circuits Holy Trinity


  1. Simulation of quantum circuits by ZX-diagram contraction John van de Wetering john@vdwetering.name Institute for Computing and Information Sciences Radboud University Nijmegen September 6, 2019

  2. Holy Trinity of quantum circuits

  3. Holy Trinity of quantum circuits

  4. Holy Trinity of quantum circuits

  5. Quantum circuit simulation The Problem: Given quantum circuit C , and input state | ψ y , answer some question about C | ψ y .

  6. Quantum circuit simulation The Problem: Given quantum circuit C , and input state | ψ y , answer some question about C | ψ y . E.g. Find the probability | x 0 ¨ ¨ ¨ 0 | C | ψ y | 2 .

  7. Quantum circuit simulation The Problem: Given quantum circuit C , and input state | ψ y , answer some question about C | ψ y . E.g. Find the probability | x 0 ¨ ¨ ¨ 0 | C | ψ y | 2 . Why do we care? § Verification of correctness of circuits. § Modelling physical systems. § Understand when quantum supremacy has been reached.

  8. Weak versus Strong simulation Suppose we measure all qubits in computational basis at the end of the circuit. Then we get a probability distribution P p x 1 ¨ ¨ ¨ x n q “ | x x 1 ¨ ¨ ¨ x n | C | ψ y | 2

  9. Weak versus Strong simulation Suppose we measure all qubits in computational basis at the end of the circuit. Then we get a probability distribution P p x 1 ¨ ¨ ¨ x n q “ | x x 1 ¨ ¨ ¨ x n | C | ψ y | 2 Weak simulation: sample from this distribution. This is BQP -complete.

  10. Weak versus Strong simulation Suppose we measure all qubits in computational basis at the end of the circuit. Then we get a probability distribution P p x 1 ¨ ¨ ¨ x n q “ | x x 1 ¨ ¨ ¨ x n | C | ψ y | 2 Weak simulation: sample from this distribution. This is BQP -complete. Strong simulation: get any marginal probability of P p x 1 ¨ ¨ ¨ x n q . This is #P -hard.

  11. Direct simulation Write n -qubit state as 2 n complex numbers. Every gate in the circuit modifies this vector.

  12. Direct simulation Write n -qubit state as 2 n complex numbers. Every gate in the circuit modifies this vector. § Naively, for n “ 50 would take « 1000 TB .

  13. Direct simulation Write n -qubit state as 2 n complex numbers. Every gate in the circuit modifies this vector. § Naively, for n “ 50 would take « 1000 TB . § But n « 80 has been achieved in practice by being smart. (exploiting sparsity, limited depth of circuit, etc.)

  14. Direct simulation Write n -qubit state as 2 n complex numbers. Every gate in the circuit modifies this vector. § Naively, for n “ 50 would take « 1000 TB . § But n « 80 has been achieved in practice by being smart. (exploiting sparsity, limited depth of circuit, etc.) All these methods in a sense rely on tensor contraction . They are all exponential in number of qubits.

  15. Stabilizer decompositions 1 Gottesman-Knill Theorem Any Clifford computation can be efficiently simulated. Q: Can we exploit this somehow to simulate arbitrary circuits?

  16. Stabilizer decompositions 1 Gottesman-Knill Theorem Any Clifford computation can be efficiently simulated. Q: Can we exploit this somehow to simulate arbitrary circuits? Observation: Clifford states linearly span the set of all states.

  17. Stabilizer decompositions 1 Gottesman-Knill Theorem Any Clifford computation can be efficiently simulated. Q: Can we exploit this somehow to simulate arbitrary circuits? Observation: Clifford states linearly span the set of all states. 1. Gadgetize T-gates to write any circuit as: Clifford circuit C & | T y magic state ancillae.

  18. Stabilizer decompositions 1 Gottesman-Knill Theorem Any Clifford computation can be efficiently simulated. Q: Can we exploit this somehow to simulate arbitrary circuits? Observation: Clifford states linearly span the set of all states. 1. Gadgetize T-gates to write any circuit as: Clifford circuit C & | T y magic state ancillae. 2. Write input state + ancillae as linear combination of Cliffords: | ψ y “ ř n i λ i | φ i y .

  19. Stabilizer decompositions 1 Gottesman-Knill Theorem Any Clifford computation can be efficiently simulated. Q: Can we exploit this somehow to simulate arbitrary circuits? Observation: Clifford states linearly span the set of all states. 1. Gadgetize T-gates to write any circuit as: Clifford circuit C & | T y magic state ancillae. 2. Write input state + ancillae as linear combination of Cliffords: | ψ y “ ř n i λ i | φ i y . 3. Note: Each C | φ i y can be efficiently simulated!

  20. Stabilizer decompositions 2 Given Clifford circuit C and input | ψ y “ ř n i λ i | φ i y where the | φ i y are Clifford. How do we approximate C | ψ y ?

  21. Stabilizer decompositions 2 Given Clifford circuit C and input | ψ y “ ř n i λ i | φ i y where the | φ i y are Clifford. How do we approximate C | ψ y ? Two methods: 1. Monte-Carlo over the | φ i y weighted by | λ i | . Polynomial in the negativity : λ “ ř n i | λ i | .

  22. Stabilizer decompositions 2 Given Clifford circuit C and input | ψ y “ ř n i λ i | φ i y where the | φ i y are Clifford. How do we approximate C | ψ y ? Two methods: 1. Monte-Carlo over the | φ i y weighted by | λ i | . Polynomial in the negativity : λ “ ř n i | λ i | . 2. Compute ř n i λ i C | φ i y . Polynomial in the stabilizer rank : R p | ψ yq “ n .

  23. Stabilizer decompositions 2 Given Clifford circuit C and input | ψ y “ ř n i λ i | φ i y where the | φ i y are Clifford. How do we approximate C | ψ y ? Two methods: 1. Monte-Carlo over the | φ i y weighted by | λ i | . Polynomial in the negativity : λ “ ř n i | λ i | . 2. Compute ř n i λ i C | φ i y . Polynomial in the stabilizer rank : R p | ψ yq “ n . Benefit of first: can deal with density matrices and noise. Benefit of second: better constants and thus scaling.

  24. Stabilizer decompositions 2 Given Clifford circuit C and input | ψ y “ ř n i λ i | φ i y where the | φ i y are Clifford. How do we approximate C | ψ y ? Two methods: 1. Monte-Carlo over the | φ i y weighted by | λ i | . Polynomial in the negativity : λ “ ř n i | λ i | . 2. Compute ř n i λ i C | φ i y . Polynomial in the stabilizer rank : R p | ψ yq “ n . Benefit of first: can deal with density matrices and noise. Benefit of second: better constants and thus scaling. We will only use the second approach.

  25. Stabilizer rank T-magic state | T y : “ | 0 y ` e i π { 4 | 1 y has rank R p | T yq “ 2.

  26. Stabilizer rank T-magic state | T y : “ | 0 y ` e i π { 4 | 1 y has rank R p | T yq “ 2. Hence: R p | T y b n q ď 2 n e.g. | T y b | T y “ | 00 y ` e i π { 4 | 01 y ` e i π { 4 | 10 y ` e i π { 2 | 11 y

  27. Stabilizer rank T-magic state | T y : “ | 0 y ` e i π { 4 | 1 y has rank R p | T yq “ 2. Hence: R p | T y b n q ď 2 n e.g. | T y b | T y “ | 00 y ` e i π { 4 | 01 y ` e i π { 4 | 10 y ` e i π { 2 | 11 y But also: | T y b | T y “ p | 00 y ` i | 11 yq ` e i π { 4 p | 01 y ` | 10 yq , so actually R p | T y b 2 q “ 2,

  28. Stabilizer rank T-magic state | T y : “ | 0 y ` e i π { 4 | 1 y has rank R p | T yq “ 2. Hence: R p | T y b n q ď 2 n e.g. | T y b | T y “ | 00 y ` e i π { 4 | 01 y ` e i π { 4 | 10 y ` e i π { 2 | 11 y But also: | T y b | T y “ p | 00 y ` i | 11 yq ` e i π { 4 p | 01 y ` | 10 yq , so actually R p | T y b 2 q “ 2, and hence: R p | T y b n q “ R pp | T y b | T yq n { 2 q ď 2 n { 2

  29. Stabilizer rank T-magic state | T y : “ | 0 y ` e i π { 4 | 1 y has rank R p | T yq “ 2. Hence: R p | T y b n q ď 2 n e.g. | T y b | T y “ | 00 y ` e i π { 4 | 01 y ` e i π { 4 | 10 y ` e i π { 2 | 11 y But also: | T y b | T y “ p | 00 y ` i | 11 yq ` e i π { 4 p | 01 y ` | 10 yq , so actually R p | T y b 2 q “ 2, and hence: R p | T y b n q “ R pp | T y b | T yq n { 2 q ď 2 n { 2 Can also show that R p | T y b 6 q “ 7, and hence: R p | T y b n q ď 2 α n where α “ log 2 p 7 q{ 6 « 0 . 468

  30. The goal: combine tensor contraction & stabilizer decompositions using the ZX-calculus.

  31. ZX-diagrams What gates are to circuits, spiders are to ZX-diagrams.

  32. ZX-diagrams What gates are to circuits, spiders are to ZX-diagrams. Z-spider X-spider | 0 ¨ ¨ ¨ 0 y x 0 ¨ ¨ ¨ 0 | | + ¨ ¨ ¨ + y x + ¨ ¨ ¨ + | ` e i α | 1 ¨ ¨ ¨ 1 y x 1 ¨ ¨ ¨ 1 | ` e i α | - ¨ ¨ ¨ - y x - ¨ ¨ ¨ - | α α ... ... ... ...

  33. ZX-diagrams What gates are to circuits, spiders are to ZX-diagrams. Z-spider X-spider | 0 ¨ ¨ ¨ 0 y x 0 ¨ ¨ ¨ 0 | | + ¨ ¨ ¨ + y x + ¨ ¨ ¨ + | ` e i α | 1 ¨ ¨ ¨ 1 y x 1 ¨ ¨ ¨ 1 | ` e i α | - ¨ ¨ ¨ - y x - ¨ ¨ ¨ - | α α ... ... ... ... Spiders can be wired in any way: π 2 β 3 π 2 α 0 π

  34. Quantum gates as ZX-diagrams Every quantum gate can be written as a ZX-diagram: S “ T “ π π 2 4 H “ := π π π 2 2 2 CNOT “ CZ “ “

  35. Quantum gates as ZX-diagrams Every quantum gate can be written as a ZX-diagram: S “ T “ π π 2 4 H “ := π π π 2 2 2 CNOT “ CZ “ “ Universality Any linear map between qubits can be represented as a ZX-diagram.

  36. Rules for ZX-diagrams: The ZX-calculus α ... ... “ ... α ` β “ ... ... α α ... ... β ... ... a π a π a π a π “ a π α “ p - 1 q a α ... ... a π α ... ... a π a π “ “ “ α, β P r 0 , 2 π s , a P t 0 , 1 u

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend