mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-02-23 15:23:09 +00:00
Disallow degree quotient_degree_factor = 1
This commit is contained in:
parent
dd7808e3e6
commit
c6a332200e
@ -651,7 +651,7 @@ impl<F: RichField + Extendable<D>, const D: usize> CircuitBuilder<F, D> {
|
||||
|
||||
// `quotient_degree_factor` has to be between `max_filtered_constraint_degree-1` and `1<<rate_bits`.
|
||||
// We find the value that minimizes `num_partial_product + quotient_degree_factor`.
|
||||
let min_quotient_degree_factor = max_filtered_constraint_degree - 1;
|
||||
let min_quotient_degree_factor = (max_filtered_constraint_degree - 1).max(2);
|
||||
let max_quotient_degree_factor = self.config.max_quotient_degree_factor.min(1 << rate_bits);
|
||||
let quotient_degree_factor = (min_quotient_degree_factor..=max_quotient_degree_factor)
|
||||
.min_by_key(|&q| num_partial_products(self.config.num_routed_wires, q) + q)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user