How large a reserve keeps a bursty computation supplied?
Enough resources across the day may still be too late
Source research checked . Teaching calculations are ideal models.
A quantum computation may need a special resource in bursts while its production machinery works at a steadier pace. Total production can exceed total demand and still fail to serve the schedule, because the resource arrives after the moment it was needed. A supply-rate number by itself cannot settle that timing question.
The constructed schedule treats production and demand as tokens at discrete boundaries. Three slots have no production, and repeated demand bursts create deficits. The smallest initial reserve is determined by the deepest cumulative deficit. After adding that reserve, the highest resulting inventory gives a boundary-capacity requirement. This makes two design questions visible: how much stock must exist before the computation starts, and how much can accumulate later.
If the tokens represent quantum states, the classical balance is only a first layer. States may age, occupy protected qubits, fail a quality test or be consumed by failed operations. The example therefore belongs beside a resource factory explanation with its scope stated clearly. It offers an exact demand-planning calculation without implying that quantum states are interchangeable durable objects in a warehouse.
Start with the assumptions
- Supply and demand are netted simultaneously at each boundary.
- Stored tokens neither expire nor lose quality in this calculation.
- All requested tokens have the same resource meaning.
Cumulative net supply at slot t = sum_{i<=t}(supply_i-demand_i)
Minimum initial reserve = max(0, -minimum cumulative net supply)
Boundary capacity = maximum(initial reserve + cumulative net supply), including time zero
Compare the input regimes
Each case uses invented inputs. The results follow from this model and do not describe measured hardware.
Baseline regime
Complete inputs
- Supply per slot
- 10
- Base demand per slot
- 5
- Burst demand
- 15
- Burst period
- 4
- Schedule slots
- 30
- Zero-supply slots, one-based
- 10, 11, 20
- Supply is zero in slots 10, 11 and 20; all other slots produce 10 tokens. Demand includes the declared periodic bursts.
- Cumulative net production reaches a minimum of -5. An initial reserve of max(0, -minimum) = 5 prevents a negative end-of-slot balance.
- Add that reserve to every cumulative value. The largest start/end boundary inventory is 25; final stock is 20. Supply and demand are netted simultaneously at each boundary.
| Calculated quantity | Synthetic result |
|---|---|
| Total produced tokens | 270 |
| Total requested tokens | 255 |
| Minimum initial reserve | 5 |
| Required capacity at slot boundaries | 25 |
| Final inventory with that reserve | 20 |
| Supply-minus-demand over campaign | 15 |
| Slot | Supply | Demand | Inventory with reserve |
|---|---|---|---|
| 1 | 10 | 5 | 10 |
| 2 | 10 | 5 | 15 |
| 3 | 10 | 5 | 20 |
| 4 | 10 | 20 | 10 |
| 5 | 10 | 5 | 15 |
| 6 | 10 | 5 | 20 |
| 7 | 10 | 5 | 25 |
| 8 | 10 | 20 | 15 |
| 9 | 10 | 5 | 20 |
| 10 | 0 | 5 | 15 |
| 11 | 0 | 5 | 10 |
| 12 | 10 | 20 | 0 |
| 13 | 10 | 5 | 5 |
| 14 | 10 | 5 | 10 |
| 15 | 10 | 5 | 15 |
| 16 | 10 | 20 | 5 |
| 17 | 10 | 5 | 10 |
| 18 | 10 | 5 | 15 |
| 19 | 10 | 5 | 20 |
| 20 | 0 | 20 | 0 |
| 21 | 10 | 5 | 5 |
| 22 | 10 | 5 | 10 |
| 23 | 10 | 5 | 15 |
| 24 | 10 | 20 | 5 |
| 25 | 10 | 5 | 10 |
| 26 | 10 | 5 | 15 |
| 27 | 10 | 5 | 20 |
| 28 | 10 | 20 | 10 |
| 29 | 10 | 5 | 15 |
| 30 | 10 | 5 | 20 |
The toy schedule needs 5 stored tokens before it begins, even though net production across the campaign is 15. A reserve addresses timing, not state quality. If tokens represent prepared quantum resources, finite storage lifetime and extra storage qubits require a separate physical model.
Comparison regime
Complete inputs
- Supply per slot
- 11
- Base demand per slot
- 7
- Burst demand
- 30
- Burst period
- 6
- Schedule slots
- 30
- Zero-supply slots, one-based
- 10, 11, 20
- Supply is zero in slots 10, 11 and 20; all other slots produce 11 tokens. Demand includes the declared periodic bursts.
- Cumulative net production reaches a minimum of -63. An initial reserve of max(0, -minimum) = 63 prevents a negative end-of-slot balance.
- Add that reserve to every cumulative value. The largest start/end boundary inventory is 83; final stock is 0. Supply and demand are netted simultaneously at each boundary.
| Calculated quantity | Synthetic result |
|---|---|
| Total produced tokens | 297 |
| Total requested tokens | 360 |
| Minimum initial reserve | 63 |
| Required capacity at slot boundaries | 83 |
| Final inventory with that reserve | 0 |
| Supply-minus-demand over campaign | -63 |
| Slot | Supply | Demand | Inventory with reserve |
|---|---|---|---|
| 1 | 11 | 7 | 67 |
| 2 | 11 | 7 | 71 |
| 3 | 11 | 7 | 75 |
| 4 | 11 | 7 | 79 |
| 5 | 11 | 7 | 83 |
| 6 | 11 | 37 | 57 |
| 7 | 11 | 7 | 61 |
| 8 | 11 | 7 | 65 |
| 9 | 11 | 7 | 69 |
| 10 | 0 | 7 | 62 |
| 11 | 0 | 7 | 55 |
| 12 | 11 | 37 | 29 |
| 13 | 11 | 7 | 33 |
| 14 | 11 | 7 | 37 |
| 15 | 11 | 7 | 41 |
| 16 | 11 | 7 | 45 |
| 17 | 11 | 7 | 49 |
| 18 | 11 | 37 | 23 |
| 19 | 11 | 7 | 27 |
| 20 | 0 | 7 | 20 |
| 21 | 11 | 7 | 24 |
| 22 | 11 | 7 | 28 |
| 23 | 11 | 7 | 32 |
| 24 | 11 | 37 | 6 |
| 25 | 11 | 7 | 10 |
| 26 | 11 | 7 | 14 |
| 27 | 11 | 7 | 18 |
| 28 | 11 | 7 | 22 |
| 29 | 11 | 7 | 26 |
| 30 | 11 | 37 | 0 |
The toy schedule needs 63 stored tokens before it begins, even though net production across the campaign is -63. A reserve addresses timing, not state quality. If tokens represent prepared quantum resources, finite storage lifetime and extra storage qubits require a separate physical model.
Extended regime
Complete inputs
- Supply per slot
- 13
- Base demand per slot
- 7
- Burst demand
- 48
- Burst period
- 6
- Schedule slots
- 30
- Zero-supply slots, one-based
- 10, 11, 20
- Supply is zero in slots 10, 11 and 20; all other slots produce 13 tokens. Demand includes the declared periodic bursts.
- Cumulative net production reaches a minimum of -99. An initial reserve of max(0, -minimum) = 99 prevents a negative end-of-slot balance.
- Add that reserve to every cumulative value. The largest start/end boundary inventory is 129; final stock is 0. Supply and demand are netted simultaneously at each boundary.
| Calculated quantity | Synthetic result |
|---|---|
| Total produced tokens | 351 |
| Total requested tokens | 450 |
| Minimum initial reserve | 99 |
| Required capacity at slot boundaries | 129 |
| Final inventory with that reserve | 0 |
| Supply-minus-demand over campaign | -99 |
| Slot | Supply | Demand | Inventory with reserve |
|---|---|---|---|
| 1 | 13 | 7 | 105 |
| 2 | 13 | 7 | 111 |
| 3 | 13 | 7 | 117 |
| 4 | 13 | 7 | 123 |
| 5 | 13 | 7 | 129 |
| 6 | 13 | 55 | 87 |
| 7 | 13 | 7 | 93 |
| 8 | 13 | 7 | 99 |
| 9 | 13 | 7 | 105 |
| 10 | 0 | 7 | 98 |
| 11 | 0 | 7 | 91 |
| 12 | 13 | 55 | 49 |
| 13 | 13 | 7 | 55 |
| 14 | 13 | 7 | 61 |
| 15 | 13 | 7 | 67 |
| 16 | 13 | 7 | 73 |
| 17 | 13 | 7 | 79 |
| 18 | 13 | 55 | 37 |
| 19 | 13 | 7 | 43 |
| 20 | 0 | 7 | 36 |
| 21 | 13 | 7 | 42 |
| 22 | 13 | 7 | 48 |
| 23 | 13 | 7 | 54 |
| 24 | 13 | 55 | 12 |
| 25 | 13 | 7 | 18 |
| 26 | 13 | 7 | 24 |
| 27 | 13 | 7 | 30 |
| 28 | 13 | 7 | 36 |
| 29 | 13 | 7 | 42 |
| 30 | 13 | 55 | 0 |
The toy schedule needs 99 stored tokens before it begins, even though net production across the campaign is -99. A reserve addresses timing, not state quality. If tokens represent prepared quantum resources, finite storage lifetime and extra storage qubits require a separate physical model.
Try the reasoning: Would the same reserve suffice if each slot demanded its tokens before new supply arrived? State the within-slot ordering explicitly.