iqm.qiskit_iqm.examples.transpile_example.transpile_example

iqm.qiskit_iqm.examples.transpile_example.transpile_example#

iqm.qiskit_iqm.examples.transpile_example.transpile_example(server_url: str, *, quantum_computer: str | None = None) tuple[QuantumCircuit, dict[str, int]]#

Run a GHZ circuit transpiled using the Qiskit transpile function.

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.

Returns:

transpiled circuit, a mapping of bitstrings representing qubit measurement results to counts for each result

Return type:

tuple[QuantumCircuit, dict[str, int]]