معرفی شرکت ها


amazon-braket-schemas-1.9.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

An open source library that contains the schemas for Amazon Braket
ویژگی مقدار
سیستم عامل -
نام فایل amazon-braket-schemas-1.9.0
نام amazon-braket-schemas
نسخه کتابخانه 1.9.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Amazon Web Services
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/aws/amazon-braket-schemas-python
آدرس اینترنتی https://pypi.org/project/amazon-braket-schemas/
مجوز Apache License 2.0
# Amazon Braket Python Schemas [![Latest Version](https://img.shields.io/pypi/v/amazon-braket-schemas.svg)](https://pypi.python.org/pypi/amazon-braket-schemas) [![Supported Python Versions](https://img.shields.io/pypi/pyversions/amazon-braket-schemas.svg)](https://pypi.python.org/pypi/amazon-braket-schemas) [![Build status](https://github.com/aws/amazon-braket-schemas-python/actions/workflows/python-package.yml/badge.svg)](https://github.com/aws/amazon-braket-schemas-python/actions/workflows/python-package.yml) [![codecov](https://codecov.io/gh/aws/amazon-braket-schemas-python/branch/main/graph/badge.svg?token=XV9R0dUbr1)](https://codecov.io/gh/aws/amazon-braket-schemas-python) [![Documentation Status](https://img.shields.io/readthedocs/amazon-braket-schemas-python.svg?logo=read-the-docs)](https://amazon-braket-schemas-python.readthedocs.io/en/latest/?badge=latest) [![Code Style: Black](https://img.shields.io/badge/code_style-black-000000.svg)](https://github.com/psf/black) Amazon Braket Python Schemas is an open source library that contains the schemas for Braket, including: * intermediate representations (IR) for Amazon Braket quantum tasks and offers serialization and deserialization of those IR payloads. Think of the IR as the contract between the Amazon Braket SDK and Amazon Braket API for quantum programs. * schemas for the S3 results of each quantum task * schemas for the device capabilities of each device ## Installation ### Prerequisites - Python 3.7+ ### Steps The preferred way to get Amazon Braket Python Schemas is by installing the [Amazon Braket Python SDK](https://github.com/aws/amazon-braket-sdk-python), which will pull in the schemas. Follow the instructions in the [README](https://github.com/aws/amazon-braket-sdk-python/blob/main/README.md) for setup. However, if you only want to use the schemas, it can be installed on its own as follows: ```shell pip install amazon-braket-schemas ``` You can install from source by cloning this repository and running a pip install command in the root directory of the repository: ```shell git clone https://github.com/aws/amazon-braket-schemas-python.git cd amazon-braket-schemas-python pip install . ``` You can check your currently installed version of `amazon-braket-schemas` with `pip show`: ```shell pip show amazon-braket-schemas ``` or alternatively from within Python: ``` >>> import braket._schemas as braket_schemas >>> braket_schemas.__version__ ``` ## Usage OpenQASM (Open Quantum Assembly Language) is one type of IR. See below for its usage. **Serializing python structures** ```python from braket.ir.openqasm import Program as OpenQASMProgram program = OpenQASMProgram(source="OPENQASM 3.0; cnot $0, $1;") print(program.json(indent=2)) """ { "braketSchemaHeader": { "name": "braket.ir.openqasm.program", "version": "1" }, "source": "OPENQASM 3.0; cnot $0, $1;", "inputs": null } """ ``` **Deserializing into python structures** ```python from braket.ir.openqasm import Program as OpenQASMProgram openqasm_string = """ { "braketSchemaHeader": { "name": "braket.ir.openqasm.program", "version": "1" }, "source": "OPENQASM 3.0; cnot $0, $1;" }""" program = OpenQASMProgram.parse_raw(openqasm_string) print(program) """ braketSchemaHeader=BraketSchemaHeader(name='braket.ir.openqasm.program', version='1') source='OPENQASM 3.0; cnot $0, $1;' inputs=None """ ``` ## Documentation Detailed documentation, including the API reference, can be found on [Read the Docs](https://amazon-braket-schemas-python.readthedocs.io/en/latest/). You can also generate the docs from source. First, install tox: ```shell pip install tox ``` To build the Sphinx docs, run the following command in the root repo directory: ```shell tox -e docs ``` You can then find the generated HTML files in `build/documentation/html`. ## Testing Make sure to install test dependencies first: ```shell pip install -e "amazon-braket-schemas-python[test]" ``` To run the unit tests: ```bash tox -e unit-tests ``` You can also pass in various pytest arguments to run selected tests: ```bash tox -e unit-tests -- your-arguments ``` To run linters and doc generators and unit tests: ```bash tox ``` For more information, please see [pytest usage](https://docs.pytest.org/en/stable/usage.html). ## License This project is licensed under the Apache-2.0 License.


نیازمندی

مقدار نام
<2.0.0,>=1.8.2 pydantic
- black
- flake8
- isort
==3.2.0 jsonschema
- numpy
- pre-commit
- pylint
- pytest
- pytest-cov
- pytest-rerunfailures
- pytest-xdist
<3.0.0 sphinx
- sphinx-rtd-theme
- sphinxcontrib-apidoc
- tox


زبان مورد نیاز

مقدار نام
>= 3.7 Python


نحوه نصب


نصب پکیج whl amazon-braket-schemas-1.9.0:

    pip install amazon-braket-schemas-1.9.0.whl


نصب پکیج tar.gz amazon-braket-schemas-1.9.0:

    pip install amazon-braket-schemas-1.9.0.tar.gz