Registry / serialization / ibm-quantum-schemas

ibm-quantum-schemas

JSON →
library0.7.20260419pypypiunverified

Pydantic models for IBM Quantum service programs (estimator, sampler, executor, noise-learner). Current version: 0.7.20260419. Released weekly. Requires Python >=3.10.

pip install ibm-quantum-schemas
INSTALL
IMPORT
SIG · IBM-QUANTUM-SCHEMA
I
ibm-quantum-schemas
serializationpythonv0.7.20260419
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EstimatorResult
from ibm_quantum_schemas import EstimatorResult
from ibm_quantum_schemas.estimator.version_0_1 import EstimatorResult

Create an EstimatorResult model instance and serialize it.

from ibm_quantum_schemas.estimator.version_0_1 import EstimatorResult result = EstimatorResult( metadata=[{"example": "data"}], values=[0.5], precision=[0.01] ) print(result.model_dump())
Debug
Known issues
breakingIn version 0.5.20260320, the public interface changed: all imports must now use the pattern `ibm_quantum_schemas.<program>.version_<x_y>.SomeModel`. Old direct imports from `ibm_quantum_schemas` will break.
fix
Update imports to include program and version submodule, e.g., `from ibm_quantum_schemas.estimator.version_0_1 import EstimatorResult`.
affects: <0.5.20260320
deprecatedThe `executor` model version `0.1_dev` removed in favor of `0.2`. The `noise-learner-v3` model versions `0.2_dev` also removed. Avoid using `_dev` versions.
fix
Use stable versions like `0.1` or `0.2` without `_dev` suffix.
affects: >=0.2.20260209
breakingModels for `noise-learner` changed from `noise-learner-v3` to `noise-learner` in version 0.6.20260414. Old import paths will break.
fix
Use `from ibm_quantum_schemas.noise_learner.version_0_1 import ...` instead of `noise_learner_v3`.
affects: <0.6.20260414
gotchaThe package requires Python >=3.10. Users on Python 3.9 or earlier will get import errors.
fix
Upgrade Python to 3.10 or later.
affects: all
Upgrade
Version history
0.7.20260419latest on PyPI · released Apr 20, 2026
Audit
Dependencies
pydanticrequiredAll models are Pydantic models
numpyoptionalUsed for numerical types in some model fields
Agent activity
10 hits · last 30 days
node
10
Resources
ibm-quantum-schemas — pip install ibm-quantum-schemas · libregistry