A project to define standards for analysis functions of experimental data in the MetSuperQ project.
Project description
MetSuperQ
Quantum measurement analysis with integrated InfluxDB time-series storage.
Features
- Quantum Measurement Analysis: T1, T2 echo, and T2 Ramsey measurement analysis
- InfluxDB Integration: Modern time-series database storage
- User-Friendly API: Simple interface for users to record measurements
- Comprehensive Validation: Pydantic-based data validation at all boundaries
- Performance Monitoring: Built-in logging and performance tracking
Quick Start
Prerequisites
- Python 3.12+
- InfluxDB v2.x (optional)
Installation
For users (install from PyPI or source):
# From PyPI (when published)
pip install metsuperq
# Or from source
git clone https://code.orangeqs.com/opensource/metsuperq.git
For developers (using uv):
# Install uv if not already installed
curl -LsSf https://astral.sh/uv/install.sh | sh
# Clone and install in development mode
git clone https://code.orangeqs.com/opensource/metsuperq.git
cd metsuperq
uv sync # Installs all dev dependencies
See Installation Guide for detailed setup.
Basic Usage
from metsuperq.analysis import BaseAnalyzer
from metsuperq.integrations import record_measurement
# Run analysis
analyzer = BaseAnalyzer()
result = analyzer.run_full_analysis("20241008-143022-123-abcdef")
# Record to database
record_measurement(
analysis_result=result,
experiment_id="experiment_1",
device_name="device_1",
qubit_name="Q1",
)
Development
This project uses uv for fast, reproducible dependency management.
# Install dependencies and set up environment
uv sync
# Run pre-commit hooks
uv run pre-commit install
uv run pre-commit run --all-files
# Run tests
uv run pytest
# Run type checking
uv run pyright
See Contributing Guide for details.
Documentation
Contributing
Fork, create a feature branch, add tests, and submit a PR. See Contributing Guide.
License
BSD 3-Clause License. See LICENSE for details.
Support
- Documentation: Project Docs
- Issues and Discussions: GitLab Issues
- Merge Requests: GitLab Merge Requests
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 metsuperq-0.1.0.tar.gz.
File metadata
- Download URL: metsuperq-0.1.0.tar.gz
- Upload date:
- Size: 45.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
983e35e294f24a2e1ba9dfa8974b0ebfc2eacf6f74423c404f0e4e8ebe02bd99
|
|
| MD5 |
4cc708ba153ec7d38a4f0c779f0b1608
|
|
| BLAKE2b-256 |
80f610c0081ccb3fa2eb6e663cb3063a7274d0a8d28d08771535b0eef81ea399
|
File details
Details for the file metsuperq-0.1.0-py3-none-any.whl.
File metadata
- Download URL: metsuperq-0.1.0-py3-none-any.whl
- Upload date:
- Size: 50.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c0a587cebc79549e800c2bdb16bc9824e9b1ae01f4e7e18c5d22a76ea09e087
|
|
| MD5 |
5486827d1385035c0c061d6576e4837e
|
|
| BLAKE2b-256 |
53fcd114df34b97471e6f7b69997c7493ce814d5f3a50d9b89c47be4abc86f06
|