cirq_google.transformers.known_2q_op_to_sycamore_operations
Synthesizes a known two-qubit operation using cirq_google.SYC
+ single qubit rotations.
cirq_google.transformers.known_2q_op_to_sycamore_operations(
op: cirq.Operation
) -> Optional[cirq.OP_TREE]
This function dispatches to various known gate decompositions based on gate type. Currently,
the following gates are known:
1. Adjacent <a href="https://quantumai.google/reference/python/cirq/SWAP"><code>cirq.SWAP</code></a> and <a href="https://quantumai.google/reference/python/cirq/ZPowGate"><code>cirq.ZPowGate</code></a> wrapped in a circuit operation of length 2.
2. <a href="https://quantumai.google/reference/python/cirq/PhasedISwapPowGate"><code>cirq.PhasedISwapPowGate</code></a> with exponent = 1 or phase_exponent = 0.25.
3. <a href="https://quantumai.google/reference/python/cirq/SWAP"><code>cirq.SWAP</code></a>, <a href="https://quantumai.google/reference/python/cirq/ISWAP"><code>cirq.ISWAP</code></a>.
4. <a href="https://quantumai.google/reference/python/cirq/CNotPowGate"><code>cirq.CNotPowGate</code></a>, <a href="https://quantumai.google/reference/python/cirq/CZPowGate"><code>cirq.CZPowGate</code></a>, <a href="https://quantumai.google/reference/python/cirq/ZZPowGate"><code>cirq.ZZPowGate</code></a>.
Args |
op
|
Operation to decompose.
|
Returns |
- A
cirq.OP_TREE that implements the given known operation using only cirq_google.SYC +
single qubit rotations OR
- None if
op is not a known operation.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-27 UTC."],[],[]]