cirq.ConvertToIonGates

class cirq.ConvertToIonGates(ignore_failures: bool = False)[source]

Attempts to convert non-native gates into IonGates.

__init__(ignore_failures: bool = 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

convert_circuit(circuit)

convert_one(op)

Convert a single (one- or two-qubit) operation