cirq.PointOptimizationSummary¶
-
class
cirq.PointOptimizationSummary(clear_span: int, clear_qubits: Iterable[cirq.ops.raw_types.QubitId], new_operations: Union[cirq.ops.raw_types.Operation, Iterable[Any]])[source]¶ A description of a local optimization to perform.
-
__init__(clear_span: int, clear_qubits: Iterable[cirq.ops.raw_types.QubitId], new_operations: Union[cirq.ops.raw_types.Operation, Iterable[Any]]) → None[source]¶ Parameters: - clear_span – Defines the range of moments to affect. Specifically, refers to the indices in range(start, start+clear_span) where start is an index known from surrounding context.
- clear_qubits – Defines the set of qubits that should be cleared with each affected moment.
- new_operations – The operations to replace the cleared out operations with.
Methods
-