Adding noise profiles of IBM Quantum® backends to local simulators
In this recipe, we find the noise data for the IBM Quantum® backends to build a noise profile that we can then add to our simulator when we run it. This will make the simulator behave like a real NISQ backend.
Getting ready
The sample code for this recipe can be found here: https://github.com/PacktPublishing/Quantum-Computing-in-Practice-with-Qiskit-and-IBM-Quantum-Experience/blob/master/Chapter07/ch7_r3_noise.py.
How to do it...
Let's look at the following code:
- Get a list of the available backends and select one to simulate.
We will get the noise profile of one of the IBM Quantum® backends and use it with our simulators. First, we use the
select_backend()
function to list the backends and make the selection:def select_backend(): # Get all available and operational backends. available_backends = provider.backends(filters=lambda ...