Book contents
- Frontmatter
- Contents
- Preface
- Introduction
- 1 Complex Numbers
- 2 Complex Vector Spaces
- 3 The Leap from Classical to Quantum
- 4 Basic Quantum Theory
- 5 Architecture
- 6 Algorithms
- 7 Programming Languages
- 8 Theoretical Computer Science
- 9 Cryptography
- 10 Information Theory
- 11 Hardware
- Appendix A Historical Bibliography of Quantum Computing
- Appendix B Answers to Selected Exercises
- Appendix C Quantum Computing Experiments with MATLAB
- Appendix D Keeping Abreast of Quantum News: Quantum Computing on the Web and in the Literature
- Appendix E Selected Topics for Student Presentations
- Bibliography
- Index
Appendix C - Quantum Computing Experiments with MATLAB
Published online by Cambridge University Press: 05 June 2012
- Frontmatter
- Contents
- Preface
- Introduction
- 1 Complex Numbers
- 2 Complex Vector Spaces
- 3 The Leap from Classical to Quantum
- 4 Basic Quantum Theory
- 5 Architecture
- 6 Algorithms
- 7 Programming Languages
- 8 Theoretical Computer Science
- 9 Cryptography
- 10 Information Theory
- 11 Hardware
- Appendix A Historical Bibliography of Quantum Computing
- Appendix B Answers to Selected Exercises
- Appendix C Quantum Computing Experiments with MATLAB
- Appendix D Keeping Abreast of Quantum News: Quantum Computing on the Web and in the Literature
- Appendix E Selected Topics for Student Presentations
- Bibliography
- Index
Summary
PLAYING WITH MATLAB
There is no better way to learn than playing. After all, that is how children learn. In this appendix, we are going to provide the basic guidelines for “playing the quantum computing game” with the help of the MATLAB environment.
Reader Tip. This is not a full MATLAB tutorial. We assume that a fully functional version of MATLAB is already installed on your machine and that you know how to start a session, perform some basic calculations, save them, and quit. You should also know what M-files are and how to load them. For a crash brush up, you can read the online tutorial by Math Works: http://www.mathworks.com/academia/student_center/tutorials/launchpad.html.
COMPLEX NUMBERS AND MATRICES
We began this book by saying that complex numbers are fundamental for both quantum mechanics and quantum computing, so we are going to familiarize ourselves with the way they are dealt with in MATLAB.
To begin with, we need to declare complex number variables. This is easy: a complex has a real part and an imaginary part, both double. The imaginary part is declared by using the “i” or “j” character.
- Type
- Chapter
- Information
- Quantum Computing for Computer Scientists , pp. 351 - 356Publisher: Cambridge University PressPrint publication year: 2008