Skip to content

AWS

The AWS backend class allows you to access the accelerated simulators available in Amazon Braket, the quantum computing service available in AWS. It supports selecting specific simulation backends such as a state vector simulator or a density matrix simulator. For more information, please refer to the Amazon Braket docs.

This backend only gives access to simulators

This integration supports simulated access. To access the real QPU hardware available through Amazon Braket, please refer to the hardware backends: Rigetti, IonQ, and IQM

Using Environment Variables

You can set your AWS credentials via environment variables to avoid passing them during initialization:

export LUNA_AWS_ACCESS_KEY=your_aws_access_key
export LUNA_AWS_SECRET_ACCESS_KEY=your_aws_secret_access_key

Running on AWS

This backend runs on AWS.

Initialization

Python
from luna_quantum.solve.parameters.backends.aws.aws import AWS

backend = AWS(
    aws_access_key=None,
    aws_secret_access_key=None,
    aws_session_token=None,
    device='SV1'
)

Usage

Python
from luna_quantum.backends import AWS

backend = AWS()