View source on GitHub |
A description of a local optimization to perform.
cirq.PointOptimizationSummary(
clear_span: int,
clear_qubits: Iterable['cirq.Qid'],
new_operations: 'cirq.OP_TREE',
preserve_moments: bool = False
) -> None
Used in the notebooks
Used in the tutorials |
---|
Args | |
---|---|
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. |
preserve_moments
|
If set, cirq.Moment instances within
new_operations will be preserved exactly. Normally the
operations would be repacked to fit better into the
target space, which may move them between moments.
Please be advised that a PointOptimizer consuming this
summary will flatten operations no matter what,
see https://github.com/quantumlib/Cirq/issues/2406.
|
Methods
__eq__
__eq__(
other
)
Return self==value.
__ne__
__ne__(
other
)
Return self!=value.