propagate_with

Function propagate_with 

Source
pub fn propagate_with<const W: usize, T>(
    circuit: &Circuit<W>,
    sum: PauliSum<W>,
    policy: &T,
    direction: Direction,
    scratch: &mut LayerScratch<W>,
    options: PropagateOptions,
) -> PauliSum<W>
where T: TruncationPolicy<W> + ?Sized,
Expand description

propagate with a caller-held LayerScratch and PropagateOptions.

The scratch keeps its buffer capacity across calls and carries the opt-in one-partition PartitionTrace (and, under phase-timing, the phase counters). Log events are emitted on the calling thread, never inside a parallel layer.

ยงPanics

As propagate, and if options fail PropagateOptions::validate.