# cirq.PointOptimizer¶

class cirq.PointOptimizer(post_clean_up: Callable[Sequence[cirq.ops.raw_types.Operation], Union[cirq.ops.raw_types.Operation, Iterable[Any]]] = <function PointOptimizer.<lambda>>)[source]

Makes circuit improvements focused on a specific location.

__init__(post_clean_up: Callable[Sequence[cirq.ops.raw_types.Operation], Union[cirq.ops.raw_types.Operation, Iterable[Any]]] = <function PointOptimizer.<lambda>>) → None[source]
Parameters: post_clean_up – This function is called on each set of optimized operations before they are put into the circuit to replace the old operations.

Methods

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