• 沒有找到結果。

Amazon Braket

N/A
N/A
Protected

Academic year: 2022

Share "Amazon Braket"

Copied!
74
0
0

加載中.... (立即查看全文)

全文

(1)

Amazon Braket

API Reference

API Version 2019-09-01

(2)

Amazon Braket: API Reference

Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.

Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.

(3)

Table of Contents

Welcome ... 1

Actions ... 2

CancelJob ... 3

Request Syntax ... 3

URI Request Parameters ... 3

Request Body ... 3

Response Syntax ... 3

Response Elements ... 3

Errors ... 4

See Also ... 4

CancelQuantumTask ... 5

Request Syntax ... 5

URI Request Parameters ... 5

Request Body ... 5

Response Syntax ... 5

Response Elements ... 5

Errors ... 6

See Also ... 6

CreateJob ... 8

Request Syntax ... 8

URI Request Parameters ... 9

Request Body ... 9

Response Syntax ... 10

Response Elements ... 11

Errors ... 11

See Also ... 12

CreateQuantumTask ... 13

Request Syntax ... 13

URI Request Parameters ... 13

Request Body ... 13

Response Syntax ... 14

Response Elements ... 15

Errors ... 15

See Also ... 16

GetDevice ... 17

Request Syntax ... 17

URI Request Parameters ... 17

Request Body ... 17

Response Syntax ... 17

Response Elements ... 17

Errors ... 18

Examples ... 19

See Also ... 20

GetJob ... 21

Request Syntax ... 21

URI Request Parameters ... 21

Request Body ... 21

Response Syntax ... 21

Response Elements ... 22

Errors ... 24

See Also ... 25

GetQuantumTask ... 26

Request Syntax ... 26

URI Request Parameters ... 26

(4)

Request Body ... 26

Response Syntax ... 26

Response Elements ... 26

Errors ... 28

See Also ... 28

ListTagsForResource ... 29

Request Syntax ... 29

URI Request Parameters ... 29

Request Body ... 29

Response Syntax ... 29

Response Elements ... 29

Errors ... 29

See Also ... 30

SearchDevices ... 31

Request Syntax ... 31

URI Request Parameters ... 31

Request Body ... 31

Response Syntax ... 32

Response Elements ... 32

Errors ... 32

See Also ... 33

SearchJobs ... 34

Request Syntax ... 34

URI Request Parameters ... 34

Request Body ... 34

Response Syntax ... 35

Response Elements ... 35

Errors ... 35

See Also ... 36

SearchQuantumTasks ... 37

Request Syntax ... 37

URI Request Parameters ... 37

Request Body ... 37

Response Syntax ... 38

Response Elements ... 38

Errors ... 38

See Also ... 39

TagResource ... 40

Request Syntax ... 40

URI Request Parameters ... 40

Request Body ... 40

Response Syntax ... 40

Response Elements ... 40

Errors ... 40

See Also ... 41

UntagResource ... 42

Request Syntax ... 42

URI Request Parameters ... 42

Request Body ... 42

Response Syntax ... 42

Response Elements ... 42

Errors ... 42

See Also ... 43

Data Types ... 44

AlgorithmSpecification ... 45

Contents ... 45

See Also ... 45

(5)

ContainerImage ... 46

Contents ... 46

See Also ... 46

DataSource ... 47

Contents ... 47

See Also ... 47

DeviceConfig ... 48

Contents ... 48

See Also ... 48

DeviceSummary ... 49

Contents ... 49

See Also ... 49

InputFileConfig ... 51

Contents ... 51

See Also ... 51

InstanceConfig ... 52

Contents ... 52

See Also ... 52

JobCheckpointConfig ... 53

Contents ... 53

See Also ... 53

JobEventDetails ... 54

Contents ... 54

See Also ... 54

JobOutputDataConfig ... 55

Contents ... 55

See Also ... 55

JobStoppingCondition ... 56

Contents ... 56

See Also ... 56

JobSummary ... 57

Contents ... 57

See Also ... 58

QuantumTaskSummary ... 59

Contents ... 59

See Also ... 60

S3DataSource ... 61

Contents ... 61

See Also ... 61

ScriptModeConfig ... 62

Contents ... 62

See Also ... 62

SearchDevicesFilter ... 63

Contents ... 63

See Also ... 63

SearchJobsFilter ... 64

Contents ... 64

See Also ... 64

SearchQuantumTasksFilter ... 65

Contents ... 65

See Also ... 65

Common Parameters ... 66

Common Errors ... 68

(6)

Welcome

The Amazon Braket API Reference provides information about the operations and structures supported in Amazon Braket.

Additional Resources:

• Amazon Braket Developer Guide

This document was last published on March 7, 2022.

(7)

Actions

The following actions are supported:

• CancelJob (p. 3)

• CancelQuantumTask (p. 5)

• CreateJob (p. 8)

• CreateQuantumTask (p. 13)

• GetDevice (p. 17)

• GetJob (p. 21)

• GetQuantumTask (p. 26)

• ListTagsForResource (p. 29)

• SearchDevices (p. 31)

• SearchJobs (p. 34)

• SearchQuantumTasks (p. 37)

• TagResource (p. 40)

• UntagResource (p. 42)

(8)

CancelJob

CancelJob

Cancels an Amazon Braket job.

Request Syntax

PUT /job/jobArn/cancel HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

jobArn (p. 3)

The ARN of the Amazon Braket job to cancel.

Pattern: ^arn:aws[a-z\-]*:braket:[a-z0-9\-]*:[0-9]{12}:job/.*$

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"cancellationStatus": "string", "jobArn": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

cancellationStatus (p. 3)

The status of the job cancellation request.

Type: String

Valid Values: CANCELLING | CANCELLED jobArn (p. 3)

The ARN of the Amazon Braket job.

Type: String

(9)

Errors

Pattern: ^arn:aws[a-z\-]*:braket:[a-z0-9\-]*:[0-9]{12}:job/.*$

Errors

For information about the errors that are common to all actions, see Common Errors (p. 68).

AccessDeniedException

You do not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

An error occurred due to a conflict.

HTTP Status Code: 409 InternalServiceException

The request processing has failed because of an unknown error, exception, or failure.

HTTP Status Code: 500 ResourceNotFoundException

The specified resource was not found.

HTTP Status Code: 404 ThrottlingException

The throttling rate limit is met.

HTTP Status Code: 429 ValidationException

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(10)

CancelQuantumTask

CancelQuantumTask

Cancels the specified task.

Request Syntax

PUT /quantum-task/quantumTaskArn/cancel HTTP/1.1 Content-type: application/json

{

"clientToken": "string"

}

URI Request Parameters

The request uses the following URI parameters.

quantumTaskArn (p. 5)

The ARN of the task to cancel.

Length Constraints: Minimum length of 1. Maximum length of 256.

Required: Yes

Request Body

The request accepts the following data in JSON format.

clientToken (p. 5)

The client token associated with the request.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Required: Yes

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"cancellationStatus": "string", "quantumTaskArn": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

(11)

Errors

The following data is returned in JSON format by the service.

cancellationStatus (p. 5)

The status of the cancellation request.

Type: String

Valid Values: CANCELLING | CANCELLED quantumTaskArn (p. 5)

The ARN of the task.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 68).

AccessDeniedException

You do not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

An error occurred due to a conflict.

HTTP Status Code: 409 InternalServiceException

The request processing has failed because of an unknown error, exception, or failure.

HTTP Status Code: 500 ResourceNotFoundException

The specified resource was not found.

HTTP Status Code: 404 ThrottlingException

The throttling rate limit is met.

HTTP Status Code: 429 ValidationException

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

(12)

See Also

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(13)

CreateJob

CreateJob

Creates an Amazon Braket job.

Request Syntax

POST /job HTTP/1.1

Content-type: application/json {

"algorithmSpecification": { "containerImage": { "uri": "string"

},

"scriptModeConfig": {

"compressionType": "string", "entryPoint": "string", "s3Uri": "string"

} },

"checkpointConfig": { "localPath": "string", "s3Uri": "string"

},

"clientToken": "string", "deviceConfig": { "device": "string"

},

"hyperParameters": { "string" : "string"

},

"inputDataConfig": [ {

"channelName": "string", "contentType": "string", "dataSource": {

"s3DataSource": { "s3Uri": "string"

} } } ],

"instanceConfig": {

"instanceType": "string", "volumeSizeInGb": number },

"jobName": "string", "outputDataConfig": { "kmsKeyId": "string", "s3Path": "string"

},

"roleArn": "string", "stoppingCondition": {

"maxRuntimeInSeconds": number },

"tags": {

"string" : "string"

}}

(14)

URI Request Parameters

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

algorithmSpecification (p. 8)

Definition of the Amazon Braket job to be created. Specifies the container image the job uses and information about the Python scripts used for entry and training.

Type: AlgorithmSpecification (p. 45) object Required: Yes

checkpointConfig (p. 8)

Information about the output locations for job checkpoint data.

Type: JobCheckpointConfig (p. 53) object Required: No

clientToken (p. 8)

A unique token that guarantees that the call to this API is idempotent.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Required: Yes deviceConfig (p. 8)

The quantum processing unit (QPU) or simulator used to create an Amazon Braket job.

Type: DeviceConfig (p. 48) object Required: Yes

hyperParameters (p. 8)

Algorithm-specific parameters used by an Amazon Braket job that influence the quality of the training job. The values are set with a string of JSON key:value pairs, where the key is the name of the hyperparameter and the value is the value of th hyperparameter.

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 100 items.

Key Length Constraints: Minimum length of 1. Maximum length of 256.

Value Length Constraints: Minimum length of 1. Maximum length of 2500.

Required: No inputDataConfig (p. 8)

A list of parameters that specify the name and type of input data and where it is located.

Type: Array of InputFileConfig (p. 51) objects

(15)

Response Syntax

Array Members: Minimum number of 0 items. Maximum number of 20 items.

Required: No instanceConfig (p. 8)

Configuration of the resource instances to use while running the hybrid job on Amazon Braket.

Type: InstanceConfig (p. 52) object Required: Yes

jobName (p. 8)

The name of the Amazon Braket job.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 50.

Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,50}$

Required: Yes outputDataConfig (p. 8)

The path to the S3 location where you want to store job artifacts and the encryption key used to store them.

Type: JobOutputDataConfig (p. 55) object Required: Yes

roleArn (p. 8)

The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to perform tasks on behalf of a user. It can access user resources, run an Amazon Braket job container on behalf of user, and output resources to the users' s3 buckets.

Type: String

Pattern: ^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$

Required: Yes stoppingCondition (p. 8)

The user-defined criteria that specifies when a job stops running.

Type: JobStoppingCondition (p. 56) object Required: No

tags (p. 8)

A tag object that consists of a key and an optional value, used to manage metadata for Amazon Braket resources.

Type: String to string map Required: No

Response Syntax

HTTP/1.1 201

(16)

Response Elements

Content-type: application/json { "jobArn": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 201 response.

The following data is returned in JSON format by the service.

jobArn (p. 10)

The ARN of the Amazon Braket job created.

Type: String

Pattern: ^arn:aws[a-z\-]*:braket:[a-z0-9\-]*:[0-9]{12}:job/.*$

Errors

For information about the errors that are common to all actions, see Common Errors (p. 68).

AccessDeniedException

You do not have sufficient access to perform this action.

HTTP Status Code: 403 ConflictException

An error occurred due to a conflict.

HTTP Status Code: 409 DeviceRetiredException

The specified device has been retired.

HTTP Status Code: 410 InternalServiceException

The request processing has failed because of an unknown error, exception, or failure.

HTTP Status Code: 500 ServiceQuotaExceededException

The request failed because a service quota is exceeded.

HTTP Status Code: 402 ThrottlingException

The throttling rate limit is met.

HTTP Status Code: 429 ValidationException

The input fails to satisfy the constraints specified by an AWS service.

(17)

See Also

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(18)

CreateQuantumTask

CreateQuantumTask

Creates a quantum task.

Request Syntax

POST /quantum-task HTTP/1.1 Content-type: application/json { "action": "string",

"clientToken": "string", "deviceArn": "string",

"deviceParameters": "string", "jobToken": "string",

"outputS3Bucket": "string", "outputS3KeyPrefix": "string", "shots": number,

"tags": {

"string" : "string"

}}

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

action (p. 13)

The action associated with the task.

Type: String Required: Yes clientToken (p. 13)

The client token associated with the request.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Required: Yes deviceArn (p. 13)

The ARN of the device to run the task on.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Required: Yes

(19)

Response Syntax

deviceParameters (p. 13)

The parameters for the device to run the task on.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 48000.

Required: No jobToken (p. 13)

The token for an Amazon Braket job that associates it with the quantum task.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: No outputS3Bucket (p. 13)

The S3 bucket to store task result files in.

Type: String

Length Constraints: Minimum length of 3. Maximum length of 63.

Required: Yes

outputS3KeyPrefix (p. 13)

The key prefix for the location in the S3 bucket to store task results in.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

Required: Yes shots (p. 13)

The number of shots to use for the task.

Type: Long

Valid Range: Minimum value of 0.

Required: Yes tags (p. 13)

Tags to be added to the quantum task you're creating.

Type: String to string map Required: No

Response Syntax

HTTP/1.1 201

Content-type: application/json

(20)

Response Elements

{

"quantumTaskArn": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 201 response.

The following data is returned in JSON format by the service.

quantumTaskArn (p. 14)

The ARN of the task created by the request.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 68).

AccessDeniedException

You do not have sufficient access to perform this action.

HTTP Status Code: 403 DeviceOfflineException

The specified device is currently offline.

HTTP Status Code: 424 DeviceRetiredException

The specified device has been retired.

HTTP Status Code: 410 InternalServiceException

The request processing has failed because of an unknown error, exception, or failure.

HTTP Status Code: 500 ServiceQuotaExceededException

The request failed because a service quota is exceeded.

HTTP Status Code: 402 ThrottlingException

The throttling rate limit is met.

HTTP Status Code: 429 ValidationException

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

(21)

See Also

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(22)

GetDevice

GetDevice

Retrieves the devices available in Amazon Braket.

Note

For backwards compatibility with older versions of BraketSchemas, OpenQASM information is omitted from GetDevice API calls. To get this information the user-agent needs to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK automatically reports this for you. If you do not see OpenQASM results in the GetDevice response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment variable to configure user-agent.

See the code examples provided below for how to do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs.

Request Syntax

GET /device/deviceArn HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

deviceArn (p. 17)

The ARN of the device to retrieve.

Length Constraints: Minimum length of 1. Maximum length of 256.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json { "deviceArn": "string",

"deviceCapabilities": "string", "deviceName": "string",

"deviceStatus": "string", "deviceType": "string", "providerName": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

(23)

Errors

deviceArn (p. 17)

The ARN of the device.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

deviceCapabilities (p. 17)

Details about the capabilities of the device.

Type: String deviceName (p. 17)

The name of the device.

Type: String deviceStatus (p. 17)

The status of the device.

Type: String

Valid Values: ONLINE | OFFLINE | RETIRED deviceType (p. 17)

The type of the device.

Type: String

Valid Values: QPU | SIMULATOR providerName (p. 17)

The name of the partner company for the device.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors (p. 68).

AccessDeniedException

You do not have sufficient access to perform this action.

HTTP Status Code: 403 InternalServiceException

The request processing has failed because of an unknown error, exception, or failure.

HTTP Status Code: 500 ResourceNotFoundException

The specified resource was not found.

HTTP Status Code: 404 ThrottlingException

The throttling rate limit is met.

(24)

Examples

HTTP Status Code: 429 ValidationException

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

Examples

Example

To set AWS_EXECUTION_ENV environment variable to configure user-agent when using the AWS CLI SDK:

% export AWS_EXECUTION_ENV="aws-cli BraketSchemas/1.8.0"

# Or for single execution

% AWS_EXECUTION_ENV="aws-cli BraketSchemas/1.8.0" aws braket <cmd> [options]

Example

To set AWS_EXECUTION_ENV environment variable to configure user-agent when using the Boto3:

import boto3 import botocore

client = boto3.client("braket",

config=botocore.client.Config(user_agent_extra="BraketSchemas/1.8.0"))

Example

To set AWS_EXECUTION_ENV environment variable to configure user-agent when using the JavaScript/

TypeScript (SDK v2):

import Braket from 'aws-sdk/clients/braket';

const client = new Braket({ region: 'us-west-2', credentials: AWS_CREDENTIALS, customUserAgent: 'BraketSchemas/1.8.0' });

Example

To set AWS_EXECUTION_ENV environment variable to configure user-agent when using the JavaScript/

TypeScript (SDK v3):

import { Braket } from '@aws-sdk/client-braket';

const client = new Braket({ region: 'us-west-2', credentials: AWS_CREDENTIALS, customUserAgent: 'BraketSchemas/1.8.0' });

Example

To set AWS_EXECUTION_ENV environment variable to configure user-agent when using the Go SDK:

os.Setenv("AWS_EXECUTION_ENV", "BraketGo BraketSchemas/1.8.0") mySession := session.Must(session.NewSession())

(25)

See Also

svc := braket.New(mySession)

Example

To set AWS_EXECUTION_ENV environment variable to configure user-agent when using the Java SDK:

ClientConfiguration config = new ClientConfiguration();

config.setUserAgentSuffix("BraketSchemas/1.8.0");

BraketClient braketClient =

BraketClientBuilder.standard().withClientConfiguration(config).build();

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(26)

GetJob

GetJob

Retrieves the specified Amazon Braket job.

Request Syntax

GET /job/jobArn HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

jobArn (p. 21)

The ARN of the job to retrieve.

Pattern: ^arn:aws[a-z\-]*:braket:[a-z0-9\-]*:[0-9]{12}:job/.*$

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"algorithmSpecification": { "containerImage": { "uri": "string"

},

"scriptModeConfig": {

"compressionType": "string", "entryPoint": "string", "s3Uri": "string"

} },

"billableDuration": number, "checkpointConfig": { "localPath": "string", "s3Uri": "string"

},

"createdAt": number, "deviceConfig": { "device": "string"

},

"endedAt": number, "events": [ {

"eventType": "string", "message": "string", "timeOfEvent": number }

],

(27)

Response Elements

"failureReason": "string", "hyperParameters": { "string" : "string"

},

"inputDataConfig": [ {

"channelName": "string", "contentType": "string", "dataSource": {

"s3DataSource": { "s3Uri": "string"

} } } ],

"instanceConfig": {

"instanceType": "string", "volumeSizeInGb": number },

"jobArn": "string", "jobName": "string", "outputDataConfig": { "kmsKeyId": "string", "s3Path": "string"

},

"roleArn": "string", "startedAt": number, "status": "string", "stoppingCondition": {

"maxRuntimeInSeconds": number },

"tags": {

"string" : "string"

} }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

algorithmSpecification (p. 21)

Definition of the Amazon Braket job created. Specifies the container image the job uses, information about the Python scripts used for entry and training, and the user-defined metrics used to

evaluation the job.

Type: AlgorithmSpecification (p. 45) object billableDuration (p. 21)

The billable time the Amazon Braket job used to complete.

Type: Integer

checkpointConfig (p. 21)

Information about the output locations for job checkpoint data.

Type: JobCheckpointConfig (p. 53) object createdAt (p. 21)

The date and time that the Amazon Braket job was created.

(28)

Response Elements

Type: Timestamp deviceConfig (p. 21)

The quantum processing unit (QPU) or simulator used to run the Amazon Braket job.

Type: DeviceConfig (p. 48) object endedAt (p. 21)

The date and time that the Amazon Braket job ended.

Type: Timestamp events (p. 21)

Details about the type and time events occurred related to the Amazon Braket job.

Type: Array of JobEventDetails (p. 54) objects

Array Members: Minimum number of 0 items. Maximum number of 20 items.

failureReason (p. 21)

A description of the reason why an Amazon Braket job failed, if it failed.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1024.

hyperParameters (p. 21)

Algorithm-specific parameters used by an Amazon Braket job that influence the quality of the traiing job. The values are set with a string of JSON key:value pairs, where the key is the name of the hyperparameter and the value is the value of th hyperparameter.

Type: String to string map

Map Entries: Minimum number of 0 items. Maximum number of 100 items.

Key Length Constraints: Minimum length of 1. Maximum length of 256.

Value Length Constraints: Minimum length of 1. Maximum length of 2500.

inputDataConfig (p. 21)

A list of parameters that specify the name and type of input data and where it is located.

Type: Array of InputFileConfig (p. 51) objects instanceConfig (p. 21)

The resource instances to use while running the hybrid job on Amazon Braket.

Type: InstanceConfig (p. 52) object jobArn (p. 21)

The ARN of the Amazon Braket job.

Type: String

Pattern: ^arn:aws[a-z\-]*:braket:[a-z0-9\-]*:[0-9]{12}:job/.*$

jobName (p. 21)

The name of the Amazon Braket job.

(29)

Errors

Type: String

Length Constraints: Minimum length of 1. Maximum length of 50.

Pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,50}$

outputDataConfig (p. 21)

The path to the S3 location where job artifacts are stored and the encryption key used to store them there.

Type: JobOutputDataConfig (p. 55) object roleArn (p. 21)

The Amazon Resource Name (ARN) of an IAM role that Amazon Braket can assume to perform tasks on behalf of a user. It can access user resources, run an Amazon Braket job container on behalf of user, and output resources to the s3 buckets of a user.

Type: String

Pattern: ^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$

startedAt (p. 21)

The date and time that the Amazon Braket job was started.

Type: Timestamp status (p. 21)

The status of the Amazon Braket job.

Type: String

Valid Values: QUEUED | RUNNING | COMPLETED | FAILED | CANCELLING | CANCELLED stoppingCondition (p. 21)

The user-defined criteria that specifies when to stop a job running.

Type: JobStoppingCondition (p. 56) object tags (p. 21)

A tag object that consists of a key and an optional value, used to manage metadata for Amazon Braket resources.

Type: String to string map

Errors

For information about the errors that are common to all actions, see Common Errors (p. 68).

AccessDeniedException

You do not have sufficient access to perform this action.

HTTP Status Code: 403 InternalServiceException

The request processing has failed because of an unknown error, exception, or failure.

HTTP Status Code: 500

(30)

See Also

ResourceNotFoundException

The specified resource was not found.

HTTP Status Code: 404 ThrottlingException

The throttling rate limit is met.

HTTP Status Code: 429 ValidationException

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(31)

GetQuantumTask

GetQuantumTask

Retrieves the specified quantum task.

Request Syntax

GET /quantum-task/quantumTaskArn HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

quantumTaskArn (p. 26)

the ARN of the task to retrieve.

Length Constraints: Minimum length of 1. Maximum length of 256.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"createdAt": number, "deviceArn": "string",

"deviceParameters": "string", "endedAt": number,

"failureReason": "string", "jobArn": "string",

"outputS3Bucket": "string", "outputS3Directory": "string", "quantumTaskArn": "string", "shots": number,

"status": "string", "tags": {

"string" : "string"

}}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

createdAt (p. 26)

The time at which the task was created.

(32)

Response Elements

Type: Timestamp deviceArn (p. 26)

The ARN of the device the task was run on.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

deviceParameters (p. 26)

The parameters for the device on which the task ran.

Type: String endedAt (p. 26)

The time at which the task ended.

Type: Timestamp failureReason (p. 26)

The reason that a task failed.

Type: String jobArn (p. 26)

The ARN of the Amazon Braket job associated with the quantum task.

Type: String

Pattern: ^arn:aws[a-z\-]*:braket:[a-z0-9\-]*:[0-9]{12}:job/.*$

outputS3Bucket (p. 26)

The S3 bucket where task results are stored.

Type: String

outputS3Directory (p. 26)

The folder in the S3 bucket where task results are stored.

Type: String

quantumTaskArn (p. 26) The ARN of the task.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

shots (p. 26)

The number of shots used in the task.

Type: Long status (p. 26)

The status of the task.

Type: String

Valid Values: CREATED | QUEUED | RUNNING | COMPLETED | FAILED | CANCELLING | CANCELLED

(33)

Errors

tags (p. 26)

The tags that belong to this task.

Type: String to string map

Errors

For information about the errors that are common to all actions, see Common Errors (p. 68).

AccessDeniedException

You do not have sufficient access to perform this action.

HTTP Status Code: 403 InternalServiceException

The request processing has failed because of an unknown error, exception, or failure.

HTTP Status Code: 500 ResourceNotFoundException

The specified resource was not found.

HTTP Status Code: 404 ThrottlingException

The throttling rate limit is met.

HTTP Status Code: 429 ValidationException

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(34)

ListTagsForResource

ListTagsForResource

Shows the tags associated with this resource.

Request Syntax

GET /tags/resourceArn HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

resourceArn (p. 29)

Specify the resourceArn for the resource whose tags to display.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Content-type: application/json { "tags": {

"string" : "string"

}}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

tags (p. 29)

Displays the key, value pairs of tags associated with this resource.

Type: String to string map

Errors

For information about the errors that are common to all actions, see Common Errors (p. 68).

InternalServiceException

The request processing has failed because of an unknown error, exception, or failure.

(35)

See Also

HTTP Status Code: 500 ResourceNotFoundException

The specified resource was not found.

HTTP Status Code: 404 ValidationException

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(36)

SearchDevices

SearchDevices

Searches for devices using the specified filters.

Request Syntax

POST /devices HTTP/1.1

Content-type: application/json { "filters": [

{

"name": "string", "values": [ "string" ] }

],

"maxResults": number, "nextToken": "string"

}

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

filters (p. 31)

The filter values to use to search for a device.

Type: Array of SearchDevicesFilter (p. 63) objects

Array Members: Minimum number of 0 items. Maximum number of 10 items.

Required: Yes maxResults (p. 31)

The maximum number of results to return in the response.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

Required: No nextToken (p. 31)

A token used for pagination of results returned in the response. Use the token returned from the previous request continue results where the previous request ended.

Type: String Required: No

(37)

Response Syntax

Response Syntax

HTTP/1.1 200

Content-type: application/json {

"devices": [ {

"deviceArn": "string", "deviceName": "string", "deviceStatus": "string", "deviceType": "string", "providerName": "string"

} ],

"nextToken": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

devices (p. 32)

An array of DeviceSummary objects for devices that match the specified filter values.

Type: Array of DeviceSummary (p. 49) objects nextToken (p. 32)

A token used for pagination of results, or null if there are no additional results. Use the token value in a subsequent request to continue results where the previous request ended.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors (p. 68).

AccessDeniedException

You do not have sufficient access to perform this action.

HTTP Status Code: 403 InternalServiceException

The request processing has failed because of an unknown error, exception, or failure.

HTTP Status Code: 500 ThrottlingException

The throttling rate limit is met.

HTTP Status Code: 429 ValidationException

The input fails to satisfy the constraints specified by an AWS service.

(38)

See Also

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(39)

SearchJobs

SearchJobs

Searches for Amazon Braket jobs that match the specified filter values.

Request Syntax

POST /jobs HTTP/1.1

Content-type: application/json {

"filters": [ {

"name": "string", "operator": "string", "values": [ "string" ] }

],

"maxResults": number, "nextToken": "string"

}

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

filters (p. 34)

The filter values to use when searching for a job.

Type: Array of SearchJobsFilter (p. 64) objects

Array Members: Minimum number of 0 items. Maximum number of 10 items.

Required: Yes maxResults (p. 34)

The maximum number of results to return in the response.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

Required: No nextToken (p. 34)

A token used for pagination of results returned in the response. Use the token returned from the previous request to continue results where the previous request ended.

Type: String Required: No

(40)

Response Syntax

Response Syntax

HTTP/1.1 200

Content-type: application/json { "jobs": [

{

"createdAt": number, "device": "string", "endedAt": number, "jobArn": "string", "jobName": "string", "startedAt": number, "status": "string", "tags": {

"string" : "string"

} } ],

"nextToken": "string"

}

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

jobs (p. 35)

An array of JobSummary objects for devices that match the specified filter values.

Type: Array of JobSummary (p. 57) objects nextToken (p. 35)

A token used for pagination of results, or null if there are no additional results. Use the token value in a subsequent request to continue results where the previous request ended.

Type: String

Errors

For information about the errors that are common to all actions, see Common Errors (p. 68).

AccessDeniedException

You do not have sufficient access to perform this action.

HTTP Status Code: 403 InternalServiceException

The request processing has failed because of an unknown error, exception, or failure.

HTTP Status Code: 500 ThrottlingException

The throttling rate limit is met.

(41)

See Also

HTTP Status Code: 429 ValidationException

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(42)

SearchQuantumTasks

SearchQuantumTasks

Searches for tasks that match the specified filter values.

Request Syntax

POST /quantum-tasks HTTP/1.1 Content-type: application/json {

"filters": [ {

"name": "string", "operator": "string", "values": [ "string" ] }

],

"maxResults": number, "nextToken": "string"

}

URI Request Parameters

The request does not use any URI parameters.

Request Body

The request accepts the following data in JSON format.

filters (p. 37)

Array of SearchQuantumTasksFilter objects.

Type: Array of SearchQuantumTasksFilter (p. 65) objects

Array Members: Minimum number of 0 items. Maximum number of 10 items.

Required: Yes maxResults (p. 37)

Maximum number of results to return in the response.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

Required: No nextToken (p. 37)

A token used for pagination of results returned in the response. Use the token returned from the previous request continue results where the previous request ended.

Type: String Required: No

(43)

Response Syntax

Response Syntax

HTTP/1.1 200

Content-type: application/json { "nextToken": "string", "quantumTasks": [ {

"createdAt": number, "deviceArn": "string", "endedAt": number,

"outputS3Bucket": "string", "outputS3Directory": "string", "quantumTaskArn": "string", "shots": number,

"status": "string", "tags": {

"string" : "string"

} } ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

nextToken (p. 38)

A token used for pagination of results, or null if there are no additional results. Use the token value in a subsequent request to continue results where the previous request ended.

Type: String quantumTasks (p. 38)

An array of QuantumTaskSummary objects for tasks that match the specified filters.

Type: Array of QuantumTaskSummary (p. 59) objects

Errors

For information about the errors that are common to all actions, see Common Errors (p. 68).

AccessDeniedException

You do not have sufficient access to perform this action.

HTTP Status Code: 403 InternalServiceException

The request processing has failed because of an unknown error, exception, or failure.

HTTP Status Code: 500

(44)

See Also

ThrottlingException

The throttling rate limit is met.

HTTP Status Code: 429 ValidationException

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(45)

TagResource

TagResource

Add a tag to the specified resource.

Request Syntax

POST /tags/resourceArn HTTP/1.1 Content-type: application/json { "tags": {

"string" : "string"

}}

URI Request Parameters

The request uses the following URI parameters.

resourceArn (p. 40)

Specify the resourceArn of the resource to which a tag will be added.

Required: Yes

Request Body

The request accepts the following data in JSON format.

tags (p. 40)

Specify the tags to add to the resource.

Type: String to string map Required: Yes

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 68).

InternalServiceException

The request processing has failed because of an unknown error, exception, or failure.

(46)

See Also

HTTP Status Code: 500 ResourceNotFoundException

The specified resource was not found.

HTTP Status Code: 404 ValidationException

The input fails to satisfy the constraints specified by an AWS service.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(47)

UntagResource

UntagResource

Remove tags from a resource.

Request Syntax

DELETE /tags/resourceArn?tagKeys=tagKeys HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

resourceArn (p. 42)

Specify the resourceArn for the resource from which to remove the tags.

Required: Yes tagKeys (p. 42)

Specify the keys for the tags to remove from the resource.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors (p. 68).

InternalServiceException

The request processing has failed because of an unknown error, exception, or failure.

HTTP Status Code: 500 ResourceNotFoundException

The specified resource was not found.

HTTP Status Code: 404 ValidationException

The input fails to satisfy the constraints specified by an AWS service.

(48)

See Also

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS Command Line Interface

• AWS SDK for .NET

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for JavaScript

• AWS SDK for PHP V3

• AWS SDK for Python

• AWS SDK for Ruby V3

(49)

Data Types

The Braket API contains several data types that various actions use. This section describes each data type in detail.

Note

The order of each element in a data type structure is not guaranteed. Applications should not assume a particular order.

The following data types are supported:

• AlgorithmSpecification (p. 45)

• ContainerImage (p. 46)

• DataSource (p. 47)

• DeviceConfig (p. 48)

• DeviceSummary (p. 49)

• InputFileConfig (p. 51)

• InstanceConfig (p. 52)

• JobCheckpointConfig (p. 53)

• JobEventDetails (p. 54)

• JobOutputDataConfig (p. 55)

• JobStoppingCondition (p. 56)

• JobSummary (p. 57)

• QuantumTaskSummary (p. 59)

• S3DataSource (p. 61)

• ScriptModeConfig (p. 62)

• SearchDevicesFilter (p. 63)

• SearchJobsFilter (p. 64)

• SearchQuantumTasksFilter (p. 65)

(50)

AlgorithmSpecification

AlgorithmSpecification

Defines the Amazon Braket job to be created. Specifies the container image the job uses and the paths to the Python scripts used for entry and training.

Contents

containerImage

The container image used to create an Amazon Braket job.

Type: ContainerImage (p. 46) object Required: No

scriptModeConfig

Configures the paths to the Python scripts used for entry and training.

Type: ScriptModeConfig (p. 62) object Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

(51)

ContainerImage

ContainerImage

The container image used to create an Amazon Braket job.

Contents

uri

The URI locating the container image.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Pattern: \d{10,14}\.dkr\.ecr.[a-z0-9-]+\.amazonaws\.com\/.+(@sha256)?:.+

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

(52)

DataSource

DataSource

Information about the source of the data used by the Amazon Braket job.

Contents

s3DataSource

Information about the data stored in Amazon S3 used by the Amazon Braket job.

Type: S3DataSource (p. 61) object Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

(53)

DeviceConfig

DeviceConfig

Configures the quantum processing units (QPUs) or simulator used to create and run an Amazon Braket job.

Contents

device

The primary quantum processing unit (QPU) or simulator used to create and run an Amazon Braket job.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

(54)

DeviceSummary

DeviceSummary

Includes information about the device.

Contents

deviceArn

The ARN of the device.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Required: Yes deviceName

The name of the device.

Type: String Required: Yes deviceStatus

The status of the device.

Type: String

Valid Values: ONLINE | OFFLINE | RETIRED Required: Yes

deviceType

The type of the device.

Type: String

Valid Values: QPU | SIMULATOR Required: Yes

providerName

The provider of the device.

Type: String Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

(55)

See Also

(56)

InputFileConfig

InputFileConfig

A list of parameters that specify the input channels, type of input data, and where it is located.

Contents

channelName

A named input source that an Amazon Braket job can consume.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: ^[A-Za-z0-9\.\-_]+$

Required: Yes contentType

The MIME type of the data.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Required: No dataSource

The location of the channel data.

Type: DataSource (p. 47) object Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

(57)

InstanceConfig

InstanceConfig

Configures the resource instances to use while running the Amazon Braket hybrid job on Amazon Braket.

Contents

instanceType

Configures the type resource instances to use while running an Amazon Braket hybrid job.

Type: String

Valid Values: ml.m4.xlarge | ml.m4.2xlarge | ml.m4.4xlarge | ml.m4.10xlarge

| ml.m4.16xlarge | ml.g4dn.xlarge | ml.g4dn.2xlarge | ml.g4dn.4xlarge

| ml.g4dn.8xlarge | ml.g4dn.12xlarge | ml.g4dn.16xlarge | ml.m5.large

| ml.m5.xlarge | ml.m5.2xlarge | ml.m5.4xlarge | ml.m5.12xlarge

| ml.m5.24xlarge | ml.c4.xlarge | ml.c4.2xlarge | ml.c4.4xlarge

| ml.c4.8xlarge | ml.p2.xlarge | ml.p2.8xlarge | ml.p2.16xlarge | ml.p3.2xlarge | ml.p3.8xlarge | ml.p3.16xlarge | ml.p3dn.24xlarge

| ml.p4d.24xlarge | ml.c5.xlarge | ml.c5.2xlarge | ml.c5.4xlarge | ml.c5.9xlarge | ml.c5.18xlarge | ml.c5n.xlarge | ml.c5n.2xlarge | ml.c5n.4xlarge | ml.c5n.9xlarge | ml.c5n.18xlarge

Required: Yes volumeSizeInGb

The size of the storage volume, in GB, that user wants to provision.

Type: Integer

Valid Range: Minimum value of 1.

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

(58)

JobCheckpointConfig

JobCheckpointConfig

Contains information about the output locations for job checkpoint data.

Contents

localPath

(Optional) The local directory where checkpoints are written. The default directory is /opt/

braket/checkpoints/.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 4096.

Required: No s3Uri

Identifies the S3 path where you want Amazon Braket to store checkpoints. For example, s3://

bucket-name/key-name-prefix.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 1024.

Pattern: ^(https|s3)://([^/]+)/?(.*)$

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

(59)

JobEventDetails

JobEventDetails

Details about the type and time events occurred related to the Amazon Braket job.

Contents

eventType

The type of event that occurred related to the Amazon Braket job.

Type: String

Valid Values: WAITING_FOR_PRIORITY | QUEUED_FOR_EXECUTION | STARTING_INSTANCE

| DOWNLOADING_DATA | RUNNING | DEPRIORITIZED_DUE_TO_INACTIVITY |

UPLOADING_RESULTS | COMPLETED | FAILED | MAX_RUNTIME_EXCEEDED | CANCELLED Required: No

message

A message describing the event that occurred related to the Amazon Braket job.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 2500.

Required: No timeOfEvent

TThe type of event that occurred related to the Amazon Braket job.

Type: Timestamp Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

(60)

JobOutputDataConfig

JobOutputDataConfig

Specifies the path to the S3 location where you want to store job artifacts and the encryption key used to store them.

Contents

kmsKeyId

The AWS Key Management Service (AWS KMS) key that Amazon Braket uses to encrypt the job training artifacts at rest using Amazon S3 server-side encryption.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 2048.

Required: No s3Path

Identifies the S3 path where you want Amazon Braket to store the job training artifacts. For example, s3://bucket-name/key-name-prefix.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 1024.

Pattern: ^(https|s3)://([^/]+)/?(.*)$

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

(61)

JobStoppingCondition

JobStoppingCondition

Specifies limits for how long an Amazon Braket job can run.

Contents

maxRuntimeInSeconds

The maximum length of time, in seconds, that an Amazon Braket job can run.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 432000.

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

(62)

JobSummary

JobSummary

Provides summary information about an Amazon Braket job.

Contents

createdAt

The date and time that the Amazon Braket job was created.

Type: Timestamp Required: Yes device

Provides summary information about the primary device used by an Amazon Braket job.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Required: Yes endedAt

The date and time that the Amazon Braket job ended.

Type: Timestamp Required: No jobArn

The ARN of the Amazon Braket job.

Type: String

Pattern: ^arn:aws[a-z\-]*:braket:[a-z0-9\-]*:[0-9]{12}:job/.*$

Required: Yes jobName

The name of the Amazon Braket job.

Type: String Required: Yes startedAt

The date and time that the Amazon Braket job was started.

Type: Timestamp Required: No status

The status of the Amazon Braket job.

Type: String

(63)

See Also

Valid Values: QUEUED | RUNNING | COMPLETED | FAILED | CANCELLING | CANCELLED Required: Yes

tags

A tag object that consists of a key and an optional value, used to manage metadata for Amazon Braket resources.

Type: String to string map Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

(64)

QuantumTaskSummary

QuantumTaskSummary

Includes information about a quantum task.

Contents

createdAt

The time at which the task was created.

Type: Timestamp Required: Yes deviceArn

The ARN of the device the task ran on.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Required: Yes endedAt

The time at which the task finished.

Type: Timestamp Required: No outputS3Bucket

The S3 bucket where the task result file is stored..

Type: String Required: Yes outputS3Directory

The folder in the S3 bucket where the task result file is stored.

Type: String Required: Yes quantumTaskArn

The ARN of the task.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Required: Yes shots

The shots used for the task.

Type: Long

(65)

See Also

Required: Yes status

The status of the task.

Type: String

Valid Values: CREATED | QUEUED | RUNNING | COMPLETED | FAILED | CANCELLING | CANCELLED

Required: Yes tags

Displays the key, value pairs of tags associated with this quantum task.

Type: String to string map Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

(66)

S3DataSource

S3DataSource

Information about the data stored in Amazon S3 used by the Amazon Braket job.

Contents

s3Uri

Depending on the value specified for the S3DataType, identifies either a key name prefix or a manifest that locates the S3 data source.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 1024.

Pattern: ^(https|s3)://([^/]+)/?(.*)$

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

• AWS SDK for C++

• AWS SDK for Go

• AWS SDK for Java V2

• AWS SDK for Ruby V3

參考文獻

相關文件

•The PROC directive declares a procedure with an optional list of named parameters. an optional list of

Search the portion of List preceding TestEntry for TargetValue, and report the result of that search if (TargetValue &gt; TestEntry):. Search the portion of List following

You need to configure DC1 to resolve any DNS requests that are not for the contoso.com zone by querying the DNS server of your Internet Service Provider (ISP). What should

We are not aware of any existing methods for identifying constant parameters or covariates in the parametric component of a semiparametric model, although there exists an

Some of the most common closed Newton-Cotes formulas with their error terms are listed in the following table... The following theorem summarizes the open Newton-Cotes

• Content demands – Awareness that in different countries the weather is different and we need to wear different clothes / also culture. impacts on the clothing

• Examples of items NOT recognised for fee calculation*: staff gathering/ welfare/ meal allowances, expenses related to event celebrations without student participation,

The research proposes a data oriented approach for choosing the type of clustering algorithms and a new cluster validity index for choosing their input parameters.. The