You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now it uses 4 sqrtiswaps to support arbitrary angle. For a plain ol' SWAP (common for routing qubits around) you should be able to get away with 3
yieldcirq.Y(a) **0.5yieldcirq.Y(b) **0.5yieldSQRT_ISWAP(a, b)
yieldcirq.Y(a) **-0.5yieldcirq.Y(b) **-0.5yieldSQRT_ISWAP(a, b)
yieldcirq.X(a) **-0.5yieldcirq.X(b) **-0.5yieldSQRT_ISWAP(a, b)
yieldcirq.X(a) **0.5yieldcirq.X(b) **0.5
* Better decomposition of SWAP into ISWAP ** 0.5
- Shortens length from 13 moments to 7 moments.
- Decomposition courtesy of @john6060 via @mpharrigan .
Fixes#2635
Right now it uses 4 sqrtiswaps to support arbitrary angle. For a plain ol'
SWAP
(common for routing qubits around) you should be able to get away with 3should do it.
cc @dstrain115 @john6060 @Strilanc
The text was updated successfully, but these errors were encountered: