forked from quantumlib/Cirq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
cirq.SqrtIswapTargetGateset
for (parameterized & non-parameteri…
…zed) compilation to sqrt iswaps. (quantumlib#5025) * Move parameterized decomposition to analytical decomposers and split PR to remove deprecations * Add equality tests
- Loading branch information
1 parent
80fbfa2
commit 8435378
Showing
11 changed files
with
793 additions
and
0 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
20 changes: 20 additions & 0 deletions
20
cirq-core/cirq/protocols/json_test_data/SqrtIswapTargetGateset.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[ | ||
{ | ||
"cirq_type": "SqrtIswapTargetGateset", | ||
"atol": 1e-08, | ||
"required_sqrt_iswap_count": null, | ||
"use_sqrt_iswap_inv": false | ||
}, | ||
{ | ||
"cirq_type": "SqrtIswapTargetGateset", | ||
"atol": 1e-08, | ||
"required_sqrt_iswap_count": 1, | ||
"use_sqrt_iswap_inv": false | ||
}, | ||
{ | ||
"cirq_type": "SqrtIswapTargetGateset", | ||
"atol": 1e-06, | ||
"required_sqrt_iswap_count": 2, | ||
"use_sqrt_iswap_inv": true | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
cirq-core/cirq/protocols/json_test_data/SqrtIswapTargetGateset.repr
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
cirq.SqrtIswapTargetGateset( | ||
atol=1e-08, required_sqrt_iswap_count=None, use_sqrt_iswap_inv=False | ||
), | ||
cirq.SqrtIswapTargetGateset(atol=1e-08, required_sqrt_iswap_count=1, use_sqrt_iswap_inv=False), | ||
cirq.SqrtIswapTargetGateset(atol=1e-06, required_sqrt_iswap_count=2, use_sqrt_iswap_inv=True), | ||
] |
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
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
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
Oops, something went wrong.