# cirq.ConvertToNeutralAtomGates¶

class cirq.ConvertToNeutralAtomGates(ignore_failures=False)[source]

Attempts to convert gates into native Atom gates.

First, checks if the given operation is already a native neutral atom
operation.
Second, checks if the operation has a known unitary. If so, and the gate
is a 1-qubit or 2-qubit gate, then performs circuit synthesis of the
operation. The 2-qubit gates are decomposed using CZ gates because
CZ gates are the highest fidelity 2-qubit gates for neutral atoms.

Third, attempts to cirq.decompose to the operation.

Fourth, if ignore_failures is set, gives up and returns the gate unchanged.
Otherwise raises a TypeError.
__init__(ignore_failures=False) → None[source]
Parameters

ignore_failures – If set, gates that fail to convert are forwarded unchanged. If not set, conversion failures raise a TypeError.

Methods

 optimization_at(circuit, index, op) Describes how to change operations near the given location. optimize_circuit(circuit)