qat.qpus.RemoteQPU

class qat.qpus.RemoteQPU(port, ip: str = None, ssl_cert: str = None, ssl_key: str = None, check_server_cert: bool = False, connection=None, plugins=None)

RemoteQPUs are built from a port and an ip address. They behave similarly to a local QPU Handler but also allow adjunction of local Plugins. The information flow inside a RemoteQPU is comparable to the information flow inside a QPUHandler:

  • when compiling a batch the batch goes through all the local plugins and is sent to the connection. The resulting batch is then returned to the user

  • when submitting, the batch is compiled using the local plugins and then forwarded through the connection. The results are then post processed by the local Plugins.

Parameters
  • port (int) – port number of the QPU server

  • ip (str, optional) – QPU server IP Default: None

  • ssl_cert (str, optional) – path to the client SSL certificate Default: None

  • ssl_key (str, optional) – path to the client SSL key, use SSL if provided Default: None

  • check_server_cert (bool, optional) – check the server certificate if True and in SSL mode

  • connection (optional Thrift connection) – for internal use

  • plugins (list<qat.plugins.AbstractPlugins>) – a list of plugins. Optional. Defaults to None.