Functions for managing quantum jobs on AWS Braket.
Functions for managing quantum jobs on AWS Braket.
(bitstring-to-index bitstring num-qubits)Convert a bitstring like "00" or "11" to basis state index.
Convert a bitstring like "00" or "11" to basis state index.
(convert-braket-measurement-results raw-results shots num-qubits)Convert Braket measurement results to QClojure format.
Automatically detects device type and applies appropriate conversion.
Parameters:
Returns: Measurement results in QClojure format
Convert Braket measurement results to QClojure format. Automatically detects device type and applies appropriate conversion. Parameters: - raw-results: Raw results from Braket task (as parsed from JSON) - shots: Number of shots executed - num-qubits: Number of qubits in the circuit Returns: Measurement results in QClojure format
(convert-braket-results braket-result job-info)Convert Braket task result to QClojure result format.
Parameters:
Returns: Result in QClojure format compatible with simulator backends
Convert Braket task result to QClojure result format. Parameters: - braket-result: Raw result from job-result function - job-info: Job info from backend state containing circuit and options Returns: Result in QClojure format compatible with simulator backends
(convert-qpu-probabilities measurement-probs shots num-qubits)Convert QPU measurement probabilities to QClojure format.
Convert QPU measurement probabilities to QClojure format.
(convert-simulator-measurements measurements shots num-qubits)Convert SV1 simulator measurements to QClojure format.
Convert SV1 simulator measurements to QClojure format.
(create-s3-client)(create-s3-client config-overrides)Creates an AWS S3 client with optional configuration overrides.
Args: config-overrides - Map of configuration overrides (optional)
Returns: AWS S3 client instance
Creates an AWS S3 client with optional configuration overrides. Args: config-overrides - Map of configuration overrides (optional) Returns: AWS S3 client instance
Default configuration for AWS S3 client
Default configuration for AWS S3 client
(detect-device-type raw-results)Detect whether results are from simulator or QPU.
Heuristic:
Parameters:
Returns: :simulator, :qpu, or :unknown
Detect whether results are from simulator or QPU. Heuristic: - if we have raw measurement bit vectors, it's a simulator; - if we have probabilities, it's a QPU. Parameters: - raw-results: Raw results from Braket task (as parsed from JSON) Returns: :simulator, :qpu, or :unknown
(download-s3-object s3-client bucket key)Download an object from S3 and return its content as a string
Download an object from S3 and return its content as a string
(parse-braket-results results-json)Parse Braket quantum task results from JSON
Parse Braket quantum task results from JSON
(parse-s3-location task-response)Parse S3 bucket and key from Braket task response
Parse S3 bucket and key from Braket task response
(retrieve-task-results s3-client task-response)Retrieve and parse results from S3 for a completed Braket task
Retrieve and parse results from S3 for a completed Braket task
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |