qat.purr.compiler.runtime module
- class CalibrationWithArgs(calibration, args=None)
Bases:
QuantumExecutableBlock
Wrapper for a calibration and argument combination.
- run(runtime)
- class QuantumExecutableBlock
Bases:
object
Generic executable block that can be run on a quantum runtime.
- run(runtime)
- class QuantumRuntime(execution_engine, metrics=None)
Bases:
MetricsMixin
- execute(instructions, results_format=None, repeats=None, error_mitigation=None)
Executes these instructions against the current engine and returns the results.
- property model
- run_calibration(calibrations)
Make ‘calibration’ distinct from ‘quantum executable’ for usabilities sake.
- run_quantum_executable(executables)
- class RemoteCalibration
Bases:
object
Base class for any remote calibration executions. These are far more complicated blocks than purely a string of instructions and include nested executions and rely on classic Python code.
- arguments_type()
Returns the type of this calibrations arguments.
- Return type:
type
- run(model, runtime, args)
- execute_instructions(hardware, instructions, config=None, executable_blocks=None, repeats=None, metrics=None, *args, **kwargs)
- get_builder(model)
- Return type:
- get_model(hardware)
- get_runtime(hardware)