iqm.qiskit_iqm.iqm_provider.IQMProvider

iqm.qiskit_iqm.iqm_provider.IQMProvider#

class iqm.qiskit_iqm.iqm_provider.IQMProvider(url: str, **user_auth_args)#

Bases: object

Provider for IQM backends.

IQMProvider connects to a quantum computer through an IQM server. If the server requires user authentication, you can provide it either using environment variables, or as keyword arguments to IQMProvider. The user authentication kwargs are passed through to IQMClient as is, and are documented there.

Parameters:

url (str) – URL of the IQM server (e.g. “https://cocos.resonance.meetiqm.com/garnet”)

Methods

get_backend([name, calibration_set_id, ...])

IQMBackend instance associated with this provider.

get_backend(name: str | None = None, calibration_set_id: UUID | None = None, *, use_metrics: bool = False) IQMBackend#

IQMBackend instance associated with this provider.

Parameters:
  • name (str | None) – Optional name of a facade backend to request, see IQMFacadeBackend.

  • calibration_set_id (UUID | None) – ID of the calibration set to be used with the backend. Affects both the transpilation target and the circuit execution. If None, the server default calibration set will be used.

  • use_metrics (bool) – If True, the backend will provide calibration data and related quality metrics to the transpilation target to improve the transpilation. The default value is set to False until quality metrics become available on the Resonance API.

Returns:

Backend instance for connecting to a quantum computer.

Return type:

IQMBackend