Add your description here
Project description
CQC QUAM State
A command-line tool for managing CQC QuAM (Quantum Abstract Machine) state configuration.
Overview
This package provides access to calibrated quantum device configurations and state files. It includes:
- Pre-calibrated QuAM state files (JSON format)
- CLI tools for managing and loading state configurations
- Environment variable management for QuAM state paths
To quickly set the QUAM_STATE_PATH environment variable to the current calibrated state (after installing and activating the environment):
source load-cqc-quam
Note: The package version follows the format YYYY.MM.DD[.X] where YYYY.MM.DD indicates the date of the last calibration, and the optional .X is a sub-version for multiple releases on the same day.
Installation
Install the package using uv (recommended) or pip. Make sure to use the latest version to get the most recent calibration data:
Using uv (recommended)
uv venv
source .venv/bin/activate
uv pip install cqc-quam-state==2025.6.4.1
Using pip
pip install cqc-quam-state==2025.6.4.1
Installing the latest version
To install the most recent calibration data, check for the latest version:
# Find the latest version
pip index versions cqc-quam-state
# Install the latest version (e.g., if there are multiple releases today)
pip install cqc-quam-state==2025.6.4.3
Usage
Quick Start
The simplest way to use this package is to source the provided script, which sets the QUAM_STATE_PATH environment variable:
source load-cqc-quam
This will set QUAM_STATE_PATH to point to the current calibrated state files included in the package.
CLI Commands
The package also provides a cqc-quam-state CLI tool for more advanced usage:
Get Help
cqc-quam-state --help
Available Commands
info: Display information about the current stateload: Output the export command for settingQUAM_STATE_PATH(used by theload-cqc-quamscript)set: Set configuration values (placeholder for future functionality)
Examples
Display current state information:
cqc-quam-state info
Get the export command for the QuAM state path:
cqc-quam-state load
Set configuration values:
cqc-quam-state set
(In development, the idea is to set the IP address and port of the OPX and octave and the calibration db dynamically here)
State Files
The package includes pre-calibrated state files in the quam_state/ directory:
state.json: Main QuAM state configuration containing octave settings, RF outputs, and calibration parameterswiring.json: Wiring configuration for the quantum device setup
These files are automatically included when you install the package and can be accessed via the QUAM_STATE_PATH environment variable.
Version Information
The package uses a date-based versioning system with optional sub-versions:
Version Format: YYYY.MM.DD[.X]
YYYY.MM.DD: The calibration date ( generated fromdate +"%Y.%-m.%-d").X: Optional sub-version for multiple releases on the same day
Version Examples
2025.6.4: First release on June 4, 20252025.6.4.1: Second release on June 4, 2025 (updated calibration)2025.6.4.2: Third release on June 4, 20252025.6.5: First release on June 5, 2025
Troubleshooting
Environment Variable Not Set
If the QUAM_STATE_PATH environment variable is not set after sourcing the script:
- Ensure you're in the correct virtual environment
- Verify the package is installed:
pip show cqc-quam-state - Try running the load command directly:
cqc-quam-state load
Package Not Found
If you get import errors:
- Check if the package is installed:
pip list | grep cqc-quam-state - Ensure you're using the correct Python environment
- Try reinstalling:
pip install --force-reinstall cqc-quam-state
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cqc_quam_state-2025.8.14.tar.gz.
File metadata
- Download URL: cqc_quam_state-2025.8.14.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2889ce555acf0768f35326daee66ea5e99a320ef239ff4b8c33341d370b188bf
|
|
| MD5 |
0c4922660b84da2e33edc4a9b34c34c8
|
|
| BLAKE2b-256 |
6a50489ea30dfa98cedde45c9c35a2daab8d88217b5d548dc22ae07cc4fe23e7
|
File details
Details for the file cqc_quam_state-2025.8.14-py3-none-any.whl.
File metadata
- Download URL: cqc_quam_state-2025.8.14-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13c48491c7ee5ddf539e937813454d09750a9ff0e7a0fcb5247780f93ed15fa3
|
|
| MD5 |
5d25921ffd6c42231e56e37b564d01fd
|
|
| BLAKE2b-256 |
0b355bb4db9bafc01c32e8cd23eba3c45935008594df4abeae2b85b4cc88f4ec
|