Running your code

Run a circuit from the Code tab: open the runner, set your shots, pick a backend in the Select QPU dialog, and read the results.

The Code tab has two modes: an editor and a runner. This is the short version of running a circuit. The Code Playground lesson walks through it in full.

1. Open the runner

On the Code tab, click Run Project to switch from the editor to the runner. Set how many shots to take; the default is 100.

The runner in the Code tab, with a Shots field and a Run button.
The runner. Set your shots, then press Run.

2. Pick where it runs

Press Run, and the Select QPU dialog opens. Choose a backend: simulators are free and instant, and only real hardware uses credits. The full list is in Compute backends.

The Select QPU dialog listing free simulators and quantum hardware.
Start on a free simulator before spending credits on hardware.

3. Run and read the results

Press Run in the dialog. The console tracks progress, then shows your results: the standard output from any print() calls, the circuit that ran, and a bar chart of the measurement probabilities.

The console after a run, showing the circuit, the counts, and a probabilities chart.
A finished run: the circuit, the counts, and the probabilities.

The toolbar above the console has copy and download buttons, so you can paste real results into your project write-up.

Stay in the loop.

Get the latest tutorials, demos, and project showcases straight to your inbox. No noise, just the good stuff.