qcs_sdk.qpu.translation

class TranslationOptions:
def use_backend_v1(self, /):
def use_backend_v2(self, /):
def use_q_ctrl(self, q_ctrl=Ellipsis, /):
def v1():
def v2( *, prepend_default_calibrations=None, passive_reset_delay_seconds=None, allow_unchecked_pointer_arithmetic=None, allow_frame_redefinition=None):
def encode_as_protobuf(self, /):
backend
class TranslationResult:

The result of a call to [translate] which provides information about the translated program.

ro_sources

The memory locations used for readout.

program

The translated program.

class TranslationBackend:
class QCtrl:
class TranslationError(builtins.RuntimeError):

Unspecified run-time error.

def get_quilt_calibrations(quantum_processor_id, client=None, timeout=None):

Query the QCS API for Quil-T calibrations. If None, the default timeout used is 10 seconds.

def get_quilt_calibrations_async(quantum_processor_id, client=None, timeout=None):

Query the QCS API for Quil-T calibrations. If None, the default timeout used is 10 seconds.

def translate( native_quil, num_shots, quantum_processor_id, client=None, translation_options=None):

Translates a native Quil program into an executable

Errors

Returns a [TranslationError] if translation fails.

def translate_async( native_quil, num_shots, quantum_processor_id, client=None, translation_options=None):

Translates a native Quil program into an executable

Errors

Returns a [TranslationError] if translation fails.