Tergite Tuner


[2026.10.0]

released on 2nd of December 2026

Added

  • Analysed AllXY: each pulse pair’s |1> population against the ideal gates’, with their mean deviation stored as all_xy_error; the node raised NotImplementedError
  • Logged how long each node’s compile, measurement and analysis take, so a run’s log shows where its time went
  • Wrote each run’s results to results.json in its folder, which a later session takes as its calibration, unless keep_data_files=False
  • Created a GitHub release for each tag, with its CHANGELOG.md section as the notes, a pre-release for a release candidate; a tag without a section now fails before it is published to PyPI
  • Added snapshots of every node’s default sweeps and device-compiled schedules, checked by test_schedule_snapshots.py; where a changed schedule golden only said a node’s program moved, the test now names the pulse, setting and time that did
  • Added goldens of what each node’s saved figures draw for its recorded dataset, checked by test_figure_goldens.py: each axis’s artists, labels, limits, colours and sizes, where the reanalysis goldens pin only the stored values
  • Added cluster and coordinator arguments to tune_device and run_node, to run on a cluster the caller already holds; the tuner neither resets nor closes it
  • Added a quantum_device argument to tune_device and run_node, to run on the caller’s own transmons and coupler edges, which each node sets from the session’s state and sets back when it ends, building those it lacks; tergite-backend had to remove its transmons before a recalibration and reload them afterwards, as the tuner’s took the same names

Changed

  • Removed NodeEnum.PROCESS_TOMOGRAPHY_SSRO, whose node could not run and was left out of the node map, with the unused reset chevron node
  • Read the TOML config files with Python’s tomllib; a malformed one raises tomllib.TOMLDecodeError where it raised toml.TomlDecodeError, and toml, h5py and requests are no longer direct dependencies
  • Moved the transmon, coupler edge, extended gates and device helpers from tergite_tuner.utils.types.extended_* and tergite_tuner.lib.utils.device to tergite_tuner.backend
  • Waited for a schedule’s estimated duration plus cluster_timeout before raising, instead of a fixed hour, and dropped the progress bar, which only slept for the estimate
  • Replaced tergite_tuner.tuner.HardwareManager and the nodes’ lab_instr_coordinator and spi_manager with tergite_tuner.backend.Hardware, which a node reaches as node.hardware
  • Gave the dummy cluster the modules in the cluster config’s hardware_description; it had 15 QCM-RF and 2 QRM-RF modules whatever the config said
  • [BREAKING] Defined each node as a NodeSpec in tergite_tuner.lib.nodes.DEFAULT_NODE_SPECS, replacing the node classes, BaseNode, QubitNode, CouplerNode, the analysis base classes and DEFAULT_NODE_CLS_MAP; custom nodes go in the session’s node_specs, which replaces node_cls_map
  • Skipped the pause between T1 and T2 repetitions on a dummy cluster
  • [BREAKING] Requires Python 3.13 or later, as tergite-backend does, instead of 3.12; pip refused the package on 3.13 before
  • [BREAKING] Loaded every config file with tergite_tuner.config.types.load_config(model, path), replacing from_toml and from_json; NodeConfig and SpiConfig are read through .root, as they no longer index like dicts
  • [BREAKING] Wrote each run’s node folders, or a recalibration’s files, into a folder of the run’s own in data_dir, which keep_data_files=False deletes; it deleted all of data_dir, and reanalyse deleted the dataset it re-analysed, so reanalyse no longer takes keep_data_files
  • [BREAKING] Read the session with pydantic-settings, so an environment variable now wins over the .env file, as in Docker, and SessionContext(...) reads the environment too; pydantic-settings replaces python-dotenv as a dependency
  • [BREAKING] Kept the device’s values and calibration statuses in the session, which starts from the device config with an earlier run’s results, passed as calibration, over it; every run wrote the device config over Redis, so only values the config lacked carried over. redis_url, RedisStore and the redis dependency are gone
  • Marked a node not_calibrated on an element its analysis failed on, where it kept the element’s earlier status
  • Defaulted SessionContext.ignored_nodes and node_dag_edges to None, which the run reads as the default graph’s
  • Required pydantic 2.11.3 and pydantic-settings 2.9.1 or later, below 3, instead of their 2.11 and 2.9 series; an application that installs the tuner could not use a newer pydantic-settings
  • Named the result models in tergite_tuner.export for what they hold: QubitResults and CouplerResults are public, replacing the private _QubitInRedis and _CouplerInRedis, and the JSON they read and write is unchanged
  • Gave the public functions and classes Google-style docstrings, saying what each does for the caller, its arguments, what it returns and what it raises; those in the modules feature/qblox-scheduler rewrites come once it is merged
  • Changed the code formatter from black to ruff format, the tool that already lints the code; contributors run ruff format where they ran black, which is no longer a dev dependency
  • Changed the README to a short quick start that tunes a qubit on a dummy cluster, with configuration, the entry points and the open work each in a page under docs/, and the testing and code conventions moved from DESIGN.md to CONTRIBUTING.md
  • [BREAKING] Changed every node’s analysis to a function that returns its fits and what its plot draws, removing ElementAnalysis, CouplerAnalysis, get_class_analyser, get_coupler_analyser, plot_class_analysis and save_coupler_figures; a coupler node’s figures are drawn from its fits by get_coupler_figure_saver as they are saved, so a run with save_plot off no longer draws them
  • [BREAKING] Changed the tuner to close the cluster and SPI rack it opens when a run ends, and to raise InstrumentNameTakenError when the cluster’s name is taken, instead of closing every cluster in the process, tergite-backend’s included

Fixed

  • Rounded CZ chevron’s working durations down to 4 ns from whole nanoseconds; floating-point division turned an exact 100 ns into 99, and so 96
  • Logged each run to the console at STDOUT_LOG_LEVEL and to tergite_tuner.log in its folder at FILE_LOG_LEVEL; both settings were ignored and the tuner set up no logging, and importing it made ExtendedLogger the class of every logger made after
  • Failed the T2 and CZ RB fits on data they cannot fit, where they raised ZeroDivisionError: a T2 repetition with no oscillation, a CZ RB standard decay fitted to zero
  • Stored qubit spectroscopy vs current’s results and status under its own name; they went under coupler_anticrossing, so the node was never in spec
  • Prepared |2> in resonator spectroscopy with the calibrated ef motzoi, as the readout optimizations do; its ef π pulse had none
  • Set qubit 01 spectroscopy’s pulse to 3 µs and amplitude 0.03 in node_config.example.toml; its five 6 µs amplitudes overflowed the sequencer’s waveform memory
  • Ran purity benchmarking, whose schedule raised TypeError; its sweep also gave its 128, 256 and 512 lengths up as calibration points, so they were never measured
  • Applied the session options of run_node, tune_device, reanalyse and generate_calib_seed_file to a session passed in, setting them over its values; they were ignored, so tergite-backend’s one-qubit-at-a-time recalibration ran every qubit
  • Raised ClusterUnreachableError when the cluster refuses the connection, instead of exiting the calling program
  • Kept the caller’s matplotlib backend; every node switched it, to TkAgg when save_plot was set, which fails on a headless machine
  • Restored quantify-scheduler’s grid-time tolerance after each compile; every compile raised it for the rest of the calling program
  • Gave every node a dummy dataset; dummy mode raised AttributeError on punchout, NRabi12, T1, T2, T2 echo, AllXY, purity benchmarking and two spectroscopies
  • Read only the session’s own fields from the environment; SessionContext.from_env copied every environment variable, secrets included, into the session
  • Applied a qubit’s own section of the node config ([node.q01]) over its all section; only all reached the qubits before
  • Drove each qubit with its own pulse duration in Rabi oscillations and three-state readout amplitude optimization; every qubit took the last qubit’s
  • Used long_square_pulse for spectroscopy pulses longer than 6.5 µs in amplitude spectroscopy; such pulses raised UnboundLocalError
  • Matched read_result‘s session fields exactly; it returned fields whose name merely appeared inside a touched one (RB’s fidelity for purity_fidelity) and dropped flat fields’ _error values
  • Raised the instruments’ errors while running a schedule, which a background thread swallowed, so a measurement that failed to start went on to analyse whatever acquisitions the instrument held
  • Stored the fitted Ql_1 in resonator spectroscopy 1, where a frequency was stored, and failed the analysis when the resonator fit raises instead of crashing with AttributeError
  • Failed punchout when no resonator fit succeeds, where it stored None as a successful amplitude, and plotted its fitted frequencies against amplitude instead of the swapped axes
  • Reset and excited only each coupler’s own qubits in CZ parametrization; with several couplers, every coupler’s loop drove all of their qubits
  • Interleaved the CZ only in two-qubit RB’s interleaved mode, where the order of interleave_modes decided it, and raised ValueError for more than one coupler instead of silently benchmarking only the first
  • Shifted no phase for a CZ’s uncalibrated (NaN) phase correction; the check for it never matched, so the CZ shifted the qubit’s clock by NaN
  • Fixed a node run on some of a session’s qubits building the couplers of the others into its device, which then failed to compile: tergite-backend’s Ramsey 12, one qubit at a time, failed on any device with couplers
  • Fixed qubit spectroscopy of several amplitudes failing to compile at its 6 us pulses, whose soft square waveforms of four amplitudes overflow a sequencer’s memory: it plays long square pulses beyond 4 us
  • Fixed uv sync and pip install picking Python 3.14, on which the pinned pydantic-core does not build; the package now requires Python 3.13
  • Fixed a measurement that raised mid-sweep leaving its external settings as its last point set them: coupler spectroscopy left a coupler at a swept current, up to 3.1 mA, until the next run
  • Fixed coupler spectroscopy in a recalibration, the default, setting every coupler’s current to 0 A as it ended, though it had set none: the couplers stayed off their parking currents for the rest of the run
  • Fixed a run with keep_data_files=False, as tergite-backend’s recalibration runs each node, keeping its folder, log and datasets in data_dir when it raised; it deletes them however it ends
  • Fixed CZ chevron keeping a working point whose sine fit stopped unconverged at lmfit’s 10,000 evaluations: where it stopped differed from run to run, so the recorded q13_q14 chevron’s last point came out as 284 ns, near 0 ns or not at all; such fits are now rejected

[2026.06.0]

released on 26th of June 2026

Added

  • Added the delete_many() and prune_fields() methods on the RedisStore
  • Added default parking currents in device_config.example.toml

Changed

  • [BREAKING] Changed the output of read_results to return a stronger-typed CalibrationResults pydantic model instance
  • [BREAKING] Renamed read_session_results to read_results
  • [BREAKING] Renamed extract_bcc_params to generate_calib_seed_file
  • [BREAKING] Changed extract_bcc_params (i.e. generate_calib_seed_file) to return no value and only work with writing to a toml file. If one wants the results in dict or json form, they can use the output of read_results and call model_dumps and model_dumps_json on it.
  • Added a session_only parameter on read_results to allow getting all results in redis regardless of session if session_only=True
  • Removed setting QOI’s of nodes to nan and 0 before calibration runs
  • Allowed passing a QbloxHardwareCompilationConfig instance as cluster_config in SessionContext

Fixed

  • Removed the hard-coded fixes for CZ local phases for reverse phase qubits
  • Fixed value error Invalid type <class 'NoneType'> in generate_calib_seed_file()
  • Fixed type error RandomizedBenchmarkingNodeAnalysis got two values for session
  • Fixed error in saving coupler params in redis on the populate_node_parameters() function
Back to top