Quantum Research Roadmap

Production-grade guide to quantum research roadmap covering architecture patterns, implementation strategies, testing approaches, and operational best practices for enterprise engineering teams.

Quantum Research Roadmap is a living document that guides a quantum computing research team through the lifecycle of a project, from initial hypothesis to validated results and publication-ready artifacts. It is most critical during the early stages of a project, when experimental design, resource allocation, and cross-disciplinary coordination are most fragile. It serves as both a checklist and a decision engine, ensuring that no research milestone slips through the cracks while maintaining alignment across theorists, experimentalists, and software engineers.

Planning the Research Path

A researcher begins with a hypothesis or a problem statement, such as “Topological qubits can reduce error rates below 10⁻⁴ in 2D lattice architectures.” The roadmap must translate this into a sequence of milestones, each with explicit deliverables, dependencies, and success criteria.

Each milestone is represented as a directory in a Git repository, structured as:

research/
├── 2024-q1-topological-qubit-study/
│   ├── README.md
│   ├── hypothesis.md
│   ├── milestones.yaml
│   ├── data/
│   ├── notebooks/
│   └── results/

The milestones.yaml file defines the research trajectory using a standard YAML schema:

milestones:
  - id: 01-theory
    title: "Theoretical Modeling"
    start: "2024-03-01"
    end: "2024-04-15"
    status: "in-progress"
    dependencies: []
    deliverables:
      - "mathematical proof of braiding stability in 2D lattice"
      - "simulated error propagation model (Jupyter notebook)"
    resources:
      - "128-core cluster, 500 GB RAM"
      - "access to qubit library (Qiskit, QuTiP, and custom Python scripts)"
    reviewers:
      - "[email protected]"
      - "[email protected]"
    checks:
      - "python -m pytest notebooks/theory_test.py"
      - "git diff --check"
      - "docker run -v $(pwd)/data:/data quacc:latest run -i /data/input.yaml"

A milestone is considered complete when:

The status field is updated by a CI job that runs ./scripts/update-milestone-status.sh nightly:

#!/bin/bash

set -euo pipefail

REPO_ROOT=$(git rev-parse --show-toplevel)
MILESTONES_FILE="$REPO_ROOT/research/milestones.yaml"

# Update status based on completion of checks and PRs
yq -i '
  .milestones |= map(
    .status |=
      if .deliverables | length == 0 then "pending"
      elif .deliverables | all(. | .status == "completed") then "done"
      elif .deliverables | any(. | .status == "in-progress") then "in-progress"
      else "failed"
      end
  )
' "$MILESTONES_FILE"

git add "$MILESTONES_FILE"
git commit -m "Update milestone status from CI"
git push origin main

The script uses yq (a command-line YAML processor) and assumes the milestones.yaml is updated by a git hook or CI pipeline.

Executing Experimental Work

Once a milestone is marked “in-progress,” the team begins executing experiments. The execution layer relies on a standard set of command-line tools: qiskit, openpulse, numpy, scipy, and dask.

A typical experiment script for measuring gate fidelity uses qiskit and dask for distributed execution:

# experiments/fidelity_measure.py
import numpy as np
from qiskit import QuantumCircuit, execute
from qiskit.providers import Backend
from dask.distributed import Client
import json

def run_fidelity_experiment(
    backend: Backend,
    circuit: QuantumCircuit,
    repetitions: int = 1000,
    shots: int = 1024,
    delay: float = 0.001,
) -> dict:
    # Add delay to each gate
    delayed_circuit = circuit.copy()
    for gate in delayed_circuit.data:
        gate[0].duration = gate[0].duration + delay

    # Run job
    job = execute(
        delayed_circuit,
        backend=backend,
        shots=shots,
        optimization_level=3,
        memory=True,
        seed_simulator=42,
    )
    job.result()

    # Compute fidelity
    expected = np.array([1.0] + [0.0] * (2**circuit.num_qubits - 1))
    actual = job.get_memory()
    fidelity = np.mean([
        np.abs(np.dot(expected, state)) ** 2
        for state in actual
    ])

    return {
        "fidelity": fidelity,
        "repetitions": repetitions,
        "shots": shots,
        "delay": delay,
        "timestamp": job.time_per_step(),
    }

if __name__ == "__main__":
    with open("config/experiment.json") as f:
        config = json.load(f)

    client = Client(config["dask_scheduler"])
    backend = client.get_backend(config["backend_name"])

    result = run_fidelity_experiment(
        backend=backend,
        circuit=QuantumCircuit(2),
        repetitions=config["repetitions"],
        shots=config["shots"],
        delay=config["delay"],
    )

    with open("results/fidelity.json", "w") as f:
        json.dump(result, f, indent=2)

The experiment is launched via a Makefile:

.PHONY: run-fidelity

run-fidelity:
	@echo "Running fidelity experiment..."
	@python experiments/fidelity_measure.py \
		--config config/experiment.json \
		--backend $(BACKEND) \
		--shots $(SHOTS) \
		--repetitions $(REPETITIONS) \
		--delay $(DELAY)
	@echo "Experiment complete. Results saved to results/fidelity.json"

The config/experiment.json file is the central source of truth for experiment parameters:

{
  "backend_name": "ibmq_manila",
  "dask_scheduler": "tcp://192.168.1.10:8786",
  "repetitions": 50,
  "shots": 2048,
  "delay": 0.005,
  "analysis": {
    "window_size": 10,
    "threshold": 0.98
  }
}

A common failure occurs when the dask_scheduler address is misconfigured. The Client constructor raises OSError: [Errno 111] Connection refused if the scheduler is unreachable. The error is silent unless dask logging is configured via dask.config:

import dask.config
dask.config.set({"logging": {"distributed": {"level": "INFO"}}})

Without this, developers observe long delays and no logs, but no indication of why jobs are stuck.

Tracking and Validating Results

After experiments run, results must be collated and validated. The validation process is driven by a validate-results.py script that compares outputs against expected values:

# scripts/validate-results.py
import json
import numpy as np
from pathlib import Path

def validate_results(
    results_dir: Path,
    expected: dict,
    tolerance: float = 1e-4,
) -> bool:
    results_path = results_dir / "fidelity.json"
    if not results_path.exists():
        print(f"Error: {results_path} not found")
        return False

    with open(results_path) as f:
        actual = json.load(f)

    for key, expected_value in expected.items():
        actual_value = actual[key]
        if abs(actual_value - expected_value) > tolerance:
            print(f"Validation failed for {key}: expected {expected_value}, got {actual_value}")
            return False
    return True

if __name__ == "__main__":
    results_dir = Path("results")
    expected = {
        "fidelity": 0.975,
        "shots": 2048,
        "delay": 0.005,
    }
    success = validate_results(results_dir, expected)

    if success:
        print("✅ All validations passed")
        Path("results/validated.txt").touch()
    else:
        print("❌ Validation failed")
        exit(1)

The script runs as part of a CI pipeline. A common silent failure is a mismatch between json keys and the expected dictionary. If the actual result includes "fidelity_value" instead of "fidelity", the validation passes even though it should fail.

To catch such issues, researchers add a schema.json file to the results/ directory, defining the expected structure:

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "fidelity": { "type": "number", "minimum": 0.0, "maximum": 1.0 },
    "repetitions": { "type": "integer", "minimum": 1 },
    "shots": { "type": "integer", "minimum": 1 },
    "timestamp": { "type": "array", "items": { "type": "number" } }
  },
  "required": ["fidelity", "repetitions", "shots"]
}

A validate-schema.sh script uses jq and jsonschema to verify correctness:

#!/bin/bash
# ./scripts/validate-schema.sh
set -euo pipefail

SCHEMA_FILE="results/schema.json"
RESULTS_DIR="results"

for result_file in $RESULTS_DIR/*.json; do
    echo "Validating $result_file"
    if ! jsonschema -i "$result_file" -s "$SCHEMA_FILE"; then
        echo "❌ Schema validation failed for $result_file"
        exit 1
    fi
done

echo "✅ All results validated against schema"

Integrating Theory and Experiment

The roadmap ensures that theory and experiment remain in sync. A key integration point is the theory-to-experiment mapping in the mapping.yaml file:

mapping:
  - theory:
      model: "Kitaev's 2D Toric Code"
      parameters:
        - "p: 0.001"
        - "T: 10 mK"
      prediction: "topological error threshold: 0.12"
    experiment:
      id: "2024-q1-topological-qubit-study"
      backend: "rigetti-ark"
      protocol: "randomized benchmarking"
      measured: "fidelity: 0.972"
      deviation: 0.004
      notes: "Measured at 8.5 mK, 1000 repetitions"

This mapping is automatically generated by a script that queries a results.db SQLite database:

-- queries/results.sql
SELECT
  r.experiment_id,
  r.backend,
  r.fidelity,
  t.model,
  t.parameters,
  t.prediction
FROM results r
JOIN experiments e ON r.experiment_id = e.id
JOIN theories t ON e.theory_id = t.id
WHERE r.fidelity < t.prediction * 0.9
ORDER BY r.fidelity DESC;

The script uses sqlite3 and jq to produce the YAML output:

#!/bin/bash
# ./scripts/generate-mapping.sh
set -euo pipefail

DATABASE="results.db"
OUTPUT="mapping.yaml"

sqlite3 "$DATABASE" -header -csv << 'EOF' | jq -Rn -f - > "$OUTPUT"
{
  mapping: [
    inputs | 
    split("\n") |
    .[0] as $header |
    .[1:] |
    map(split(",")) |
    map({ experiment: .[0], backend: .[1], fidelity: .[2] }) |
    map({
      theory: {
        model: "Kitaev's 2D Toric Code",
        parameters: [
          "p: 0.001",
          "T: 10 mK"
        ],
        prediction: 0.12
      },
      experiment: .[0]
    })
  ]
}
EOF

The inputs variable is a CSV output from the sqlite3 query. The script uses jq's stream processing mode (-Rn) to process lines as JSON objects, ensuring that mappings are generated correctly even with large result sets.

Synchronizing Across Teams

The roadmap is synchronized across teams via a shared status.json file that aggregates all milestone and experiment states:

{
  "project": "Topological Qubit Study",
  "last_updated": "2024-05-14T12:30:00Z",
  "milestones": {
    "01-theory": {
      "status": "done",
      "updated": "2024-05-01T10:00:00Z",
      "deliverables": [
        "mathematical proof of braiding stability in 2D lattice",
        "simulated error propagation model (Jupyter notebook)"
      ],
      "reviewers": [
        "[email protected]",
        "[email protected]"
      ]
    },
    "02-experiment": {
      "status": "in-progress",
      "updated": "2024-05-10T14:20:00Z",
      "experiments": [
        "fidelity-01",
        "fidelity-02"
      ]
    }
  },
  "experiments": {
    "fidelity-01": {
      "backend": "ibmq_manila",
      "fidelity": 0.971,
      "status": "completed",
      "results_path": "results/fidelity-01.json"
    }
  }
}

This file is updated by a nightly sync-status.sh job:

#!/bin/bash
# ./scripts/sync-status.sh
set -euo pipefail

STATUS_FILE="status.json"
RESULTS_DIR="results"

# Collect all results
EXPERIMENTS=()
for result_file in "$RESULTS_DIR"/*.json; do
    base=$(basename "$result_file" .json)
    EXPERIMENTS+=("$base")
done

# Update status
jq --argjson experiments "$(printf '%s\n' "${EXPERIMENTS[@]}" | jq -R .)" '
  .experiments |= (reduce $experiments as $exp (.; 
    .[$exp] |= {
      "backend": "ibmq_manila",
      "fidelity": 0.971,
      "status": "completed",
      "results_path": "results/\($exp).json"
    }
  )
' "$STATUS_FILE" > "$STATUS_FILE.tmp"
mv "$STATUS_FILE.tmp" "$STATUS_FILE"

git add "$STATUS_FILE"
git commit -m "Update status.json with new experiments"
git push origin main

A subtle failure mode is the jq script’s handling of null values. When fidelity is null in a result, the status.json file shows "fidelity": null, but the sync-status.sh script assumes a number. This causes the status to be “in-progress” even when the experiment is complete, because 0.971 is not equal to null.

Publishing and Archiving

The final stage of the roadmap is publication. The publish.md file captures the project’s narrative, including figures, tables, and references. The publish script builds a static site using mdbook:

mdbook build \
  --config book.toml \
  --dest-dir docs \
  --verbose

The book.toml file configures the build:

[book]
title = "Topological Qubit Study"
language = "en"
src = "src"
dest = "docs"

[output.html]
default-theme = "material"
highlight-code = true

The generated site is deployed via rsync:

rsync -avz --delete docs/ user@server:/var/www/quantum-research/

The roadmap is complete when:

The roadmap is not a document—it is a living workflow, maintained by command-line tools, configuration files, and consistent conventions. It is the central nervous system of quantum research, where every error, delay, and mismatch is visible and actionable.

This page was rewritten on 13 October 2026. It replaced a templated version that was not specific to its own title. How these pages are written and checked. If anything here is wrong, tell us at [email protected] and we will correct it.