Liking cljdoc? Tell your friends :D

org.soulspace.qclojure.adapter.backend.task

Functions for managing quantum jobs on AWS Braket.

Functions for managing quantum jobs on AWS Braket.
raw docstring

bitstring-to-indexclj

(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.
sourceraw docstring

convert-braket-measurement-resultsclj

(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:

  • 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 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
sourceraw docstring

convert-braket-resultsclj

(convert-braket-results braket-result job-info)

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 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
sourceraw docstring

convert-qpu-probabilitiesclj

(convert-qpu-probabilities measurement-probs shots num-qubits)

Convert QPU measurement probabilities to QClojure format.

Convert QPU measurement probabilities to QClojure format.
sourceraw docstring

convert-simulator-measurementsclj

(convert-simulator-measurements measurements shots num-qubits)

Convert SV1 simulator measurements to QClojure format.

Convert SV1 simulator measurements to QClojure format.
sourceraw docstring

create-s3-clientclj

(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
sourceraw docstring

default-s3-configclj

Default configuration for AWS S3 client

Default configuration for AWS S3 client
sourceraw docstring

detect-device-typeclj

(detect-device-type raw-results)

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

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
sourceraw docstring

download-s3-objectclj

(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
sourceraw docstring

parse-braket-resultsclj

(parse-braket-results results-json)

Parse Braket quantum task results from JSON

Parse Braket quantum task results from JSON
sourceraw docstring

parse-s3-locationclj

(parse-s3-location task-response)

Parse S3 bucket and key from Braket task response

Parse S3 bucket and key from Braket task response
sourceraw docstring

retrieve-task-resultsclj

(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
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close