Introduction to Quantum Computing
Simulators
- Unitary
- Provides the unitary equivalent of a given circuit with only 1 shot and no measure or reset.
- QASM: Quantum Assembly Language
- A general-purpose simulator for simulating/emulating the ideal execution of a generic quantum circuits both ideally and subject to noise modeling. It simulates a generic circuit for a number of shots and returns measurement counts. It is similar to an experiment.
- StateVector
- Simulates a quantum circuit by computing the wavefunction of the qubit’s statevector resulting from the evolution of the 0 state through that circuit as gates and instructions are applied. It supports general noise modeling and takes only 1 shot and no measure or reset.
- Pulse
- Matrix Product Operator
Quantum simulator services are advanced cloud-based classical emulators of quantum systems.
The simulator backends have the same default number of maximum qubits and maximum number of shots. They both accept circuits with all gates, not just the basis gates. When simulating ideal circuits, changing the method between the exact simulation methods stabilizer should not change the simulation result (other than usual variations from sampling probabilities for measurement outcomes).
The statevector simulator returns a block of data the size of 2^N (where N is the number of qubits, and 2^N is the size of the statevector). As the number of qubits increases, the size of the statevector increases exponentially. This should be the default choice for the simulator as it is a general-purpose solution method.
The qasm simulator returns counts, which is a sampling of the statevector of the circuit. It is smaller in size and won't increase in size exponentially as the number of qubits increases.
Though they return different things, the qasm and statevector simulator are both part of the same simulator.
References:
- Simulators:
https://qiskit.org/documentation/tutorials/simulators/1_aer_provider.html - Services:
https://quantum-computing.ibm.com/services?services=simulators - Introducing Qiskit Aer: A high performance simulator framework for quantum circuits:
https://medium.com/qiskit/qiskit-aer-d09d0fac7759 - Introducing Qiskit Dynamics, a New Qiskit Module for Simulating Quantum Systems: Nov. 2021:
https://medium.com/qiskit/introducing-qiskit-dynamics-a-new-qiskit-module-for-simulating-quantum-systems-afe004f5b92b - IBM Quantum Simulators:
https://quantum-computing.ibm.com/lab/docs/iql/manage/simulator/ - Basic Qiskit Syntax:
https://qiskit.org/textbook/ch-appendix/qiskit.html - Learn in Qiskit:
https://qiskit.org/learn/ - Qiskit:
https://qiskit.org - Qiskit Documentation:
https://qiskit.org/documentation/index.html