Polynomial recent-wire offsets -- definitions #
Nested transition wrappers refer to child outputs whose distance from the current frontier is a fixed polynomial in the tableau horizon. These helpers evaluate that polynomial into one scratch value, use the dynamic-offset gate emitter, and restore every owned register.
noncomputable def
Complexity.CircuitUnrolling.Serializer.DirectGenerator.preparePolynomialOffset
(polynomial : Polynomial ℕ)
(extra : ℕ := 0)
:
Evaluate polynomial(T) + extra into the dynamic-offset register.
Equations
- One or more equations did not get rendered due to their size.
Instances For
noncomputable def
Complexity.CircuitUnrolling.Serializer.DirectGenerator.emitPolynomialRecentGate
(polynomial : Polynomial ℕ)
(extra : ℕ)
(op : AndOrOp)
(negated₀ negated₁ : Bool)
(fixedOffset₁ : ℕ)
:
Emit one raw gate from a polynomial recent offset and a fixed recent offset, then clear the evaluated polynomial value.
Equations
- One or more equations did not get rendered due to their size.