cirq.kak_canonicalize_vector
Canonicalizes an XX/YY/ZZ interaction by swap/negate/shift-ing axes.
cirq.kak_canonicalize_vector(
x: float, y: float, z: float, atol: float = 1e-09
) -> cirq.KakDecomposition
Args |
x
|
The strength of the XX interaction.
|
y
|
The strength of the YY interaction.
|
z
|
The strength of the ZZ interaction.
|
atol
|
How close x2 must be to π/4 to guarantee z2 >= 0
|
Returns |
The canonicalized decomposition, with vector coefficients (x2, y2, z2)
|
satisfying
|
0 ≤ abs(z2) ≤ y2 ≤ x2 ≤ π/4
if x2 = π/4, z2 >= 0
Guarantees that the implied output matrix:
g · (a1 ⊗ a0) · exp(i·(x2·XX + y2·YY + z2·ZZ)) · (b1 ⊗ b0)
is approximately equal to the implied input matrix:
exp(i·(x·XX + y·YY + z·ZZ))
|
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."],[],[]]