CQCL/hugr

`add_constant` in circuit builder

Closed this issue · 0 comments

Given a CircuitBuilder, it's not currently possible to define new constants to pass to parametric operations.

We should define a

pub fn add_constant(&mut self, value: impl Into<Value>) -> Wire;

similar to Dataflow::add_load_value.