Attempts to convert gates into native Atom gates.First, checks if the given operation is already a native neutral atomoperation.Second, checks if the operation has a known unitary. If so, and the gateis a 1-qubit or 2-qubit gate, then performs circuit synthesis of theoperation. The 2-qubit gates are decomposed using CZ gates becauseCZ gates are the highest fidelity 2-qubit gates for neutral atoms.
Third, attempts to
cirq.decomposeto the operation.Fourth, if ignore_failures is set, gives up and returns the gate unchanged.Otherwise raises a TypeError.
__init__(ignore_failures=False) → None¶
ignore_failures – If set, gates that fail to convert are forwarded unchanged. If not set, conversion failures raise a TypeError.