QICKoDeS
A QCoDeS driver for QICK. Usable but still under active development. Pull requests are welcome!
Supports Python 3.11+
Development goals
- This should be a thin wrapper that directly exposes all features of QICK.
- Pulses ("
pulses_v2") and pulse sequences ("macros_v2") should be parameterized such that they can be fully reproduced based on the QCoDeS snapshot that gets saved with every dataset.
Status between tProc v1 and v2
Currently, tProc v1 is under maintenance mode where only bug fixes will be implemented. tProc v2 is what you should be using.
At some point, tProc v1 will be deprecated. If you find some bugs, please do report them in the issue tracker.
Installation
The authors recommend using uv inside a virtual environment.
uv venv my-environment
source my-environment/bin/activate
uv pip install qickodes
If you don't like using external packages,
python -m venv my-environment
source my-environment/bin/activate
pip install qickodes
Development
If you prefer using a more reproducible build, check locking and syncing with uv. This would install an editable installation of qickodes. Please only do this if you intend on modifying the source code and prefer to contribute upstream to this repository.
git clone https://github.com/aalto-qcd/qickodes.git
cd qickodes/
uv sync
This step would create a fresh virtual environment in
qickodes/.venv/ if a virtual environment doesn't exist already. We
recommend using a fresh venv for reproducibility.
Getting started
- Start the Pyro4 nameserver (see here, use port 8888) and the QICK server (see here) on a Xilinx board.
- Check the connection and the channel number assignment:
from qickodes import QickInstrument qick_instrument = QickInstrument("ip.address.of.board") print(qick_instrument.soccfg)
- Copy the scripts in the folder
example_scriptsinto your folder. - Edit
header.py:- Specify the IP address of the board by editing the line like
qick_instrument = QickInstrument("ip.address.of.board")
- Specify DAC/ADC channel numbers by editing the lines like
readout_dac = qick_instrument.dacs[channel_number]
- Specify the IP address of the board by editing the line like
- Run the example scripts:
meas_s21_vs_adc_trig_offset.py: Optimize the ADC trigger offsetmeas_resonator.py: Measure S21 vs frequencymeas_punchout.py: Measure S21 vs frequency and amplitudemeas_pulse_probe_2d.py: Pulse probe spectroscopy of a qubit dispersively coupled to a resonatormeas_pi_pulse_gain_sweep.py: Optimize the amplitude of a pi pulse (play 10 pi pulses and readout)meas_resonator_vs_qubit_state.py: Measure resonator spectra with the qubit in the ground and excited statesmeas_t1.py: Measure the T1 of the qubit
Long timetraces with the DDR4 buffer (tProc v2)
With acquisition_mode="ddr4", the continuous output of one readou is
recorded into the board's DDR4 memory: up to 2^30 samples per record.
The exact max timetrace that can be acquired depends on the firmware
on the board. Each record is averaged in blocks of n_block samples
on the board (previously this was done by sending the raw data onto
the measurement computer via Pyro and then averaging done on it,
however this would store huge chunks of data (in GBs) and take longer
measurement times). All records of a run are saved in one file.
Board-side module
The averaging runs inside the board's Pyro server, so
board/qickodes_board.py has to be
copied onto the board. This is the case since v0.3.0.
ssh xilinx@ip.address.of.board 'mkdir -p ~/board'
scp board/qickodes_board.py xilinx@ip.address.of.board:board/
Then start the QICK server with soc_class=QickodesSoc:
sudo XILINX_XRT=/usr /usr/local/share/pynq-venv/bin/python3 -B -c '
import sys
sys.path.insert(0, "/home/xilinx/board")
from qick.pyro import start_server
from qickodes_board import QickodesSoc
start_server(
ns_host="ip.address.of.board",
ns_port=8888,
proxy_name="myqick",
soc_class=QickodesSoc,
bitfile="/path/to/bitfile.bit",
)
'
qick_instrument.ddr4_buffer.board.api_version.get() returns 1 when
the module is running. Without it, qickodes falls back to averaging on
the measurement PC, which transfers the entire raw record over the
network which increases the measurement time.
Measuring
ddr4 = qick_instrument.ddr4_buffer
ddr4.selected_adc_channel.set(readout_adc.channel_num)
ddr4.num_transfers.set(num_transfers) # record length, see ddr4.record_duration()
ddr4.n_block.set(157) # average blocks of 157 samples (~511 ns on the ZCU216)
ddr4.save_dir.set("ddr4_data") # one <run_id>.nc file per run
qick_instrument.set_macro_list([
PlayPulse(qick_instrument, readout_pulse, t=0),
Trigger(qick_instrument, readout_adc, t=adc_trig_offset, ddr4=True),
...
])
qick_instrument.hard_avgs.set(num_shots) # shots within one record
qick_instrument.soft_avgs.set(1)
qick_instrument.run(
Measurement(station=station, name="my_measurement"),
software_sweeps=[...], # one record per sweep point
acquisition_mode="ddr4",
)
See meas_s21_ddr4.py for a
minimal example.
Reading the data
The file holds the same structure as the iq of a "decimated" run.
import xarray as xr
from qcodes.dataset import load_by_run_spec
dataset = load_by_run_spec(captured_run_id=run_id)
iq = xr.open_dataarray(dataset.metadata["ddr4_file"], engine="h5netcdf")
Citing
QICKoDeS is the work of Yoshiki Sunada, Ashish Panigrahi, Jonatan Albanese and Mikko Möttönen.
If you use QICKoDeS in your research, please cite it via its DOI:
Sunada, Y., Panigrahi, A., Albanese, J., & Möttönen, M. QICKoDeS: A QCoDeS driver for QICK. Zenodo: https://doi.org/10.5281/zenodo.23350958
BibTeX entry:
@software{qickodes,
author = {Sunada, Yoshiki and Panigrahi, Ashish and Albanese, Jonatan and Möttönen, Mikko},
title = {{QICKoDeS}: A {QCoDeS} driver for {QICK}},
doi = {10.5281/zenodo.21066164},
title = {{qickodes}},
url = {https://doi.org/10.5281/zenodo.23350958},
year = {2026},
}
Metadata
Release files for qickodes 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qickodes-0.3.0.tar.gz | 47.0 kB | With provenance | Details for qickodes-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qickodes-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for qickodes-0.3.0-py3-none-any.whl |
Total release size: 107.0 kB
Release files / qickodes-0.3.0.tar.gz
| Download URL | qickodes-0.3.0.tar.gz |
|---|---|
| Size | 47.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b62c25843294a9a06c62228c3f90eb55530537cd4bf33169f992ac1ebb51b0f
|
|
BLAKE2b-256 checksum How to use checksums |
70b1c916b95a71b5e8ac8d1429616aaa508031a1eebe52ca8397fae0eeec2dfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / qickodes-0.3.0-py3-none-any.whl
| Download URL | qickodes-0.3.0-py3-none-any.whl |
|---|---|
| Size | 60.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea35b66e534b09a230bf5ee7b574db9372145485323383fe9f0c0219e652050b
|
|
BLAKE2b-256 checksum How to use checksums |
67d607440a84eaecdb028617607e4ea2c6f21055c5b00a40f038d331fb837825
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for qickodes 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for qickodes-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.