- Welcome to the 10 Minute Tutorial for Research.
My name is Alistair McLean.
I am a Principal Solutions Architect here at AWS
and today we're going to talk
about Quantum on AWS Cost Estimation.
The agenda for today will cover the four following topics.
First of all, estimating the cost of quantum computers,
estimating the cost of simulators,
estimating the cost of hybrid jobs,
and estimating the cost of notebook and storage costs.
So to estimate the cost of quantum computers,
we have to be familiar with the task
and shot model that Amazon Braket uses.
For example, users will submit tasks.
Tasks are comprised of many shots.
Each quantum computer has a different cost for shots
and a per-task price of 30 cents.
For example, if you wanted to submit a single task
with 10,000 shots to the D-Wave Advantage
quantum computer, the example on the right of your screen
takes you through the calculations involved.
So we would want to submit a single task,
and that task is gonna be comprised
of multiple shots, in this case, 10,000 shots.
So we calculate it by the 30 cents upfront
per-task cost and the $0.00019 per-task cost times 10,000
'cause we're going to call 10,000 shots.
That gives us a total cost of $2.20.
Please note that this cost model for quantum computers
is solely based on the number of tasks
and the number of shots each task contains.
The next topic is the cost of simulators.
Note that this is a very different cost model
to the quantum computer cost model that we just covered.
In this case, we're charged a per-minute rate,
depending on which simulator we want to use.
In users in this case submit tasks to the simulators,
and depending on how long those tasks take to run
determines the price of the final, the total cost.
For example, if we were to use our state vector
simulator SV1 and the task took, say,
in total 30 minutes a month to run
and we ran that for an entire year,
actually we would not escape the free tier
in this case and there would be a $0 total cost.
The free tier for simulators is one hour per month
for the first 12 months of Amazon Braket usage.
After that, you will be charged a per-minute rate,
which is billed to the nearest millisecond of usage
and the minimum is a three second usage time slot.
You can see here in the table
the different simulators have per-minute rates,
but they're all covered under that 60 minutes per month
for the first year.
The next topic that we're going to cater for
is the cost of hybrid jobs.
Hybrid jobs consist of using classical component
and a quantum component.
What happens here is, is that you are charged
both for the usage of the classical instance
that runs part of your hybrid algorithm,
the number of iterations that you wish to run that for,
and then you get into the task shop model familiar to you
from the quantum computing section.
The entire duration of the job is also taken into account
and the main charge there is going to be
the classical EC2 instance.
So for example, if we have a task that is going to run
for 50 iterations, sorry, if a hybrid job is going to run
for 50 iterations comprised of two tasks
and each one of those tasks has 100 shots,
you can see in the example on the right of your screen
that our task charges are going to amount to $30.
That's a fixed charge.
The shot charges are going to be $3.50
because we're running 100 shots per task,
two tasks, 50 iterations.
And then of course the classical compute
in this instance is MLP3 8X-large
and that's going to cost $14.68 per hour to run.
We're going to run it in this case for 26 minutes,
so therefore the cost of the classical section is $6.36
per total of $39.86
in order to run this hybrid job,
that takes 26 minutes to run,
again, comprised of 50 iteration,
two tasks and 100 shots per task.
And in this case,
we're using the Rigetti Aspen 11 quantum computer.
Finally, the other main component of Amazon Braket
is notebook and storage costs.
Storage is primarily used, primarily uses S3
to store the results from quantum computers
and the design of algorithms and basic data science
is all conducted in a notebook.
In this case, the notebook instance we're going to use
is an MLC5 X-large.
Results storage, we're going to give
a conservative one gigabyte per month,
and a notebook duration per month,
let's say it's going to be eight hours
of using that notebook.
So in this case, what we have is storage charges
of 2.3 cents for the month because that's the cost
of a gigabyte and S3 standard,
and a utilization of eight hours
of the MLC5 X-large notebook,
which comes to a total $1.63.2 cents
for a total charge, $1.60.
That's how to estimate the cost
of your notebook and storage usage.
Obviously, if you use different types of notebook instance,
that cost will alter accordingly,
and if you use more often or more instances of that,
that will also multiply up accordingly.
Thank you so much for listening
to Cost Estimation on Amazon Braket today.
Hope you enjoy the rest of the video series.
My name's Alistair McLean.