Braket.Client.
create_quantum_task
(**kwargs)¶Creates a quantum task.
See also: AWS API Documentation
Request Syntax
response = client.create_quantum_task(
action='string',
clientToken='string',
deviceArn='string',
deviceParameters='string',
jobToken='string',
outputS3Bucket='string',
outputS3KeyPrefix='string',
shots=123,
tags={
'string': 'string'
}
)
[REQUIRED]
The action associated with the task.
[REQUIRED]
The client token associated with the request.
This field is autopopulated if not provided.
[REQUIRED]
The ARN of the device to run the task on.
[REQUIRED]
The S3 bucket to store task result files in.
[REQUIRED]
The key prefix for the location in the S3 bucket to store task results in.
[REQUIRED]
The number of shots to use for the task.
Tags to be added to the quantum task you're creating.
dict
Response Syntax
{
'quantumTaskArn': 'string'
}
Response Structure
(dict) --
quantumTaskArn (string) --
The ARN of the task created by the request.
Exceptions
Braket.Client.exceptions.AccessDeniedException
Braket.Client.exceptions.ThrottlingException
Braket.Client.exceptions.DeviceOfflineException
Braket.Client.exceptions.DeviceRetiredException
Braket.Client.exceptions.InternalServiceException
Braket.Client.exceptions.ServiceQuotaExceededException
Braket.Client.exceptions.ValidationException