Open cdbf1 opened 2 months ago
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 97.82%. Comparing base (
6e19d0d
) to head (acebb77
). Report is 13 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Currently it is not possible to determine if pairs of moments can commute which may be useful for when collections of operations commute as a group but not individually
For instance a pair of single qubit Z gates commute with a two qubit RXX gate together but not separately.
This PR fixes this challenge by decomposing two moments into operations that act on disjoint sets of qubits and then testing whether their unitary representations on these sets of qubits commute.
Closes #6659