-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Shannon Decomposition error when synthesizing the GHZ unitary matrix #6725
Comments
If I print the unitary for the
Which explains the error. |
@uzzzzzzz Can you kindly have a look please? I saw that you made the original commit for You can try both cases for reproducibility:
I understand why the tests have passed before, as the code runs with |
So, I implemented this natively on my side, and was able to get past the I tried the following circuit, which is one of the cases that doesn't return the correct value (whilst for randomly generated unitaries, it works fine). A 4 qubit circuit with CX(0, 1) and CX(0, 2). |
related to #6666 |
Description of the issue
Greetings there,
Hope all are well. I was trying the
quantum_shannon_decomposition()
function, and noticed that it doesn't work for the GHZ unitary matrix.How to reproduce the issue
Cirq version
cirq == 1.4.1
The text was updated successfully, but these errors were encountered: