skillfed

amazon-braket-schemas

An open source library that contains the schemas for Amazon Braket

amazon-braket-schemas v1.32.1 116.3K downloads/30d#12,211 on PyPI58
Permissive license Apache License 2.0 Active released

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-schemas

uv

uv add amazon-braket-schemas

poetry

poetry add amazon-braket-schemas

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

Tags

quantum task serializationbraket schema validationopenqasm ir parsingquantum program schemasbraket payload serializationquantum device capabilitiesbraket intermediate representation
quantum-computingschema-validationaws-braket

More Scientific/Engineering packages