qat.engines.waveform_v1.echo module

class EchoEngine

Bases: NativeEngine

The EchoEngine is a minimal execution engine primarily used for testing the compilation pipeline.

It is not connected to any target machine such as live hardware or a simulator, and just simply “echos” back the buffers. Currently only accepts WaveformV1Executables, but this may be changed in the future.

execute(package)

Execute a WaveformV1Executable.

Parameters:

package (WaveformV1Executable) – The compiled executable.

Returns:

Execution results.

Return type:

dict[str, np.ndarray]

process_readout(readout, shots, mode)

Processes a single readout into the expected format for a given acquire mode.

For AcquireMode.RAW, this means repeating the readout for a given number of shots. The AcquireMode.INTEGRATOR emulates the averaging on hardware by taking the mean; note that this does not currently include down scaling. Finally, the AcquireMode.SCOPE simply returns the readout back in its current form.