-
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
Adds unitary testing for routed circuits #5846
Adds unitary testing for routed circuits #5846
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed offline, let's change the API of the testing method (and router implementation) to take an actual
and expected
circuit with the same set of qubits, along with a qubit_map
that maps the initial qubits of actual
to it's final qubit mapping. As a fallback, if the qubit_map
is not specified, the method can potentially try to construct a qubit map by looking at the swaps operations in the actual
circuit.
@tanujkhattar I've made the changes we discussed without the fallback strategy as a v1. I can follow up with that with another PR once we have a fully functioning basic routing implementation pushed to Cirq. |
…igani/Cirq into routing-unitary_testing syncing with master
Adds utilitiy functions that tests whether two circuits define the same unitary up to permutation of qubits.
Adds utilitiy functions that tests whether two circuits define the same unitary up to permutation of qubits.
Adds utilitiy functions that tests whether two circuits define the same unitary up to permutation of qubits.