Skip to content
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

-cs, -ss option can cause JSON creation to fail #54

Open
zmorrell opened this issue Jun 18, 2020 · 0 comments
Open

-cs, -ss option can cause JSON creation to fail #54

zmorrell opened this issue Jun 18, 2020 · 0 comments

Comments

@zmorrell
Copy link

When using the following command:

./dwig.py -pp -cs 0,4 0,5 1,4 1,5 const -cp 0.2 -f -0.5

dwig will crash, stating "a spin pair must be x,y integers". The parser is attempting to take an arbitrary number of qubit pairs, and is unable to differentiate the "const" subparser. This can easily be worked around by swapping the order of the -pp and -cs arguments, as shown:

./dwig.py -cs 0,4 0,5 1,4 1,5 -pp const -cp 0.2 -f -0.5

The cause of this issue is in the argument parsing, and there is not an immediately obvious fix that would allow passing arbitrary coupler or spin sets.

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

No branches or pull requests

1 participant