You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the split of the artihmetic in circuit builders into blocks we no longer have and individual stream of gates until we create the instance, which makes debugging issues with gates problematic. It would be nice to add an API like "get_commited_gates" to the builder. The return type could be a tuple, representing current number of gates in each block
The text was updated successfully, but these errors were encountered:
This work results in an execution trace fully sorted by gate type.
Prior to this PR, all of the infrastructure was added to construct and
process a sorted execution trace. Each builder has a `blocks` object
which essentially holds a {`wires`, `selectors`} pair for each gate
type. Up until now, all gates were being added into `blocks.main`, which
is equivalent to what we've always done. This PR simply adds gates into
their appropriate specialized block, e.g. arithmetic gates are added
into `blocks.arithmetic` and auxiliary gates are added into
`blocks.aux`. After being processed in the `ExecutionTrace` class, this
results in an execution trace sorted by gate type.
Note: This PR adds dummy gates in several new locations to account for
the fact that some gates of a particular type were previously reading
into a subsequent gate of different type, which breaks once the gates
are sorted by type.
Note: This PR does not include any logic for taking advantage of the
sorted structure.
Closes#867 (gates
are sorted)
Closes#873 (no more
gate interleaving assumptions, except ones now identified in more
specific issues)
Closes#910 (gate
type summary via blocks.summarize())
With the split of the artihmetic in circuit builders into blocks we no longer have and individual stream of gates until we create the instance, which makes debugging issues with gates problematic. It would be nice to add an API like "get_commited_gates" to the builder. The return type could be a tuple, representing current number of gates in each block
The text was updated successfully, but these errors were encountered: