iqm.qiskit_iqm.examples.bell_measure.bell_measure

Contents

iqm.qiskit_iqm.examples.bell_measure.bell_measure#

iqm.qiskit_iqm.examples.bell_measure.bell_measure(server_url: str, *, quantum_computer: str | None = None, token: str | None = None, shots: int = 1000) dict[str, int]#

Execute a quantum circuit that prepares and measures a generalized Bell (aka GHZ) state.

Parameters:
  • server_url (str) – URL of the IQM Server used for execution (e.g. “https://resonance.iqm.tech/”).

  • quantum_computer (str | None) – ID or alias of the quantum computer to connect to, if the IQM Server instance controls more than one (e.g. “garnet”). None means connect to the default one.

  • token (str | None) – API token for authentication. If not given, uses IQM_TOKEN.

  • shots (int) – Requested number of shots.

Returns:

Mapping of bitstrings representing qubit measurement results to counts for each result.

Return type:

dict[str, int]