New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug report] sym_external_fluxes() doesn't work for the system of coupled fluxonia #139
Comments
Many thanks for reporting this bug, and sorry for replying late. We confirm we can reproduce it, and the fix will be released with the updated code release soon. |
…ctable as the order is not preserved.
Thanks again for reporting the bug. About your additional comments, it seemed like the external fluxes were getting swapped with every run. I was able to track the issue to how we were finding the closure branches, where I used Also, just a suggestion: as Sympy uses its own printing internally, its preferable to call |
Documentation check
If the bug manifests in unexpected behavior (as opposed to a crash), confirm that you have consulted the
API documentation
Describe the bug
I make a system of capacitively coupled fluxoniums and try to see how it assigned external fluxes:
However, it gives an error:
Expected behavior
No errors
To Reproduce
See above
OS and version used (please complete the following information):
Additional context
If I try to output symbolic Hamiltonian, it randomly gives different results from just repeated execution of the same code. In particular, the command
randomly gives either
or
One can see that it rearranges external fluxes. I assume that by itself it should not be a problem if it would be possible to know in advance which flux is assigned to which loop. That's why I tried to use sym_external_fluxes(), which doesn't work
The text was updated successfully, but these errors were encountered: