QEDPolicy¶
- class guppyft.code.toy_k2.encode.QEDPolicy(threshold: int = 1, costs: OperationCosts = <factory>)[source]¶
Policy to determine when QED cycles are injected.
Each logical block accumulates a cost based on costs. Once a block’s accumulated cost reaches threshold a QED cycle is performed on that block and its counter is reset.
- costs¶
See OperationCosts.
- __eq__(other)¶
Return self==value.
- __init__(threshold: int = 1, costs: OperationCosts = <factory>) None¶
- __repr__()¶
Return repr(self).