SpinorioSpinorio
Help Center
Open Lab
Browse documentation

Docs / Guided tutorials / Your first tracked experiment

Your first tracked experiment

Run ordinary Qiskit code, inspect the result, and trace it back to the circuit that produced it.


LEARN INSIDE YOUR LAB

Your first tracked experiment

Open your personal practice notebook with a guide beside it. Follow real circuits and results, and resume whenever you are ready.

Open lesson in Lab

No IBM account required · Sign in to save your progress

What you will be able to do

You can find a result, its circuit, and its source without rebuilding the experiment history yourself.

Allow 5–7 minutes. Your progress is saved when you complete a step in the Lab guide.

  • A Python notebook kernel in Spinorio Lab
  • No IBM account required

1. Run a small experiment

Open the notebook and run the first code cell with Shift+Enter. Then check for the captured circuit.

Why this helps

Your normal Qiskit work becomes a connected research record.

2. Meet your captured circuit

Open the circuit. Inspect its diagram, qubits, and depth. Expand a metric when you want its definition.

Why this helps

Spinorio preserves the circuit state behind the experiment.

3. Inspect the measurement result

Open the job and inspect Results. The ideal GHZ experiment produces 000 and 111, with frequencies near one half. Exact counts need not be equal.

Why this helps

Results stay attached to the job and circuit that produced them.

4. Follow the experiment back to its source

Open Execution provenance. Follow Open circuit or Open source, then return to this guide.

Why this helps

You can identify the submitted circuit even after the notebook changes.

5. Change the circuit and run it again

Run the second code cell. It flips qubit 0 before measurement. Check for a second captured state of the same circuit.

Why this helps

Separate cell executions create observable versions you can revisit.

6. See what you have preserved

Open Circuit history and select an earlier state. Inspect the added X operation and related jobs. Use Export if you want a research report.

Why this helps

You now have a result, its source, and an inspectable history. Try the same workflow with your own code.

The notebook you will run

Your first tracked experiment Run one code cell at a time. Keep the guide open beside this notebook. This lesson uses a local simulator; no IBM account or hardware submission is needed. Spinorio observes supported Qiskit activity automatically.

python
from qiskit import QuantumCircuit
from qiskit_aer import AerSimulator

qc = QuantumCircuit(3, name="Guided experiment")
qc.h(0)
qc.cx(0, 1)
qc.cx(1, 2)
qc.measure_all()

simulator = AerSimulator()
job = simulator.run(qc, shots=1024, seed_simulator=42)
result = job.result()
counts = result.get_counts()
print("Measurement counts:", counts)
print("Total shots:", sum(counts.values()))

Make a visible change Inspect the first circuit and job before running the next cell. This changes the same qc object. In Qiskit bitstrings, qubit 0 is the rightmost bit; the ideal outcomes become 001 and 110.

python
# Change the same circuit object so its captured history can be compared.
qc.remove_final_measurements(inplace=True)
qc.x(0)
qc.measure_all()

job = simulator.run(qc, shots=1024, seed_simulator=42)
result = job.result()
print("Changed experiment:", result.get_counts())

Make it your own Open **Workflow → Circuits**, inspect the history, and follow the related jobs. You can export a report from the inspector. Create your own notebook when you are ready; this practice notebook remains yours.

Apply this to your own work

Create or open your own notebook and repeat the task with your circuit. Practice notebooks remain in Spinorio Tutorials. Lesson execution uses your normal Lab and compiler resources.


Previous

← Getting Started

Next

Understand what changed →