Skip to content

How can I limit users in Braket to running QCs only during reservations?

0

I would like to restrict users from accessing Braket and running jobs on their own, except during AWS Braket Reservations. This would ensure that only within the specified time block, i.e. 1 hour, would they be able to run the quantum computers.

I read through the general setup for Braket, but am currently worried that using blanket policies like the ones for Braket would grant users too much access to run their jobs whenever they want without being limited through Reservations.

  1. Is it possible to have a Braket Reservations only runnable setup?
  2. What permissions and policies would I need to set to configure such a setup?
  3. Will the price of reservations be the same as per shot?
  4. Also, given that Reservations is for QCs, is there also a way to limit simulator usage?
2 Answers
0

Hi J, Currently, there is no built-in management tool that automatically limits execution under reservations. However, you can add an IAM policy with time-based and device-based constraint to allow users to call braket:CreateQuantumTask (the API call behind device.run) on a specific device only during the reservation time windows. Below is an example policy that allows that a role/user to create a task against SV1 in a period of time in 2026:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": "braket:CreateQuantumTask",
            "Resource": "arn:aws:braket:*:*:device/quantum-simulator/amazon/sv1",
            "Condition": {
                "StringEquals": {
                    "aws:PrincipalAccount": "012345678901"
                },
                "DateGreaterThan": {
                    "aws:CurrentTime": "2026-04-01T00:00:00Z"
                },
                "DateLessThan": {
                    "aws:CurrentTime": "2026-06-30T23:59:59Z"
                }
            }
        }
    ]
}

In a reservation, the cost of dedicated device access is based on the duration of your reservation, regardless of how many quantum tasks and shots you run.

answered a year ago

0

Hello J,

Greetings from AWS !

Thank you for reaching out to us. Allow me to answer your queries one-by-one.

▶️ Q: Is it possible to have a Braket Reservations only runnable setup? What permissions and policies would I need to set?

Answer: There is no direct condition which can check reservation status, but you can use "aws:CurrentTime" condition key to restrict access during reservation period. You need to hardcode the reservation period in the IAM policy. Here is an example policy (replace date with reservation end date):

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyBraketOutsideScheduledHours",
      "Effect": "Deny",
      "Action": [
        "braket:CreateQuantumTask"
      ],
      "Resource": "*",
      "Condition": {
        "DateGreaterThan": {
          "aws:CurrentTime": [
            "2026-12-31T23:59:59Z"
          ]
        }
      }
    },
    {
      "Sid": "AllowBraketReadOnlyAccess",
      "Effect": "Allow",
      "Action": [
        "braket:GetDevice",
        "braket:SearchDevices",
        "braket:ListTagsForResource",
        "braket:GetQuantumTask",
        "braket:SearchQuantumTasks"
      ],
      "Resource": "*"
    }
  ]
}

▶️Q: Will the price of reservations be the same as per shot?

Answer: No, the pricing model for AWS Braket Reservations differs from the on-demand per-shot pricing:

  • Reservations are priced at an hourly rate for exclusive access to the quantum computer
  • You pay for the entire reservation period regardless of how many shots you run
  • This can be more cost-effective if you plan to run many shots during the reservation period
  • The per-hour cost varies by quantum processor type

▶️Q: Also, given that Reservations is for QCs, is there also a way to limit simulator usage?

Answer: Yes, you can limit simulator usage in AWS Braket through AWS Service Quotas. AWS Service Quotas allows you to manage quotas for both quantum hardware and simulator tasks. Please refer to the quota document for more information.

I hope the information is helpful to you.

AWS
SUPPORT ENGINEER

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.