qbraid.providers.aws.get_quantum_task_cost

get_quantum_task_cost(task_arn, aws_session=None)[source]

Returns the cost of quantum task run on an AWS device

Parameters:
  • task_arn (str) – The quantumTaskArn.

  • aws_session (optional, braket.aws.AwsSession) – Session with which to retrieve the task

Returns:

The estimated total cost in USD

Return type:

decimal.Decimal

Raises:

ValueError – If quantum task not found or not in final state, or device type not supported.