cirq.ConvertToIonGates

THIS CLASS IS DEPRECATED.

IT WILL BE REMOVED IN cirq v0.16.

Use cirq.optimize_for_target_gateset(circuit, gateset=cirq_aqt.aqt_device.AQTTargetGateset()).

Attempts to convert non-native gates into IonGates.

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

Methods

convert_circuit

View source

convert_one

View source

Convert a single (one- or two-qubit) operation into ion trap native gates.

Args
op The gate operation to be converted.

Returns
The desired operations implemented with ion trap gates.

Raises
TypeError If the operation cannot be converted.