global_fold¶
- global_fold(dag, scale)[source]¶
Apply
GlobalFoldPassand return(folded_dag, effective_scale).Mutates
dagin place (deepcopy first if the original is needed).- Return type:
Apply GlobalFoldPass and return (folded_dag, effective_scale).
Mutates dag in place (deepcopy first if the original is needed).