qat.engines.native module

class ConnectionMixin

Bases: ABC

Specifies a connection requirement for a NativeEngine.

Engines that execute on live hardware or a remote simulator might require a connection to the target to be established. This class is used to mix in connection capabilities.

abstract connect()
abstract disconnect()
abstract property is_connected: bool
class NativeEngine

Bases: ABC

NativeEngine acts as an interface between some target machine and an executable. They are used to connect to the target machine (if applicable), and execute and return the results.

abstract execute(package)

Executes a compiled instruction executable and returns results that are processed according to the acquires.

The engine is expected to return the results as a dictionary with the output variables as keys. This may be changed in future iterations.

Return type:

Dict[str, ndarray]