create_quantum_task
async
¶
create_quantum_task(
client_token: String64,
device_arn: DeviceArn,
shots: int,
output_s3_bucket: str,
output_s3_key_prefix: str,
action: JsonValue,
*,
config_overrides: Optional[AsyncBraketClientConfig] = None,
device_parameters: Optional[JsonValue] = None,
tags: Optional[TagsMap] = None,
job_token: Optional[JobToken] = None,
associations: Optional[Associations] = None,
experimental_capabilities: Optional[ExperimentalCapabilities] = None,
) -> CreateQuantumTaskResponse
Creates a quantum task.
Parameters:
-
client_token(String64) –The client token associated with the request.
-
device_arn(DeviceArn) –The ARN of the device to run the quantum task on.
-
device_parameters(Optional[JsonValue], default:None) –The parameters for the device to run the quantum task on.
-
shots(int) –The number of shots to use for the quantum task.
-
output_s3_bucket(str) –The S3 bucket to store quantum task result files in.
-
output_s3_key_prefix(str) –The key prefix for the location in the S3 bucket to store quantum task results in.
-
action(JsonValue) –The action associated with the quantum task.
-
tags(Optional[TagsMap], default:None) –Tags to be added to the quantum task you're creating.
-
job_token(Optional[JobToken], default:None) –The token for an Amazon Braket hybrid job that associates it with the quantum task.
-
associations(Optional[Associations], default:None) –The list of Amazon Braket resources associated with the quantum task.
-
experimental_capabilities(Optional[ExperimentalCapabilities], default:None) –Enable experimental capabilities for the quantum task.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
DeviceOfflineException–The specified device is currently offline.
-
DeviceRetiredException–The specified device has been retired.
-
InternalServiceException–The request failed because of an unknown error.
-
ServiceQuotaExceededException–The request failed because a service quota is exceeded.
-
ThrottlingException–The API throttling rate limit is exceeded.
-
ValidationException–The input request failed to satisfy constraints expected by Amazon Braket.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_braket/_services/async_braket.py
792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 | |