strangeworks.rigetti package#

Submodules#

strangeworks.rigetti.qc module#

class strangeworks.rigetti.qc.QuantumComputer(ogc: QuantumComputer, res: Resource, as_qvm: bool)#

Bases: QuantumComputer

program_to_json(prg: Program) dict#
run(program, circuit_type=None, shots: int = 1) StrangeworksExecutionResult#

Run a quil executable. All parameters in the executable must have values applied using Program#write_memory.

Parameters:

executable – The program to run, previously compiled as needed for its target QAM.

Returns:

execution result including readout data.

strangeworks.rigetti.result module#

class strangeworks.rigetti.result.StrangeworksExecutionResult(executable: EncryptedProgram | Program | None = None, readout_data: Mapping[str, ndarray | None] | None = None, strangeworks_process_time: int | None = None, compilation_time: int | None = None, execution_time: int | None = None, native_quil_to_executable_time: int | None = None, quil_compile_time: int | None = None)#

Bases: QAMExecutionResult

executable: EncryptedProgram | Program#

The executable corresponding to this result.

classmethod from_json(payload: dict) StrangeworksExecutionResult#
readout_data: Mapping[str, ndarray | None]#

Readout data returned from the QAM, keyed on the name of the readout register or post-processing node.

strangeworks.rigetti.strange module#

strangeworks.rigetti.strange.execution_from_result(response: dict) QAMExecutionResult#
strangeworks.rigetti.strange.get_qc(name: str, resource_slug: str, as_qvm: bool | None = None, noisy: bool | None = None, compiler_timeout: float = 10.0, execution_timeout: float = 10.0, client_configuration: QCSClientConfiguration | None = None) QuantumComputer#
strangeworks.rigetti.strange.list_quantum_computers() List[str]#

Module contents#

Strangeworks Rigetti SDK