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 raisedNotImplementedError - 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.jsonin its folder, which a later session takes as itscalibration, unlesskeep_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
clusterandcoordinatorarguments totune_deviceandrun_node, to run on a cluster the caller already holds; the tuner neither resets nor closes it - Added a
quantum_deviceargument totune_deviceandrun_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 raisestomllib.TOMLDecodeErrorwhere it raisedtoml.TomlDecodeError, andtoml,h5pyandrequestsare no longer direct dependencies - Moved the transmon, coupler edge, extended gates and device helpers from
tergite_tuner.utils.types.extended_*andtergite_tuner.lib.utils.devicetotergite_tuner.backend - Waited for a schedule’s estimated duration plus
cluster_timeoutbefore raising, instead of a fixed hour, and dropped the progress bar, which only slept for the estimate - Replaced
tergite_tuner.tuner.HardwareManagerand the nodes’lab_instr_coordinatorandspi_managerwithtergite_tuner.backend.Hardware, which a node reaches asnode.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
NodeSpecintergite_tuner.lib.nodes.DEFAULT_NODE_SPECS, replacing the node classes,BaseNode,QubitNode,CouplerNode, the analysis base classes andDEFAULT_NODE_CLS_MAP; custom nodes go in the session’snode_specs, which replacesnode_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), replacingfrom_tomlandfrom_json;NodeConfigandSpiConfigare 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, whichkeep_data_files=Falsedeletes; it deleted all ofdata_dir, andreanalysedeleted the dataset it re-analysed, soreanalyseno longer takeskeep_data_files - [BREAKING] Read the session with pydantic-settings, so an environment variable now wins over the
.envfile, as in Docker, andSessionContext(...)reads the environment too;pydantic-settingsreplacespython-dotenvas 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,RedisStoreand theredisdependency are gone - Marked a node
not_calibratedon an element its analysis failed on, where it kept the element’s earlier status - Defaulted
SessionContext.ignored_nodesandnode_dag_edgestoNone, 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.exportfor what they hold:QubitResultsandCouplerResultsare public, replacing the private_QubitInRedisand_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-schedulerrewrites come once it is merged - Changed the code formatter from black to
ruff format, the tool that already lints the code; contributors runruff formatwhere 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_analysisandsave_coupler_figures; a coupler node’s figures are drawn from its fits byget_coupler_figure_saveras they are saved, so a run withsave_plotoff no longer draws them - [BREAKING] Changed the tuner to close the cluster and SPI rack it opens when a run ends, and to raise
InstrumentNameTakenErrorwhen 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_LEVELand totergite_tuner.login its folder atFILE_LOG_LEVEL; both settings were ignored and the tuner set up no logging, and importing it madeExtendedLoggerthe 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,reanalyseandgenerate_calib_seed_fileto 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
ClusterUnreachableErrorwhen 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_plotwas 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
AttributeErroron punchout, NRabi12, T1, T2, T2 echo, AllXY, purity benchmarking and two spectroscopies - Read only the session’s own fields from the environment;
SessionContext.from_envcopied every environment variable, secrets included, into the session - Applied a qubit’s own section of the node config (
[node.q01]) over itsallsection; onlyallreached 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_pulsefor spectroscopy pulses longer than 6.5 µs in amplitude spectroscopy; such pulses raisedUnboundLocalError - Matched
read_result‘s session fields exactly; it returned fields whose name merely appeared inside a touched one (RB’sfidelityforpurity_fidelity) and dropped flat fields’_errorvalues - 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_1in resonator spectroscopy 1, where a frequency was stored, and failed the analysis when the resonator fit raises instead of crashing withAttributeError - Failed punchout when no resonator fit succeeds, where it stored
Noneas 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_modesdecided it, and raisedValueErrorfor 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 syncandpip installpicking 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 indata_dirwhen 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()andprune_fields()methods on theRedisStore - Added default parking currents in device_config.example.toml
Changed
- [BREAKING] Changed the output of
read_resultsto return a stronger-typedCalibrationResultspydantic model instance - [BREAKING] Renamed
read_session_resultstoread_results - [BREAKING] Renamed
extract_bcc_paramstogenerate_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 ofread_resultsand callmodel_dumpsandmodel_dumps_jsonon it. - Added a
session_onlyparameter onread_resultsto allow getting all results in redis regardless of session ifsession_only=True - Removed setting QOI’s of nodes to nan and 0 before calibration runs
- Allowed passing a
QbloxHardwareCompilationConfiginstance as cluster_config inSessionContext
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