11.8 Simulation
Is it possible to simulate a quantum computer on a classical computer? If we could do it, “quantum computing” would be only another technique for coding software on our current machines. simulation simulation$state vector
In this section, we look at what you must consider if you want to write a simulator for manipulating logical qubits. In particular, we look at state vector simulation. In section 11.8.6, we look at simulation using density matrices.
Simulation is good for experimentation, education, and debugging part of a quantum circuit. If you have a simulator handy, such as one that Qiskit or Cirq provides, you can use it for small problems.
We look at how you might build a simulator in general terms. I offer no complete code in any specific programming language but more of a list of what you need to consider.
11.8.1 Qubits
When thinking about building a quantum computing circuit simulator...