QCoDeS
raw JSON → 0.57.0 verified Mon Apr 27 auth: no python
Python-based data acquisition framework developed by the Copenhagen / Delft / Sydney / Microsoft quantum computing consortium. Current version: 0.57.0. Active development with monthly releases.
pip install qcodes Common errors
error ModuleNotFoundError: No module named 'qcodes.station' ↓
cause Station is not in qcodes.station, it is at top-level.
fix
Use from qcodes import Station
error DeprecationWarning: Passing arguments as positional arguments is deprecated. ↓
cause Using positional arguments beyond 'name' in Parameter subclasses, deprecated since 0.56.0.
fix
Use keyword arguments: Parameter('voltage', set_cmd=None, get_cmd=None)
error ImportError: cannot import name 'AlazarTech_ATS9360' from 'qcodes.instrument_drivers.AlazarTech' ↓
cause Old class name removed in 0.57.0.
fix
Use AlazarTechATS9360 from same module.
Warnings
breaking Python 3.10 support dropped in 0.53.0. ↓
fix Use Python >=3.11.
breaking Deprecated class names in instrument_drivers removed or renamed in 0.57.0. Underscore-based aliases like AlazarTech_ATS9360 removed. ↓
fix Use camelCase names, e.g., AlazarTechATS9360.
breaking Positional arguments for Parameter and subclasses deprecated in 0.56.0. ↓
fix Use keyword arguments for all except 'name'.
gotcha Incorrect import path for Station, Parameter, Instrument leads to AttributeError or import errors. ↓
fix Import from qcodes directly: from qcodes import Station
Imports
- Station wrong
from qcodes.station import Stationcorrectfrom qcodes import Station - Parameter wrong
from qcodes.parameter import Parametercorrectfrom qcodes import Parameter - Instrument wrong
from qcodes.instrument import Instrumentcorrectfrom qcodes import Instrument - AlazarTechATS9360 wrong
from qcodes.instrument_drivers.AlazarTech import AlazarTech_ATS9360correctfrom qcodes.instrument_drivers.AlazarTech import AlazarTechATS9360
Quickstart
from qcodes import Station, Parameter
import os
# Define a dummy parameter for testing
p = Parameter('voltage', set_cmd=None, get_cmd=None)
station = Station(p)
station.snapshot()