Comparing the qubits on a chip
In the previous recipe, we looked at some of the pieces of information that you can glean about the IBM Quantum® hardware, illustrating the nature of today's NISQ machines. In this recipe, we will show a real comparison between the different qubits of a selected IBM backend.
We will run the same Bell state quantum program on three different setups: an ideal quantum computer (qasm_simulator
), the best qubit pair, and the worst qubit pair on a 5-qubit, least busy IBM Quantum® machine.
We will print and plot the end result to compare the ideal result ( and at 50%) with the real results (a probabilistic mix of ) to illustrate how today's quantum computers still have a little way to go.
Getting ready
The file required in the following recipe can be downloaded from here: https://github.com/PacktPublishing/Quantum-Computing-in-Practice-with-Qiskit-and-IBM-Quantum-Experience/blob/master/Chapter08/ch8_r2_compare_qubits.py