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

Bad error message for bad Clifford generators #70

Open
ecpeterson opened this issue Feb 8, 2019 · 0 comments
Open

Bad error message for bad Clifford generators #70

ecpeterson opened this issue Feb 8, 2019 · 0 comments
Labels
good first issue Good for newcomers

Comments

@ecpeterson
Copy link
Contributor

Generating a God table works when the generators are Clifford elements, but will later cause failure if those generators only generate a subgroup of the Clifford group.

Example we ran into:

{ "depth": 2, "qubits": 1, "gateset": ["PHASE(pi) 0", "H 0"] }

Here, PHASE(pi) is not a generator of the Clifford group. It should be PHASE(pi/2) or S to generate C_1.

Putting the above in a hash table and running (rb-post nil ht nil nil) repeatedly causes failure. It should fail! But it needs a better error message/detected earlier.

Possible solution: Return an error "No decomposition exists." or the like.

Reported by @stylewarning .

@ecpeterson ecpeterson added the good first issue Good for newcomers label Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant