Running Your First Circuit
Run a Bell pair on the simulator in under a minute.
- Sign in and open Jobs.
- Click the Bell pair example. It fills in this circuit:
OPENQASM 2.0;
include "qelib1.inc";
qreg q[2];
creg c[2];
h q[0];
cx q[0], q[1];
measure q -> c;- Leave the backend on the simulator, set shots (for example 1000) and press Run on simulator.
- A few seconds later you see a histogram. An ideal Bell pair only ever measures
00or11, about half each.
Next, try the tutorials.