-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve flaky mirror QV circuit test (#2127)
* simplify mirror QV circuit generation Co-authored-by: Misty Wahl <[email protected]> * ensure `mypy` knows qv_circuit is `cirq.Circuit` Co-authored-by: Misty Wahl <[email protected]> * test for approximate equality in equal circuits this is needed since the `cirq.inverse` function can introduce tiny deviations (on the order of 1e-15) when computing the inverses of matrix gates. exact equality is awesome, but some numerical inacuracy here seems inevitable --------- Co-authored-by: Misty Wahl <[email protected]>
- Loading branch information
1 parent
0a9c202
commit d0fd198
Showing
2 changed files
with
8 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters