Speedy Contraction of ZX Diagrams with Triangles via Stabiliser
Decompositions
- URL: http://arxiv.org/abs/2307.01803v1
- Date: Tue, 4 Jul 2023 16:13:53 GMT
- Title: Speedy Contraction of ZX Diagrams with Triangles via Stabiliser
Decompositions
- Authors: Mark Koch, Richie Yeung, Quanlong Wang
- Abstract summary: We use the ZX calculus to iteratively decompose magic states into stabiliser terms.
We show that this technique greatly speeds up the simulation of quantum circuits involving multi-controlled gates.
We also use our software to contract diagrams representing the gradient variance of parametrised quantum circuits.
- Score: 0.30938904602244344
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: Recent advances in classical simulation of Clifford+T circuits make use of
the ZX calculus to iteratively decompose and simplify magic states into
stabiliser terms. We improve on this method by studying stabiliser
decompositions of ZX diagrams involving the triangle operation. We show that
this technique greatly speeds up the simulation of quantum circuits involving
multi-controlled gates which can be naturally represented using triangles. We
implement our approach in the QuiZX library and demonstrate a significant
simulation speed-up (up to multiple orders of magnitude) for random circuits
and a variation of previously used benchmarking circuits. Furthermore, we use
our software to contract diagrams representing the gradient variance of
parametrised quantum circuits, which yields a tool for the automatic numerical
detection of the barren plateau phenomenon in ans\"atze used for quantum
machine learning. Compared to traditional statistical approaches, our method
yields exact values for gradient variances and only requires contracting a
single diagram. The performance of this tool is competitive with tensor network
approaches, as demonstrated with benchmarks against the quimb library.
Related papers
- Adaptive variational quantum dynamics simulations with compressed circuits and fewer measurements [4.2643127089535104]
We show an improved version of the adaptive variational quantum dynamics simulation (AVQDS) method, which we call AVQDS(T)
The algorithm adaptively adds layers of disjoint unitary gates to the ansatz circuit so as to keep the McLachlan distance, a measure of the accuracy of the variational dynamics, below a fixed threshold.
We also show a method based on eigenvalue truncation to solve the linear equations of motion for the variational parameters with enhanced noise resilience.
arXiv Detail & Related papers (2024-08-13T02:56:43Z) - Fast classical simulation of quantum circuits via parametric rewriting
in the ZX-calculus [0.0]
We show that it is possible to perform the final stage of classical simulation quickly utilising a high degree of GPU parallelism.
We demonstrate speedups upwards of 100x for certain classical simulation tasks vs. the non-parametric approach.
arXiv Detail & Related papers (2024-03-11T14:44:59Z) - SymPhase: Phase Symbolization for Fast Simulation of Stabilizer Circuits [3.5664433935013165]
This paper proposes an efficient stabilizer circuit simulation algorithm that only traverses the circuit forward once.
We introduce phase symbolization into stabilizer generators, which allows possible Pauli faults in the circuit to be accumulated explicitly as symbolic expressions.
We show how to integrate symbolic phases into the stabilizer tableau and maintain them efficiently using bit-vector encoding.
arXiv Detail & Related papers (2023-11-07T11:45:36Z) - Efficient Bound of Lipschitz Constant for Convolutional Layers by Gram
Iteration [122.51142131506639]
We introduce a precise, fast, and differentiable upper bound for the spectral norm of convolutional layers using circulant matrix theory.
We show through a comprehensive set of experiments that our approach outperforms other state-of-the-art methods in terms of precision, computational cost, and scalability.
It proves highly effective for the Lipschitz regularization of convolutional neural networks, with competitive results against concurrent approaches.
arXiv Detail & Related papers (2023-05-25T15:32:21Z) - Classical simulation of quantum circuits with partial and graphical
stabiliser decompositions [0.0]
We show how, by considering certain non-stabiliser entangled states which have more favourable decompositions, we can speed up simulations.
We additionally find a new technique of partial stabiliser decompositions that allow us to trade magic states for stabiliser terms.
With our techniques we manage to reliably simulate 50-qubit 1400 T-count hidden shift circuits in a couple of minutes on a consumer laptop.
arXiv Detail & Related papers (2022-02-18T14:04:30Z) - Sketching as a Tool for Understanding and Accelerating Self-attention
for Long Sequences [52.6022911513076]
Transformer-based models are not efficient in processing long sequences due to the quadratic space and time complexity of the self-attention modules.
We propose Linformer and Informer to reduce the quadratic complexity to linear (modulo logarithmic factors) via low-dimensional projection and row selection.
Based on the theoretical analysis, we propose Skeinformer to accelerate self-attention and further improve the accuracy of matrix approximation to self-attention.
arXiv Detail & Related papers (2021-12-10T06:58:05Z) - Improved Graph Formalism for Quantum Circuit Simulation [77.34726150561087]
We show how to efficiently simplify stabilizer states to canonical form.
We characterize all linearly dependent triplets, revealing symmetries in the inner products.
Using our novel controlled-Pauli $Z$ algorithm, we improve runtime for inner product computation from $O(n3)$ to $O(nd2)$ where $d$ is the maximum degree of the graph.
arXiv Detail & Related papers (2021-09-20T05:56:25Z) - Simulating quantum circuits with ZX-calculus reduced stabiliser
decompositions [0.0]
We introduce an enhanced technique for strong classical simulation of quantum circuits.
This technique combines the sum-of-stabilisers' method with an automated simplification strategy based on the ZX-calculus.
arXiv Detail & Related papers (2021-09-02T16:42:52Z) - Accurate methods for the analysis of strong-drive effects in parametric
gates [94.70553167084388]
We show how to efficiently extract gate parameters using exact numerics and a perturbative analytical approach.
We identify optimal regimes of operation for different types of gates including $i$SWAP, controlled-Z, and CNOT.
arXiv Detail & Related papers (2021-07-06T02:02:54Z) - Gaussian MRF Covariance Modeling for Efficient Black-Box Adversarial
Attacks [86.88061841975482]
We study the problem of generating adversarial examples in a black-box setting, where we only have access to a zeroth order oracle.
We use this setting to find fast one-step adversarial attacks, akin to a black-box version of the Fast Gradient Sign Method(FGSM)
We show that the method uses fewer queries and achieves higher attack success rates than the current state of the art.
arXiv Detail & Related papers (2020-10-08T18:36:51Z) - Efficient classical simulation of random shallow 2D quantum circuits [104.50546079040298]
Random quantum circuits are commonly viewed as hard to simulate classically.
We show that approximate simulation of typical instances is almost as hard as exact simulation.
We also conjecture that sufficiently shallow random circuits are efficiently simulable more generally.
arXiv Detail & Related papers (2019-12-31T19:00:00Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.