Braket.Client.
get_quantum_task
(**kwargs)¶Retrieves the specified quantum task.
See also: AWS API Documentation
Request Syntax
response = client.get_quantum_task(
quantumTaskArn='string'
)
[REQUIRED]
the ARN of the task to retrieve.
{
'createdAt': datetime(2015, 1, 1),
'deviceArn': 'string',
'deviceParameters': 'string',
'endedAt': datetime(2015, 1, 1),
'failureReason': 'string',
'jobArn': 'string',
'outputS3Bucket': 'string',
'outputS3Directory': 'string',
'quantumTaskArn': 'string',
'shots': 123,
'status': 'CREATED'|'QUEUED'|'RUNNING'|'COMPLETED'|'FAILED'|'CANCELLING'|'CANCELLED',
'tags': {
'string': 'string'
}
}
Response Structure
The time at which the task was created.
The ARN of the device the task was run on.
The parameters for the device on which the task ran.
The time at which the task ended.
The reason that a task failed.
The ARN of the Amazon Braket job associated with the quantum task.
The S3 bucket where task results are stored.
The folder in the S3 bucket where task results are stored.
The ARN of the task.
The number of shots used in the task.
The status of the task.
The tags that belong to this task.
Exceptions
Braket.Client.exceptions.ResourceNotFoundException
Braket.Client.exceptions.AccessDeniedException
Braket.Client.exceptions.ThrottlingException
Braket.Client.exceptions.InternalServiceException
Braket.Client.exceptions.ValidationException