cirq.TwoQubitGateTabulation
A 2-qubit gate compiler based on precomputing/tabulating gate products.
cirq.TwoQubitGateTabulation(
base_gate: np.ndarray,
kak_vecs: np.ndarray,
single_qubit_gates: Sequence[Sequence[_SingleQubitGatePair]],
max_expected_infidelity: float,
summary: str,
missed_points: Tuple[np.ndarray, ...]
)
Attributes |
base_gate
|
Dataclass field
|
kak_vecs
|
Dataclass field
|
single_qubit_gates
|
Dataclass field
|
max_expected_infidelity
|
Dataclass field
|
summary
|
Dataclass field
|
missed_points
|
Dataclass field
|
Methods
compile_two_qubit_gate
View source
compile_two_qubit_gate(
unitary: np.ndarray
) -> cirq.TwoQubitGateTabulationResult
Compute single qubit gates required to compile a desired unitary.
Given a desired unitary U, this computes the sequence of 1-local gates
\(k_j\) such that the product
\(k_{n-1} A k_{n-2} A ... k_1 A k_0\)
is close to U. Here A is the base_gate of the tabulation.
Args |
unitary
|
Unitary (U above) to compile.
|
Returns |
A TwoQubitGateTabulationResult object encoding the required local
unitaries and resulting product above.
|
__eq__
View source
__eq__(
other
)
Return self==value.
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.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "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."],[],[]]