Library / Device Span / Device Span API
Device Span API
Types and calls for a partitioned table.
Types
| Type | Meaning |
|---|---|
| Span | An open partition and its job identifier. |
| Workers | Power-of-two count, at least 1. |
| VolumeReport | Per-gate exchange in bytes, plus the cut bits. |
Calls
| Call | Returns | Faults |
|---|---|---|
| Lattice.span(width, workers, ceiling) | Span | Membership, budget |
| Span.run(script) | None | Exchange, and any State Register fault |
| Span.amplitudes() | Full table gathered to the caller | Aborted |
| Span.expect(observables) | Ledger record with workers | Aborted, syntax |
| Span.volume() | VolumeReport | Aborted |
| Span.expect_on_prefix(register, tol) | None | Tolerance |
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.