Feedback Data Latency model for PQSC, SHF- and HDAWG systems.
Actively maintained. Last release 5 weeks ago. A safe choice.
$
pip install zhinst-timing-modelsFeedback Latency Model Parameters
Feedback Data Latency model for PQSC, SHF- and HDAWG systems.
Table of Contents
Installation
pip install zhinst-timing-models
Usage
from zhinst.timing_models import (
PQSCMode,
QAType,
QCCSFeedbackModel,
SGType,
TriggerSource,
get_feedback_system_description,
)
model = QCCSFeedbackModel(
description=get_feedback_system_description(
generator_type=SGType.HDAWG,
analyzer_type=QAType.SHFQA,
pqsc_mode=PQSCMode.DECODER,
trigger_source=TriggerSource.ZSYNC,
)
)
awg_clock_cycles = model.get_latency(...)
Development
This project uses uv for dependency management. The uv.lock file pins the exact versions of all (direct and transitive) dependencies.
# Install the project with dev dependencies (test + lint)
uv sync --group dev
# Run the test suite
uv run pytest tests
# Run the linters
uv run ruff check .
uv run black --check --diff .
uv run mypy --ignore-missing-imports --explicit-package-bases -p zhinst.timing_models
# Build the wheel/sdist
uv build
To update the lock file after changing dependencies in pyproject.toml:
uv lock
License
zhinst-timing-models is distributed under the terms of the MIT license.