![]() |
THIS CLASS IS DEPRECATED.
cirq_google.optimizers.GateTabulation(
*args, **kwargs
)
IT WILL BE REMOVED IN cirq v0.16
.
Use cirq.TwoQubitGateTabulation instead.
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
compile_two_qubit_gate(
unitary: np.ndarray
) -> 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__
__eq__(
other
)
Return self==value.