--- id: amazon-braket-schemas version: "1.32.1" license: Apache License 2.0 license_treatment: permissive maintenance: active --- # amazon-braket-schemas — An open source library that contains the schemas for Amazon Braket License: permissive · Maintenance: active · Downloads: 116.3K/mo ## 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 above — 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 pip install amazon-braket-schemas uv add amazon-braket-schemas 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_current - Install friction: low - Maintenance: active - Downloads: 116.3K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags quantum task serialization, braket schema validation, openqasm ir parsing, quantum program schemas, braket payload serialization, quantum device capabilities, braket intermediate representation, quantum-computing, schema-validation, aws-braket [View on SkillFed](https://skillfed.io/packages/amazon-braket-schemas) · [View on PyPI](https://pypi.org/project/amazon-braket-schemas/)