Browse documentation
Guided tutorials
Your first tracked experimentUnderstand what changedCompile and compare with WeylatticeQuantum Workflow
Workflow overviewCircuitsCircuit processingJobs & resultsWhat Spinorio capturesHow observation worksQiskit coverage referenceProjects
Projects & collaborationHilvarian
Optimization solverHelp
TroubleshootingDocs / Guided tutorials / Understand what changed
Understand what changed
Preserve two circuit states and compare their structure, interactions, and source.
LEARN INSIDE YOUR LAB
Understand what changed
Open your personal practice notebook with a guide beside it. Follow real circuits and results, and resume whenever you are ready.
Open lesson in LabNo IBM account required · Sign in to save your progress
What you will be able to do
You can explain a circuit change using captured evidence instead of relying on memory.
Allow 4–6 minutes. Your progress is saved when you complete a step in the Lab guide.
- A Python notebook kernel
- No IBM account required
1. Capture the starting circuit
Run the first code cell. Check for the preserved circuit before continuing.
A cell boundary gives Spinorio an observable starting state.
2. Read the structure
Open the circuit diagram and its structure metrics. Note the two-qubit gates and interacting qubit pairs.
A circuit profile describes structure; higher values are not universally better.
3. Create a second captured state
Run the second code cell. It adds a non-local interaction and a rotation to the same circuit object.
The circuit history connects the new state to its predecessor.
4. Compare the two versions
In Circuit history, choose the earlier state as the reference and inspect the metric differences and diagrams.
Look for the added interaction and operations. Structural differences alone do not prove functional equivalence.
5. Use history in your own work
Inspect the source link and Export options. In your own experiments, execute meaningful changes in separate cells so intermediate states can be observed.
You can revisit a captured state and explain why a later experiment differs.
The notebook you will run
Understand what changed Run the cells separately so the initial and modified circuits are observed at distinct boundaries. The guide will open this notebook’s records directly.
from qiskit import QuantumCircuit
qc = QuantumCircuit(4, name="Circuit history lesson")
qc.h(0)
qc.cx(0, 1)
qc.cx(1, 2)
print("Starting circuit:", qc.depth(), "depth;", dict(qc.count_ops()))Add an interaction Inspect the first state before running this cell. We edit the same object rather than replacing it with a new circuit.
qc.cx(0, 3)
qc.ry(0.4, 2)
print("Modified circuit:", qc.depth(), "depth;", dict(qc.count_ops()))Interpret the difference The additional interaction changes the circuit structure. This example intentionally changes the computation. A comparison of counts or fingerprints is not an equivalence proof. Use the same history tools to investigate your own experiments.
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.