Skip to main content

Amazon Braket Simulator Version 2 (experimental)

⚠️ DEPRECATED — This package is no longer supported. No further releases, bug fixes, or security updates will be made. Existing installations will continue to function but are not maintained. Please migrate to an actively maintained local simulator from the Amazon Braket SDK (e.g. the default LocalSimulator backends).

Latest Version Supported Python Versions Build status Documentation Status

This Amazon Braket Simulator is an experimental second generation of our Python open source library that provides an implementation of a quantum simulators that you can run locally. You can use the simulator to test quantum tasks that you construct for the Amazon Braket SDK before you submit them to the Amazon Braket service for execution.

Setting up this Amazon Braket Simulator

You must have the Amazon Braket SDK installed to use the local simulator. Follow the instructions in the README for setup.

Usage

Importing this package for the first time will install additional libraries and precompile the Julia modules, which may take a few additional minutes. This will not be needed for subsequent runs.

The quantum simulator implementations StateVectorSimulatorV2 and DensityMatrixSimulatorV2 plug into the LocalSimulator interface in Amazon Braket SDK, with the backend parameters as "braket_sv_v2" and "braket_dm_v2", respectively.

Executing a circuit using the simulator:

from braket.circuits import Circuit
from braket.devices import LocalSimulator

device = LocalSimulator("braket_sv_v2")

bell = Circuit().h(0).cnot(0, 1)
print(device.run(bell, shots=100).result().measurement_counts)

Documentation

Detailed documentation, including the API reference, can be found on Read the Docs

To generate the API Reference HTML in your local environment

First, install tox:

pip install tox

To generate the HTML, first change directories (cd) to position the cursor in the amazon-braket-simulator-v2-python directory. Then, run the following command to generate the HTML documentation files:

tox -e docs

To view the generated documentation, open the following file in a browser: ../amazon-braket-simulator-v2-python/build/documentation/html/index.html

Testing

If you want to contribute to the project, be sure to run unit tests and get a successful result before you submit a pull request. To run the unit tests, first install the test dependencies using the following command:

pip install -e ".[test]"

To run the unit tests:

tox -e unit-tests

You can also pass in various pytest arguments to run selected tests:

tox -e unit-tests -- your-arguments

For more information, please see pytest usage.

To run linters and doc generators and unit tests:

tox

Security

See CONTRIBUTING for more information.

License

This project is licensed under the Apache-2.0 License.

Metadata

Release files for amazon-braket-simulator-v2 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amazon-braket-simulator-v2 0.4.1
File Size Uploaded
amazon_braket_simulator_v2-0.4.1.tar.gz 19.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for amazon-braket-simulator-v2 0.4.1
File Interpreter ABI Platform
amazon_braket_simulator_v2-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 39.4 kB

Release files / amazon_braket_simulator_v2-0.4.1.tar.gz

Download URL amazon_braket_simulator_v2-0.4.1.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
30e8f38bcc74aa840b9bf3b9742499653981555449da85618a18c294299a9c7a
BLAKE2b-256 checksum
How to use checksums
c227149846646644e5d6732a2c6bd20392b58a3fa8b6e879ae37641eb0c7a2c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 26, 2026.

Transparency log

Release files / amazon_braket_simulator_v2-0.4.1-py3-none-any.whl

Download URL amazon_braket_simulator_v2-0.4.1-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93018fb4b9a3b6cd09ac96fe9446a2e549e5283dd110c0904ee3a86b88f185d3
BLAKE2b-256 checksum
How to use checksums
fbac5f0617691f81f6fdc892a97edcd715fe6e7fd8ad506b11fa3adafb6ab471
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page