def _non_local_part(
    q0: cirq.Qid,
    q1: cirq.Qid,
    interaction_coefficients: tuple[float, float, float],
    atol: float = 1e-8,
):
    """Yields non-local operation of KAK decomposition."""

    x, y, z = interaction_coefficients

    return [
        _parity_interaction(q0, q1, x, atol),
        _parity_interaction(q0, q1, y, atol, ops.Z**-0.5),
        _parity_interaction(q0, q1, z, atol, ops.Y**0.5),
    ]
Yields non-local operation of KAK decomposition.
cirq-core/cirq/transformers/analytical_decompositions/two_qubit_to_ms.py