Module optimizers

Source

ModulesΒ§

common_subexpression πŸ”’
The CommonSubexpressionOptimizer: a meta-transformer which factors common subexpressions out of a Circuit into intermediate witnesses, reducing the total number of opcodes.
general πŸ”’
redundant_range πŸ”’
The redundant range constraint optimization pass aims to remove any BlackBoxFunc::Range opcodes which doesn’t result in additional restrictions on the values of witnesses.

FunctionsΒ§

optimize
Applies backend independent optimizations to a Circuit.
optimize_internal πŸ”’
Applies backend independent optimizations to a Circuit.