iqm.qdmi.qiskit

Qiskit-facing integration for the IQM QDMI device library.

Module Contents

class IQMBackend(*, base_url: str | None = None, token: str | None = None, tokens_file: str | None = None, qc_id: str | None = None, qc_alias: str | None = None)[source]

Bases: mqt.core.plugins.qiskit.backend.QDMIBackend

Qiskit backend for the packaged IQM QDMI device library.

This backend loads the shared library distributed with iqm-qdmi and exposes it through MQT Core’s Qiskit-compatible QDMI backend.

Parameters:
  • base_url – Base URL of the IQM service. Defaults to IQM_BASE_URL or the standard Resonance endpoint.

  • token – Authentication token. Defaults to IQM_TOKEN or RESONANCE_API_KEY.

  • tokens_file – Path to an authentication file. Defaults to IQM_TOKENS_FILE.

  • qc_id – Optional IQM quantum computer identifier.

  • qc_alias – Optional IQM quantum computer alias.

sampler(*, default_shots: int = 1024, options: dict[str, Any] | None = None) QDMISampler[source]

Returns SamplerV2 primitive bound to this backend.

estimator(*, default_precision: float = 0.0, options: dict[str, Any] | None = None) QDMIEstimator[source]

Returns an EstimatorV2 primitive bound to this backend.