Skip to main content

12.6 Accessing the IBM Quantum computer

Source: Ideas from Computational Physics (Landau, Páez, Bordeianu), §12.6–12.6.1. Original walkthrough — UI labels change over time; follow current IBM docs. Continues 12.5b. Next: 12.7 Qiskit.

Personal desktop QPUs are not a commodity yet. IBM offers cloud QPUs and simulators through the IBM Quantum platform (formerly quantum-computing.ibm.com). You will need an account (IBMid, or sometimes Google/GitHub SSO). Availability and login flows vary by region.

Account and token​

  1. Open the IBM Quantum login page and create / authenticate an IBMid.
  2. From the dashboard, copy an API token if you will call backends from a laptop (used in 12.7).
  3. Follow IBM’s current lab / Runtime docs for job submission — paths move; search “IBM Quantum Runtime get started.”

Never commit tokens to git. Store them in a local secrets file or environment variable.

12.6.1 Quantum Composer​

Composer is a drag-and-drop circuit editor: colorful gate tiles, qubit wires, classical registers, and a run button that targets a simulator or a hardware backend.

Typical first Bell build:

  1. File → New (or equivalent) — start with a few qubits and a classical register.
  2. Delete unused qubits so only q[0] and q[1] remain.
  3. Drop H on q[0].
  4. Drop CNOT with control on q[0] and target on q[1].
  5. Save (e.g. beta_00) and run.

Figure 12.5 — Composer Bell circuit and histogram.

Ideal outcome:

∣β00⟩=12(∣00⟩+∣11⟩),|\beta_{00}\rangle=\tfrac1{\sqrt2}(|00\rangle+|11\rangle),

visible as a two-bar histogram and matching statevector entries.

IBM endianness caveat​

IBM often writes multi-qubit kets with q[0] on the right:

∣qn−1…q1q0⟩.|q_{n-1}\ldots q_1 q_0\rangle.

So the bitstring 01 means q1=0q_1=0, q0=1q_0=1. When comparing to Cirq / textbook left-to-right ordering, reverse the labels carefully.

Figure 12.6 — Bell-state density / histogram intuition for the same circuit.

Troubleshooting (Composer / Runtime)​

SymptomWhat to check
Job sits in queue foreverBackend busy or fair-share limits — try a simulator, or pick a less popular backend
Counts look nothing like ∥β00⟩\|\beta_{00}\rangleDid you measure? Wrong CNOT direction? Endianness when reading bitstrings?
Circuit “runs” but gates look rearrangedTranspile maps your gates to the device’s native set and coupling map — expect SWAPs on hardware
Simulator OK, hardware noisyShot noise + decoherence; increase shots, simplify depth, compare to ideal histogram
Token / auth errorsRegenerate API token; never paste an expired key from an old notebook

Endianness reminder: when a histogram bar is labeled 01, confirm whether that is ∣q1q0⟩|q_1 q_0\rangle (IBM-style, q0q_0 rightmost) or textbook ∣q0q1⟩|q_0 q_1\rangle. Mismatched labeling is the most common “my Bell is wrong” false alarm.

Transpile reminder: hardware backends only natively support a gate set and a connectivity graph. The compiler inserts SWAPs so two-qubit gates land on linked qubits — depth grows; simulators usually skip that pain.

Takeaway​

ToolRole
Dashboardaccount, token, backends
Composergraphical circuits → Bell in minutes
Simulatorsideal histograms
Hardwaresame circuit, noisier counts
Quiz

IBM Quantum / Composer

1 / 3

A Composer Bell pair starts with…

Pick an answer to see if you are right.

Next: 12.7 Qiskit + IBM.