QC2-LAB Calibration Toolkit#

The QC2 @ Chalmers calibration toolkit — a framework for calibrating and characterizing our superconducting quantum platform.

The four packages of the QC2-Lab calibration toolkit

The four packages of the suite and how they cooperate during a calibration run.#

The suite is organized as a monorepo of four packages, each owning one stage in the lifecycle of a calibration experiment:

Package

Role

Responsibility

bragi_quantum.experiments

Experiments

Library of calibration & characterization experiments (resonator/qubit spectroscopy, Rabi, Ramsey, Motzoi, readout optimization, punchout).

bragi_quantum.datalayer

Data layer

Data management, persistence (HDF5 + Redis) and the physical device model of the chip.

bragi_quantum.api

Orchestration & API

Orchestration layer that composes the experiments package’s building blocks into automated calibration pipelines.

bragi_quantum.gui

GUI

On-demand replot and monitoring server that re-renders plots from saved sessions (the qc2-show command).

How the pieces fit together#

A typical run is driven entirely through the api package’s CalibrationOrchestrator:

from bragi_quantum.api.orchestra import CalibrationOrchestrator
from bragi_quantum.api.handlers.data import RedisDataHandler
from bragi_quantum.datalayer.managing.session import SessionOptions
from bragi_quantum.experiments.nodes.readout.resonator_spectroscopy.node import ResonatorSpectroscopy
from bragi_quantum.experiments.nodes.readout.resonator_spectroscopy.parameters import (
    ResonatorSpectroscopyParameters, ResonatorSpectroscopyQOI,
)

orchestrator = CalibrationOrchestrator(
    experiment_template_name="example_chip",
    data_handler=RedisDataHandler(redis_port=6380),
)

with orchestrator.calibration_session(SessionOptions(session_name="resonator")):
    orchestrator.run_node(
        ResonatorSpectroscopy(
            parameters=ResonatorSpectroscopyParameters(
                name="resonator_spec", qubits=["q16", "q17"], samples=101,
            ),
            qoi_cls=ResonatorSpectroscopyQOI,
        )
    )

The orchestrator loads the device model from a template (device_templates/example_chip), connects to the hardware, runs the bragi_quantum.experiments node inside a bragi_quantum.datalayer session, and writes datasets, a PDF report and an interactive HTML report into calibration_outputs/<timestamp>/. Browse the results afterwards with bragi_quantum.gui:

qc2-show calibration_outputs/

Acknowledgements#

Several of the experiments package’s calibration nodes are adapted from the tergite-autocalibration project (Apache License 2.0).

Indices and tables#

Project