|View source on GitHub|
Given two unitaries with the same interaction coefficients but different
cirq.google.optimizers.convert_to_sycamore_gates.find_local_equivalents( unitary1: np.ndarray, unitary2: np.ndarray )
local unitary rotations determine the local unitaries that turns one type of gate into another.
1) perform the kak decomp on each unitary and confirm interaction terms are equivalent 2) identify the elements of SU(2) to transform unitary2 into unitary1
||unitary that we target|
||unitary that we transform the local gates to the target|
|four 2x2 unitaries. first two are pre-rotations last two are post rotations.|