Rewriter
oqd_compiler_infrastructure.rewriter
¶
RewriterBase
¶
Bases: PassBase
This class represents a wrapper for passes to compose and modify their logic without affecting the internals of a pass.
Acknowledgement
This code was inspired by SynbolicUtils.jl, Liang.jl.
Source code in oqd-compiler-infrastructure/src/oqd_compiler_infrastructure/rewriter.py
Chain
¶
Bases: RewriterBase
This class represents a composite pass where the passes are applied sequentially.
Acknowledgement
This code was inspired by SymbolicUtils.jl, Liang.jl.
Source code in oqd-compiler-infrastructure/src/oqd_compiler_infrastructure/rewriter.py
FixedPoint
¶
Bases: RewriterBase
This class represents a wrapped pass that is applied until the object/IR converges to a fixed point or reaches a maximum iteration count.
Acknowledgement
This code was inspired by SymbolicUtils.jl, Liang.jl.