Chapter 5 — Quantum Behavior and Quantum Services¶
© 2026 S++ project contributors. All rights reserved. Book copyright.
A descriptive update records information; a quantum service transfers a measurable business quantity. Money, stock and reserved inventory require source, destination, amount, bounds and a settlement result rather than merely a new stored value.
Definition and Minimum Unit¶
A quantum service is the conserved transfer between two quantum properties within one business dimension. Its minimum unit is a paired decrement and increment:
A.balance -= 100 USD
B.balance += 100 USD
sum of deltas = 0 USD
The two changes form one indivisible business transfer. Crediting B without debiting A, or committing only A, does not satisfy the service. Different dimensions such as USD and item counts are not added to claim conservation. Sources for wallet funding or inventory receipt must also be explicit, even when the counterparty is an internal account or supply role.
Deltas Instead of Stale Values¶
Suppose a wallet is queried at 500 USD, receives 20 USD and then makes a 100 USD payment. A stale assignment of 400 would lose the receipt. The transfer instead applies −100 to the settled state, yielding 420 USD if those are the only changes.
The service describes the change rather than fixing the eventual observed balance. The executor must check the permitted bounds against the authoritative state and decide the complete conserved transfer. Chapter 20 describes call bounds and settlement; this definition makes no promise that application-side reads protect them.
Settlement Guarantees¶
A correct quantum execution must provide:
- Atomicity and conservation: the paired change succeeds or fails as one result.
- Bound enforcement under contention: simultaneous debits cannot overspend a lower bound.
- Idempotent confirmation: retrying after a lost response must not repeat a settled transfer.
- Traceability and inverse recovery: original deltas and identity remain available for reversal without overwriting later changes.
These are required semantics, not automatic consequences of writing two arithmetic expressions. Execution protocols, failure recovery and deployment guarantees are developed in Part IV and Appendix D.
A scenario can combine quantum settlement with ordinary updates, such as recording the order receipt. Its completion rule must account for both. The next chapter examines the properties of delta-based execution.
Part Contents · Full Book Contents · Previous Chapter · Next Chapter