With Amazon Braket, you can get started exploring quantum computing with the AWS Free Tier and the open-source Amazon Braket software development kit (SDK). Learn more about the AWS Free Tier with Amazon Braket below.
Beyond the AWS Free Tier, there are no upfront charges, and you only pay for the AWS resources you use. Amazon Braket provides access to quantum computers, quantum circuit simulators, fully managed execution of hybrid quantum-classical algorithms, and Jupyter notebook development environments.
You will be billed separately for use of each of these capabilities, as well as other AWS services that you use with Amazon Braket such as Amazon S3 for storing the results of quantum computations.
If you need expert help as you explore quantum computing, our Amazon Quantum Solutions Lab professional services team and our technology and consulting partners can help. You can request information here.
There are two pricing components when using a quantum computer, or quantum processing unit (QPU), on Amazon Braket: a per-shot fee and a per-task fee.
A shot is a single execution of a quantum algorithm on a QPU. For example, a shot is a single pass through each stage of a complete quantum circuit on a gate-based QPU from IonQ or Rigetti. When you use a D-Wave quantum annealer, a shot is when you obtain a result sample of a quantum annealing problem. The per-shot pricing depends on the type of QPU used. The per-shot price is not affected by the number or type of gates used in a quantum circuit or the number of variables used in a quantum annealing problem.
A task is a sequence of repeated shots based on the same circuit design or annealing problem. You define how many shots you want included in a task when you submit the task to Amazon Braket. Per-task pricing is the same across all QPUs.
With Amazon Braket, you have a choice of four quantum circuit simulators to run and test quantum algorithms, including the local simulator in the Amazon Braket SDK, and three fully managed simulators: SV1, DM1, and TN1. SV1 is a general purpose quantum circuit simulator, and DM1 enables you to simulate the effect of noise on your circuits, whereas TN1 specializes in larger scale simulations for certain types of quantum circuits. All fully managed simulators automatically scale AWS computing resources to deliver high-performance execution of your quantum algorithms.
The cost of using the Amazon Braket managed simulators is based on the duration of each simulation task. You are billed at a per-minute rate, in increments of one millisecond, for the time your simulation takes to run. When you use managed simulators, you are billed for a minimum of 3 seconds per simulation.
The local simulator in the Amazon Braket SDK is provided at no cost, and can run on your laptop, or within an Amazon Braket managed notebook. The local simulator is well suited for running small and medium-scale simulations up to 25 qubits without noise or up to 12 qubits with noise, depending on your hardware. You can use the local simulator for rapid prototyping, debugging or testing, before running your circuit on high-performance managed simulators and quantum computers.
The Amazon Braket SV1 simulator is a fully managed state vector simulator for quantum circuits. A state vector simulator takes the full wave function of the quantum state and applies the operations of the circuit to calculate the result. You can use SV1 to test your algorithm at scale by using the parallel processing feature of SV1 to run batches of simulations. SV1 supports simulations up to 34 qubits.
The Amazon Braket DM1 simulator is a fully managed simulator that uses density matrix calculations to simulate the effects of noise on quantum circuits. With DM1, you can specify realistic error models for your circuits and study the impact of noise on your algorithms. DM1 supports the simulation of circuits up to 17 qubits.
The Amazon Braket TN1 simulator is a fully managed tensor network simulator used for structured quantum circuits. A tensor network simulator encodes quantum circuits into a structured graph to find the best way to compute the outcome of the circuit. You can use TN1 to simulate certain types of quantum circuits up to 50 qubits in size.
Quantum Circuit Simulators
Amazon Braket Hybrid Jobs provides fully managed execution of hybrid quantum-classical algorithms, combining AWS classical compute resources based on Amazon EC2 (the 'job instance') with Amazon Braket quantum processing units (QPUs) or quantum circuit simulators. For variational algorithms, QPUs act as co-processors to classical computers, similar to how a GPU is used in training machine learning models. Such hybrid algorithms rely on rapid, iterative computations between classical computers and QPUs or simulators. With the Hybrid Jobs feature, Amazon Braket coordinates the necessary quantum and classical compute resources, executes your algorithm, and releases the resources once the job is completed so you only pay for what you use. The feature also helps your algorithms run quickly and predictably, through on-demand priority access to QPUs on Braket. When running hybrid jobs, you can use sample notebooks or write your algorithms using the SDK or PennyLane. You can also use your own custom software stack for your algorithm with a ‘bring-your-own-container’ capability.
There are two components to pricing for the Hybrid Jobs feature: charges for the use of classical resources, and charges for the use of quantum computers or quantum circuit simulators. First, for the use of job instances, you will be charged for the duration the job is running, based on the instance type you use. The Hybrid Jobs feature uses the ml.m5.xlarge instance as the default instance type, or you can choose a different instance type when creating a job. You also have the option to add extra data storage within the job instance at an additional cost. For pricing of these instances and supplementary instance storage, please refer to the "Job Instances" pricing table below. Second, you will be charged for the execution of quantum tasks that are created as part of your job and run on the quantum computers or circuit simulators of your choice. Pricing for these tasks is the same whether they are run as part of a hybrid job or not. Please refer to the “Quantum Computers” and “Simulators“ tabs to learn more about pricing for quantum tasks on the different devices.
Amazon Braket provides fully managed Jupyter notebooks so you can build your quantum algorithms, share code, test your algorithm, and visualize your results. When you create a notebook in Amazon Braket, it will be hosted and billed by Amazon SageMaker, the AWS machine learning service. With Amazon Braket managed notebooks, you can choose your preferred instance type to run each notebook and you will be billed per hour for usage, according to pricing for the selected instance type. For usage under one hour, cost is prorated based on the hourly price. The cost of using each notebook will be listed in the Amazon SageMaker portion of your bill.
For details on the pricing of different notebook instance types, refer to the Amazon SageMaker pricing page. Select the On-Demand Notebook Instance tab, select the relevant region, and refer to the instance type that you plan to use.
AWS Free Tier
Amazon Braket is part of AWS Free Tier. AWS Free Tier gives you one free hour of quantum circuit simulation time per month during the first twelve months of use. This applies to simulation time on SV1, DM1, TN1, or any combination of those three managed quantum circuit simulators, or use of simulators through the Hybrid Jobs feature. Standard rates for incremental usage apply after the free hour has been used. Use of other Amazon Braket resources such as managed notebooks, hybrid job instances, and quantum computers will incur costs.
Example 1: Managed simulator
Let’s say a developer uses the Amazon Braket SDK running in a local environment too design a quantum circuit to use 30 qubits, and then simulates the circuit using the Amazon Braket managed simulator SV1 ($0.075 per minute) in the AWS US East (N. Virginia) region. The simulation takes 4 minutes to run. The developer is running this simulation after using Amazon Braket for 10 months, with no other simulation usage so far that month.
This workload does not use a managed notebook, and the simulation time is covered by the AWS Free Tier, which provides one hour of included managed simulation time per month for the first twelve months of using Amazon Braket.
Total charges for first 12 months: $0.
If the developer runs the same simulation after using Amazon Braket for twelve months, standard SV1 pricing ($0.075 per minute) applies:
($0.075 / minute) x 4 minutes =$0.30
Total charges after first 12 months: $0.30
Example 2: Quantum annealer
A researcher runs a quantum annealing problem on the D-Wave Advantage quantum computer in the AWS US West (Oregon) Region. This task includes 2,000 result samples of the same annealing problem. The cost to run this task includes a per-task charge of $0.30, plus 2,000 shots at a per-shot price of $0.00019.
The cost to run this problem:
Task charges: 1 task x ($0.30 / task) = $0.30
Shots charges: 2,000 shots x ($0.00019 / shot) = $0.38
Total charges: $0.68
Example 3: Gate-based QPU
A scientist runs a quantum algorithm on the Rigetti Aspen-11 quantum computer in the AWS US West (N. California) Region. This task includes 10,000 repeated shots of the same circuit design. The cost to run this task includes a per-task charge of $0.30, plus 10,000 shots at a per-shot price of $0.00035.
The cost to run this algorithm:
Task charges: 1 task x $0.30 / task = $0.30
Shots charges: 10,000 shots x $0.00035 / shot = $3.50
Total charges: $3.80
Example 4: Hybrid job with managed simulator
A researcher designs a hybrid quantum-classical algorithm and runs it using the Amazon Braket Hybrid Jobs feature and the SV1 simulator ($0.075 per minute) in the AWS US East (N. Virginia) Region. The hybrid job is set up to run for 30 iterations each with 10 tasks. Each task takes 5 seconds to run on the simulator and the total duration of the job is 1500 seconds. The researcher uses an ml.m5.xlarge job instance ($0.23 per hour) for classical compute.
The cost to run this job:
SV1 simulator charges, if the researcher has exceeded the AWS Free Tier: ($0.075 / minute) x (1500/60 minutes) = $1.875
ml.m5.xlarge job instance usage charges: ($0.23 / 60 minutes) x (1500/60 minutes) = $0.096
Total charges: $1.97
Example 5: Hybrid job with a QPU
A scientist runs a quantum machine learning algorithm on the Rigetti quantum computer using Amazon Braket Hybrid Jobs in the AWS US West (N. California) Region. This job includes 50 iterations, each with 2 tasks that have 100 shots. The cost to run this job includes a per-task charge of $0.30, plus each run of the 100 shots at a per-shot price of $0.00035, for each iteration. The scientist also uses an ml.p3.8xlarge job instance ($14.688 per hour) for the entire duration of the job, which lasts 26 minutes.
The cost to run this job:
Task charges: 50 iterations x 2 tasks x $0.30 / task = $30.00
Shots charges: 50 iterations x 2 tasks x 100 shots x $0.00035 / shot = $3.50
ml.p3.8xlarge usage charges: ($14.688 / 60 minutes) x 26 minutes = $6.36
Total charges: $39.86