QCoDeS [UNRELEASED DRAFT] (2026-02-04)¶
Breaking Changes:¶
The functionality to export qcodes datasets to XArray/netcdf4 has been significantly improved for datasets where the shape of the data is known from metadata e.g. using dond or similar:
The memory overhead of exporting the data has been reduced.
The coordinate order is maintained such that data is stored in the order it was measured. Previously data was implicitly sorted by coordinates during the export.
When exporting Datasets to xarray where the shape is known, either by the use of utilities such as
dondor manually specified, inferred parameters related to the setpoints and measured parameters are now included in the XArray Dataset.
These changed were previously part of
0.54.0but reverted in0.54.1since the change in coordinate sorting was not announced. (#7546)
Improved:¶
The
InstrumentModuleand its aliasInstrumentChannelnow take an optional generic argument allowing you to specify the type of the parent instrument for type checking. (#7659)The
ChannelTupleclass now hasmulti_parameterandmulti_functionmethods that provide type-safe access to parameters and functions on all channels in the tuple. These methods allow accessing attributes with proper type information, improving IDE integration and type checking. The return type annotation of__getattr__has been changed toAnyreflecting the fact that this is not a type safe interface and it is impossible for a static type checker to infer the type of the dynamic attribute.multi_parameter,multi_functionandget_channel_by_nameshould be used when a more specific type is requested. (#7686)The InterDependencies_ class is now frozen during the performance of a measurement so it cannot be modified. This enables caching of attributes on the class significantly reducing the overhead of measurements. (#7712)
The QCoDeS Parameter classes
ParameterBase,Parameter,ParameterWithSetpoints,DelegateParameter,ArrayParameterandMultiParameternow takes two Optional Generic arguments to allow the data type and the type of the instrument the parameter is bound to to be fixed statically. This enables the type of the output ofparameter.get(), input ofparameter.set()and value ofparameter.instrumentto be known statically such that type checkers and IDE’s can make use of this information. (#7730)The table created by experiments_widget() now has a column of buttons by which individual datasets can be exported as ASCII files. This is a user-friendly way to use the qcode.dataset.export() method.
To demo this feature, run > experiments_widget(sort_by=”timestamp”) in Jupyter, and click on one of the cells in the “Export” column. (#7772)
Improved Drivers:¶
Added blocking function to DynaCool PPMS driver that waits for temperature state to be stable before allowing other functions to be called when setting the temperature. (#7534)
The
KeysightE4980Adriver now names thecorrectionsubmodule correctly ascorrectionreflecting the public attribute to access the module. This also means that in the snapshotcorrectionis used as the module name rather than_correction(#7659)Improved sim YAML for Cryomagnetics TM620 and added default terminator. (#7666)
The
RohdeSchwarzZNBBase,MiniCircuitsRCSPDT, andTektronixTPS2012drivers now have explicit type annotations on theirchannelssubmodule, enabling better type checking and IDE integration. (#7686)In the Rohde Schwarz ZNB drivers QCoDeS functions have been converted to regular methods. This ensures that methods are type checked and can be discovered by IDEs. (#7715)
On Keithly3706A, allow users to cache forbidden channels in order to bypass unnecessary _validator() calls when closing channels. Added a cache for _validator() results. Both of these changes results in significant time savings when running measurements with repeated calls to close_channel(). (#7771)
Fixed bug in Lakeshore driver that was causing blocking_t to periodically hang indefinitely: a 0.5 seconds post delay was added to setpoint parameter to ensure that the setpoint value propagated to the instrument when the set of the setpoint parameter returns. (#7796)
Several instrument drivers now make better use of the newly added generic datatype and instrument arguments to ParameterBase and subclasses.
AlazarTech ATS:
TraceParameternow uses generic type parameters.CopperMountain M5xxx:
FrequencySweepMagPhase,PointMagPhase, andPointIQnow use generic type parameters. Removed unnecessaryassert isinstancecalls. Fixed timeout handling when timeout isNone.Keysight 344xxA:
Keysight344xxATrigger,Keysight344xxASample,Keysight344xxADisplayandTimeTracenow use generic type parameters. Refactored_acquire_time_traceto use explicit context managers instead of a list of parameter settings. .. gitleaks:allowKeysight B1500: Added
MeasurementModeDictTypedDict.IVSweepMeasurementcorrected instrument type and now uses generic type parameters.KeysightB1500Modulenow uses generic type parameters.Keysight B1517A:
KeysightB1500IVSweeper,_ParameterWithStatus,_SpotMeasurementVoltageParameter, and_SpotMeasurementCurrentParameternow use generic type parameters. Removed unnecessarycastcalls. .. gitleaks:allowKeysight B1520A:
KeysightB1500CVSweeperandKeysightB1500CVSweepMeasurementnow use generic type parameters. Addedroot_instrumentproperty toKeysightB1500CVSweepMeasurement. .. gitleaks:allowKeysight B1500 sampling measurement:
SamplingMeasurementnow uses generic type parameters and has aroot_instrumentproperty. Fixed timeout handling when timeout isNone.Keysight B1500 message builder: Improved type annotations using
ParamSpecandTypeVar. MadeCommandListgeneric.Keysight KtM960x:
Measureparameter now uses generic type parameters.Keysight N9030B:
FrequencyAxis,Trace,KeysightN9030BSpectrumAnalyzerMode, andKeysightN9030BPhaseNoiseModenow use generic type parameters. Replacedassertstatements with proper error handling.QuantumDesign DynaCool: Improved type annotation for
_pick_onemethod. Removed unnecessarycastcall.Rohde & Schwarz ZNB:
FixedFrequencyTraceIQ,FixedFrequencyPointIQ,FixedFrequencyPointMagPhase,FrequencySweepMagPhase,FrequencySweepDBPhase, andFrequencySweepnow use generic type parameters. Removed unnecessaryassert isinstancecalls.Tektronix DPO7200xx:
TektronixDPOMeasurementParameternow uses generic type parameters. Removed unnecessarycastcall.Yokogawa GS200:
source_modeandcurrent_limitparameters now use generic type parameters. Replaced if-else statements with match statements for source mode handling. (#7822)