QEDPolicy¶
- class guppyft.code.toy_k2.encode.QEDPolicy(threshold=1, costs=<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.
- threshold¶
Threshold at which a QED cycle is triggered.
- costs¶
See OperationCosts.
- __init__(threshold=1, costs=<factory>)¶