cirq.google.ConvertToSqrtIswapGates

class cirq.google.ConvertToSqrtIswapGates(ignore_failures=False)[source]

Attempts to convert gates into ISWAP**-0.5 gates.

Since we have Z rotations and arbitrary XY rotations, we
can rely on cirq decomposition for one qubit gates and
need to only specify special decompositions for two qubit gates.
Currently natively specified gates are CZPowGate, ISwapPowGate,
and FSimGate. This will also support gates that decompose into
the above gates.
__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

convert(op)

optimization_at(circuit, index, op)

Describes how to change operations near the given location.

optimize_circuit(circuit)