iqm.station_control.client.utils.init_station_control

iqm.station_control.client.utils.init_station_control#

init_station_control(root_url, get_token_callback=None, **kwargs)#

Initialize a new station control instance connected to the given remote.

Client implementation is selected automatically based on the remote station: if the remote station is running the IQM Server software stack, then the IQM Server client implementation (with a limited feature set) is chosen. If the remote station is running the SC software stack, then the Station Control client implementation (with the full feature set) is chosen.

Parameters:
  • root_url (str) – Remote station control service URL. For IQM Server remotes, this is the “Quantum Computer URL” value from the web dashboard.

  • get_token_callback (Callable[[], str] | None) – A callback function that returns a token (str) which will be passed in Authorization header in all requests.

Return type:

StationControlInterface