A 2-qubit gate compiler based on precomputing/tabulating gate products.

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



View source

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.

unitary Unitary (U above) to compile.

A TwoQubitGateCompilation object encoding the required local unitaries and resulting product above.


View source

Return self==value.