Building a noise model for simulating a Qiskit quantum circuit in the presence of errors. We know that the simulator always imitates an ideal Quantum Computer so when we run a circuit on it, it won't show any noise (Quantum Noise) and always gives us the exact expected result with any moise. But the quantum computers we have today are way too noisy and are not at all ideal. So I made this so when you run your circuit on a simulator, an approximate NoiseModel can be generated automatically from the properties of real device backends from the IBMQ provider using the from_backend() method. Then I also coded a custom noise model using some pre-defined quantum error functions in the NoiseModel class (the Depolarizing Noise Model) and it we deliberately add errors in it and then plot the final results in the form of a histogram.
- Jupyter Notebook
- Matplotlib
- Qiskit
- qiskit-terra
- qiskit-aer
- qiskit-ibmq-provider