Book contents
- Frontmatter
- Dedication
- Contents
- Acknowledgements
- Introduction
- 1 The Mathematical Minimum
- 2 Quantum Computing Fundamentals
- 3 Simple Algorithms
- 4 Scalable, Fast Simulation
- 5 Beyond Classical
- 6 Complex Algorithms
- 7 Quantum Error Correction
- 8 Quantum Languages, Compilers, and Tools
- Appendix Sparse Implementation
- References
- Index
4 - Scalable, Fast Simulation
Published online by Cambridge University Press: 28 March 2022
- Frontmatter
- Dedication
- Contents
- Acknowledgements
- Introduction
- 1 The Mathematical Minimum
- 2 Quantum Computing Fundamentals
- 3 Simple Algorithms
- 4 Scalable, Fast Simulation
- 5 Beyond Classical
- 6 Complex Algorithms
- 7 Quantum Error Correction
- 8 Quantum Languages, Compilers, and Tools
- Appendix Sparse Implementation
- References
- Index
Summary
The basic infrastructure developed so far is sufficient for small-scale quantum algorithms. It is also a great learning tool. However, for complex algorithms with many more qubits and gates, this matrix-based infrastructure does not scale. This chapter improves the infrastructure to scale to problems with up to 30 qubits and tens of thousands of gates.
First, the chapter introduces an elegant circuit abstraction. A method to apply operators with linear complexity comes next, which is a significant improvement over the cubic or quadratic methods presented previously. Acceleration with C++ enables another 100x speedup. Finally, a sparse state representation is being discussed at length, which can be the best-performing implementation for many circuits.
- Type
- Chapter
- Information
- Quantum Computing for Programmers , pp. 122 - 148Publisher: Cambridge University PressPrint publication year: 2022