cirq.optimizers.map_operations_and_unroll

Applies local transformations via cirq.map_operations & unrolls intermediate circuit ops.

See cirq.map_operations and cirq.unroll_circuit_op for more details.

circuit Input circuit to apply the transformations on. The input circuit is not mutated.
map_func Mapping function from (cirq.Operation, moment_index) to a cirq.OP_TREE.

Copy of input circuit with mapped operations, unrolled in a moment preserving way.