Core module (quantum_serverless.core)#

Quantum serverless core module classes and functions#

Core abstractions#

ServerlessClient([name, host, version, ...])

A client for connecting to a specified host.

IBMServerlessClient([token, name])

A client for connecting to the IBM serverless host.

BaseClient(name[, host, token, ...])

A client class for specifying custom compute resources.

RayClient(host)

RayClient.

LocalClient()

LocalClient.

ComputeResource(name[, host, ...])

ComputeResource class.

Job(job_id, job_client[, raw_data])

Job.

GatewayJobClient(host, token, version)

GatewayJobClient.

BaseJobClient()

Base class for Job clients.

RayJobClient(client)

RayJobClient.

save_result(result)

Saves job results.

QiskitPattern(title[, entrypoint, ...])

[Deprecated since version 0.10.0] Use QiskitFunction instead.

QiskitFunction(title[, entrypoint, ...])

Serverless QiskitPattern.

Target([cpu, gpu, qpu, mem, resources, ...])

Quantum serverless target.

CircuitMeta(num_qubits, depth)

Circuit metainformation.

fetch_execution_meta(*args, **kwargs)

Extracts meta information from function arguments.

distribute_task([target])

Wraps local function as remote executable function.

distribute_program([provider, dependencies, ...])

Decorator for distributed program.

distribute_qiskit_pattern([provider, ...])

[Experimental] QiskitPattern decorator to turn function into remotely executable program.

get(object_refs, *[, timeout])

Get results from distributed tasks.

put(value, **kwargs)

Puts object into shared distributed storage

get_refs_by_status(object_refs, **kwargs)

Get references by status.