A reproducible quantum experiment is more than a circuit that runs successfully. It is a record of the problem, software environment, backend configuration, execution choices, outputs, and limitations that lets another person understand and repeat the work. This project documentation template gives developers and research teams a practical record to complete before each experiment and an audit checklist for reviewing older results.
Overview
Quantum experiments can change meaning when a dependency, compiler pass, device setting, noise model, or random seed changes. A notebook may show the final circuit and measurement counts while leaving out the details needed to explain how those counts were produced. Reproducible quantum computing therefore requires documentation at the same level of specificity as the code.
Use one project record for each meaningful experiment, benchmark run, or hardware comparison. Link the record to the exact source-code revision and preserve generated artifacts separately from explanatory notes. Your record should answer five questions:
- What question was the experiment designed to answer?
- Which circuit, algorithm, dataset, and parameter values were used?
- Which software and backend configuration produced the result?
- Can someone rerun the experiment or at least verify its analysis?
- What does the result not establish?
For tool discovery, use the Quantum Computing Tools Directory to identify SDKs, simulators, notebooks, and utilities, then record the exact versions selected for the project. When comparing devices, document calibration context and consult the guide on reading quantum backend calibration data.
Checklist by scenario
For a new algorithm or circuit
Start with a short problem definition rather than a description of the implementation. State the input, expected output, success criterion, and reason a quantum method is being tested. Record the algorithm name or internal project label, the circuit identifier, the number of logical qubits, measured observables, parameter values, and any assumptions about the input state.
Assign a stable circuit version such as circuit-v03, and store the source file or notebook at a known commit. If the circuit is generated programmatically, record the generator parameters and whether gates are decomposed before execution. Include small, classically checkable test cases where practical.
For a simulator experiment
Record the simulator name, package version, simulation method, precision or numerical settings, and whether the simulation was statevector, shot-based, density-matrix, stabilizer, tensor-network, or another method. State whether noise was absent, sampled from a model, or derived from device data.
Document the noise model in enough detail to rebuild it: channel types, error parameters, readout assumptions, connectivity assumptions, and any custom transformations. Record the random seed or seed policy for circuit generation, noise sampling, and measurement sampling. If the simulator uses multiple seeds, identify each one and its purpose.
For a hardware run
Record the provider, backend name, backend identifier if available, execution date and time, region or project context when relevant, and the device topology used by the transpiler. Capture the number of shots, queue or batching arrangement if it affects execution, and whether the run used calibration, mitigation, dynamical decoupling, or other optional processing.
Save the backend settings and calibration snapshot available at execution time. Do not treat a device label alone as a complete hardware description: properties can change between runs. Note any failed jobs, partial results, retries, or post-run filtering.
For a benchmark or comparison
Define the workload before selecting the result to highlight. Record circuit families, sizes, depth measures, observable definitions, shot counts, timeout rules, and the metrics used. Keep compilation and execution conditions comparable, or explain why they differ. The Quantum Circuit Benchmarking Guide can help structure metrics and test runs.
For a comparison between SDKs, simulators, or hardware providers, record compatibility assumptions and version-specific behavior. A comparison should distinguish algorithmic performance from compiler choices, device availability, queue conditions, and post-processing.
Copyable project record
# Experiment record
## 1. Identity
- Project:
- Experiment ID:
- Owner and reviewers:
- Date started / completed:
- Repository and exact commit:
- Related issue, paper, or decision:
## 2. Problem definition
- Question:
- Input and expected output:
- Success criterion:
- Baseline or classical reference:
- Known assumptions:
## 3. Circuit and data
- Circuit name and version:
- Logical qubits and measured observables:
- Gate set, depth, width, and parameter values:
- Dataset or generated input version:
- Generator parameters:
## 4. Software environment
- SDK and version:
- Runtime/API and version:
- Language and version:
- Operating system or container image:
- Dependency lockfile or environment hash:
## 5. Backend and execution
- Simulator or hardware backend:
- Backend identifier and topology:
- Transpiler/compiler version:
- Optimization level and basis gates:
- Initial layout, routing, and scheduling options:
- Shots:
- Random seeds and seed policy:
- Queue, batching, retry, or timeout notes:
## 6. Noise and mitigation
- Noise model or calibration snapshot:
- Readout assumptions:
- Error mitigation or correction method:
- Post-processing and filtering:
## 7. Results
- Raw artifact location:
- Processed result location:
- Metrics and uncertainty treatment:
- Reproduction status:
- Unexpected behavior:
## 8. Interpretation
- Main finding:
- Limitations:
- Next action:
What to double-check
Before sharing a result, compare the documented circuit with the circuit that actually ran. Transpilation may change gate count, depth, qubit mapping, measurement placement, and supported gate basis. Save both the logical circuit and the transpiled circuit, along with the options that produced the latter.
Check that dependency versions are complete and installable. A top-level SDK version may not identify the versions of runtime, compiler, provider, numerical, and plotting packages that affect execution or analysis. Preserve a lockfile, environment export, container reference, or equivalent record. Review the software licensing guide when distributing code, simulator dependencies, or generated artifacts.
Check shot counts and random seeds separately. A seed can make one sampling path repeatable, but it does not make changing hardware behavior deterministic. For hardware, document the run window and calibration context. For noisy simulation, distinguish a fixed noise realization from repeated sampling of the same noise model.
Finally, inspect the raw output before presenting derived metrics. Keep counts, expectation values, intermediate files, and analysis scripts. State whether missing, invalid, or low-quality jobs were excluded and why. If the experiment uses mitigation, explain the unmitigated baseline as well. The error mitigation comparison provides a useful prompt for recording method and assumptions.
Common mistakes
- Recording only the final notebook. A notebook can contain outputs without preserving the package versions, backend settings, or execution order that produced them.
- Using “latest” as a version. Replace informal labels with exact package, runtime, compiler, and backend identifiers.
- Confusing logical and physical circuits. Preserve the original circuit and the transpiled form; they answer different questions.
- Omitting failed runs. Failures, retries, and exclusions can affect interpretation and resource estimates.
- Reporting counts without shots. Counts are difficult to interpret without the total number of measurements and any filtering rules.
- Hiding the baseline. A noisy, mitigated, or hardware result needs a clearly described reference point.
- Overstating reproducibility. A rerun may reproduce the workflow without producing identical hardware results. Describe what was reproduced: code, circuit, distribution, metric range, or qualitative conclusion.
- Separating documentation from the repository. Put the record, environment metadata, and artifact paths where collaborators and future reviewers can find them.
For automated checks, pair the record with circuit unit tests and continuous integration where possible. See quantum circuit testing tools compared for ways to separate logical correctness checks from simulator and hardware runs.
When to revisit
Complete the record before the first run, update it whenever the workflow changes, and review it before publishing or making a technical decision. Revisit the documentation at the start of each planning cycle, after upgrading an SDK or dependency, when changing transpilation options, and whenever a backend, calibration context, noise model, or dataset changes.
For an older experiment, begin with an audit rather than rerunning immediately. Confirm the repository commit, environment metadata, circuit versions, backend details, seeds, shots, raw artifacts, and analysis path. Mark each item as verified, unavailable, or inferred. If an input cannot be recovered, say so explicitly and label the result as partially reproducible.
Before your next experiment, copy the project record, fill in the identity and problem-definition fields, pin the environment, and decide where raw outputs will be stored. After execution, attach the logical and transpiled circuits, save the result artifacts, complete the limitations section, and ask a colleague to follow the record without relying on oral context. That small routine turns a one-off run into a durable quantum research resource.