Skip to main content

run_bloq_with_io

Function run_bloq_with_io 

Source
pub fn run_bloq_with_io<P, F>(
    bloq: &Bloq,
    shots: usize,
    seed: u64,
    prepare: P,
    peek: F,
) -> Result<VerifyReport, ExecError>
Expand description

run_bloq with private input seeds and a post-shot output hook.

Every seed starts in |+>. The preparation hook may entangle seeds. Each is injected before its temporal input Port, or before the first wait/cube after an ordinary spatial input’s virtual Port. Time-separated inputs may reuse one patch. Multiplex inputs inject before the virtual Port so its split sees them.

§Errors

See ExecError; also propagates errors returned by either hook.