qcs_sdk.qvm.api

class ExpectationRequest:

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

operators

A list of Pauli operators to measure.

state_preparation

A Quil program defining the state.

rng_seed

An optional seed for the random number generator.

class MultishotMeasureRequest:

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

measurement_noise

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

qubits

Qubits to measure

rng_seed

An optional seed for the random number generator.

trials
compiled_quil

The Quil program to run.

gate_noise

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

class MultishotRequest:

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

compiled_quil

The Quil program to run.

gate_noise

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

trials
addresses

The memory regions to include in the response.

rng_seed

An optional seed for the random number generator.

measurement_noise

Simulated measurement 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.

gate_noise

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

rng_seed

An optional seed for the random number generator.

class AddressRequest:

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

class AddressRequest.IncludeAll(AddressRequest):
class AddressRequest.ExcludeAll(AddressRequest):
class AddressRequest.Indices(AddressRequest):
def get_version_info(client, options=None):
def get_version_info_async(client, options=None):
def run(request, client, options=None):
def run_async(request, client, options=None):
def run_and_measure(request, client, options=None):
def run_and_measure_async(request, client, options=None):
def measure_expectation(request, client, options=None):
def measure_expectation_async(request, client, options=None):
def get_wavefunction(request, client, options=None):
def get_wavefunction_async(request, client, options=None):