-
Notifications
You must be signed in to change notification settings - Fork 53
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
Incorrect on_classical_vals
overrides for non classical bloqs
#1515
Comments
Do you know where the non-trivial phases are being introduced? Presumably if you write a decomposition of e.g. ModDbl using only classical operations (whose matrices only have |
fyi -- |
Yeah, the approx cswap is clearer. It's got "approx" in the name, so it's less surprising that there are phases. The other ones are surprising to me |
cmod_add_k_small and moddbl_small are because their constructions assume correct range ... that they assume they will be called on states |
is it obvious how those corner cases lead to phases in the tensors? |
I looked at the failing tests again, and I realized that the arithmetic bloqs fail because the inputs outside range (i.e. Only the |
there are no phases except in |
ok, that makes way more sense |
I ran into this while implementing #1514. The tensors of these bloq examples seem to have non-trivial phases, which makes them non-classical. The following bloq examples fail in #1514 (I've restricted to bloqs with up to 9 qubits):
The text was updated successfully, but these errors were encountered: