amazon-braket-schemas
An open source library that contains the schemas for Amazon Braket
What it is and what it does
Amazon Braket Python Schemas is a library that defines and manages the data structures used by Amazon Braket for quantum computing. It provides pydantic-based schemas for quantum task intermediate representations (such as OpenQASM programs), S3 result payloads, and device capability descriptions. The library handles serialization to JSON and deserialization back into Python objects, establishing a contract between the Braket SDK and the Braket API.
The package is designed to be used either standalone for schema validation and data transformation, or as a dependency of the broader Amazon Braket SDK. It supports OpenQASM 3.0 programs and other quantum task formats, allowing developers to construct, validate, and exchange quantum program definitions programmatically.
Use it for:
- Serialize quantum programs written in OpenQASM to JSON payloads for submission to Amazon Braket.
- Deserialize and validate quantum task results returned from S3 after execution on quantum devices.
- Validate device capability descriptions to determine supported gates and parameters before submitting tasks.
- Build custom quantum program representations that conform to Braket's intermediate representation contract.
- Integrate quantum program definitions into CI/CD pipelines with schema-based validation.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides serialization, deserialization, and schema definitions for Amazon Braket quantum tasks, results, and device capabilities using pydantic-based intermediate representations.
Yes, if you are working with Amazon Braket quantum tasks or need to serialize/deserialize quantum program schemas. The package is actively maintained, has no known vulnerabilities, minimal dependencies, and supports current Python versions. It is permissively licensed and well-suited for both standalone schema validation and as a dependency of larger Braket workflows.
Install
amazon-braket-schemas on PyPI
pip
pip install amazon-braket-schemasuv
uv add amazon-braket-schemaspoetry
poetry add amazon-braket-schemasInstalling amazon-braket-schemas
Before you install
Low installation friction with a single runtime dependency (pydantic). Actively maintained with a release 15 days ago; repository is not archived and supports current Python versions (3.11, 3.12, 3.13).
License in practice
Licensed under Apache License 2.0 (permissive), allowing commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install amazon-braket-schemas
from braket.ir.openqasm import Program as OpenQASMProgram
program = OpenQASMProgram(source="OPENQASM 3.0; cnot $0, $1;")
print(program.json(indent=2))
Requires Python 3.11 or later.
Verify before relying
- Whether the package is typically installed standalone or primarily as a transitive dependency of amazon-braket-sdk-python.
- Performance characteristics when serializing/deserializing large quantum programs or device capability payloads.
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — pydantic |
| Maintenance | actively maintained — 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 116,325/month — #12,211 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: amazon_braket_schemas-1.32.1-py3-none-any.whl
Keywords: Amazon, AWS, Quantum
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
amazon-braket-default-simulatorProvides a local quantum circuit simulator for…
permissive · top 15,000 on PyPI
amazon-braket-sdkProvides a Python framework to design,…
permissive · top 15,000 on PyPI
ibm-quantum-schemasProvides Pydantic models that define the…
permissive · top 15,000 on PyPI
openqasm3Provides a reference abstract syntax tree (AST)…
permissive · top 15,000 on PyPI
py-avro-schemaGenerates Apache Avro schemas from Python…
permissive · top 15,000 on PyPI
qiskit-terraQiskit Terra provides the core SDK for building…
permissive · top 15,000 on PyPI
hugrhugr provides a pure-Python implementation of…
permissive · top 15,000 on PyPI
qiskitQiskit is an open-source SDK for building and…
permissive · top 5,000 on PyPI
amazon-ionParses and serializes Amazon Ion, a…
permissive · top 5,000 on PyPI
sagemaker-schema-inference-artifactsProvides pre-built schema inference artifacts…
permissive · top 5,000 on PyPI