The depth of replicated circuits #
Circuit.replicateScalar c k runs k copies of the single-output circuit c side by side, one
on each block of the input. The copies share no gates, so the depth does not grow.
This is kept apart from the replication API so that adding it does not rebuild that module's importers.
Main results #
Cslib.Circuits.Circuit.depth_replicateScalar_le:kcopies are at most as deep as one.
theorem Cslib.Circuits.Circuit.depth_replicateScalar_le {σ : Signature} {n : ℕ} (c : Circuit σ n 1) (k : ℕ) :
Copies side by side are no deeper than one copy.