Skip to content

Conversation

@ShangGaogit
Copy link
Collaborator

@ShangGaogit ShangGaogit commented Sep 4, 2025

Summary

This PR fixes two bugs:

  1. Several annotations in graph_mpc_fluxonium_1d.py were incorrect. They are of type list, not int.
  2. In graph.py, when trying to catch different types of exceptions, the syntax was incorrect. In Python, we can't use and to combine exception types in an except clause. The correct syntax should be except (KeyError, IndexError): with parentheses and commas.

Testing

Jupyter notebook scripts such as fluxonium_mpcoupling_6q_x.ipynb still work.

@ShangGaogit ShangGaogit marked this pull request as draft September 4, 2025 06:52
@ShangGaogit ShangGaogit marked this pull request as ready for review September 4, 2025 07:14
@allegro0132 allegro0132 merged commit 9672869 into main Sep 4, 2025
2 of 4 checks passed
@ShangGaogit ShangGaogit deleted the shang/bug-fix branch September 7, 2025 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants