documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Fixes `KeyError` when transpling to a QPU in Krylov tutorial

Open henryzou50 opened this issue 1 month ago • 3 comments

Resolves the issue of KeyError: (0, 14) when doing twoq_gate_err = target[op_name][q].error as we transpile to a QPU. The fix here is to add the if_else instruction to the backend, as the op_namecan be if_else. With this fix, the notebook will run successfully with the latest versions of the requirements.

henryzou50 avatar Nov 14 '25 21:11 henryzou50

One or more of the following people are relevant to this code:

  • @annaliese-estes
  • @miamico

qiskit-bot avatar Nov 14 '25 21:11 qiskit-bot

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

BTW there are some further comment on this tutorial as part of this issue #4265

miamico avatar Nov 18 '25 02:11 miamico