hooks.pre_execution¶
- qiskit_rigetti.hooks.pre_execution.PreExecutionHook¶
Represents a function that can transform a Quil program just before execution.
- qiskit_rigetti.hooks.pre_execution.enable_active_reset(quil: pyquil.Program)¶
Enable active reset for all qubits.
See: https://github.com/quil-lang/quil/blob/master/spec/Quil.md#state-reset for more information.
- Parameters
quil – Quil program to transform.
- Returns
Copy of the input program, with active reset enabled.