qcs_sdk.qvm.api

 1# This file is automatically generated by pyo3_stub_gen
 2# ruff: noqa: F401
 3
 4from qcs_sdk._qcs_sdk.qvm.api import AddressRequest, ExpectationRequest, MultishotMeasureRequest, MultishotRequest, MultishotResponse, WavefunctionRequest, get_version_info, get_version_info_async, get_wavefunction, get_wavefunction_async, measure_expectation, measure_expectation_async, run, run_and_measure, run_and_measure_async, run_async
 5__all__ = [
 6    "AddressRequest",
 7    "ExpectationRequest",
 8    "MultishotMeasureRequest",
 9    "MultishotRequest",
10    "MultishotResponse",
11    "WavefunctionRequest",
12    "get_version_info",
13    "get_version_info_async",
14    "get_wavefunction",
15    "get_wavefunction_async",
16    "measure_expectation",
17    "measure_expectation_async",
18    "run",
19    "run_and_measure",
20    "run_and_measure_async",
21    "run_async",
22]
class AddressRequest:

An enum encapsulating the different ways to request data back from the QVM for an address.

class AddressRequest.IncludeAll(qcs_sdk.qvm.api.AddressRequest):

Get all values for the address.

class AddressRequest.ExcludeAll(qcs_sdk.qvm.api.AddressRequest):

Exclude all values for the address.

class AddressRequest.Indices(qcs_sdk.qvm.api.AddressRequest):

A list of specific indices to get back for the address.

class ExpectationRequest:

The request body needed for a [measure_expectation] request to the QVM.

operators

A list of Pauli operators to measure.

rng_seed

An optional seed for the random number generator.

state_preparation

A Quil program defining the state.

class MultishotMeasureRequest:

The request body needed for a [run_and_measure] request to the QVM.

trials
compiled_quil

The Quil program to run.

qubits

Qubits to measure

gate_noise

Simulated gate noise for the X, Y, and Z axes.

rng_seed

An optional seed for the random number generator.

measurement_noise

Simulated measurement noise for the X, Y, and Z axes.

class MultishotRequest:

The request body needed to make a multishot [run] request to the QVM.

trials
measurement_noise

Simulated measurement noise for the X, Y, and Z axes.

rng_seed

An optional seed for the random number generator.

compiled_quil

The Quil program to run.

addresses

The memory regions to include in the response.

gate_noise

Simulated gate noise for the X, Y, and Z axes.

class MultishotResponse:

The response body returned by the QVM after a multishot [run] request.

registers

The requested readout registers and their final values for each shot.

class WavefunctionRequest:

The request body needed to make a [get_wavefunction] request to the QVM.

compiled_quil

The Quil program to run.

measurement_noise

Simulated measurement noise for the X, Y, and Z axes.

rng_seed

An optional seed for the random number generator.

gate_noise

Simulated gate noise for the X, Y, and Z axes.

def get_version_info(client, options=None):
def get_version_info_async(client, options=None):
def get_wavefunction(request, client, options=None):
def get_wavefunction_async(request, client, options=None):
def measure_expectation(request, client, options=None):
def measure_expectation_async(request, client, options=None):
def run(request, client, options=None):
def run_and_measure(request, client, options=None):
def run_and_measure_async(request, client, options=None):
def run_async(request, client, options=None):