Library / Device Span / Device Span API

Device Span API

Types and calls for a partitioned table.

Types

Table 1. Types.
TypeMeaning
SpanAn open partition and its job identifier.
WorkersPower-of-two count, at least 1.
VolumeReportPer-gate exchange in bytes, plus the cut bits.

Calls

Table 2. Calls.
CallReturnsFaults
Lattice.span(width, workers, ceiling)SpanMembership, budget
Span.run(script)NoneExchange, and any State Register fault
Span.amplitudes()Full table gathered to the callerAborted
Span.expect(observables)Ledger record with workersAborted, syntax
Span.volume()VolumeReportAborted
Span.expect_on_prefix(register, tol)NoneTolerance

Density tables use the same span open with kind="density". Blocks are partitioned by the high bits of the row and of the column. Trace, hermiticity, and negativity are reduced with the same procedure as the one-worker Noise Channel, not with a looser estimate.