From the course: Quantum Computing Fundamentals
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Use Qiskit with real quantum hardware
From the course: Quantum Computing Fundamentals
Use Qiskit with real quantum hardware
- [Instructor] To demonstrate how to run our programs on IBM's real Quantum computers, let's use this simple circuit, which entangles two qubits in the bell state and then measures them. We can see from the locally simulated results of that circuit that we should expect to see the outcome zero zero around half the time and one one, the other half. The outcomes zero one and one zero never occur according to the simulation. To use IBM's cloud-based Quantum computers, we'll need to import another module into this Python script. So, in a new cell after all of the above code, I'll add another import statement from Qiskit_IBM_runtime import QiskitRuntimeService. I'll also import the job monitor function from the qiskit.tools.monitor module so we can monitor the status of our job as it prepares to execute. Next, we'll set up our API credentials to connect with the IBM Quantum Cloud. To do that, I'll call the…