Library / Bond Contract / Bond Contract API
Bond Contract API
Types and calls for the factorized state.
Types
| Type | Meaning |
|---|---|
| Bonds | An open factorization. |
| Chi | Maximum bond width, integer ≥ 1. |
| Epsilon | Discarded-weight budget, dimensionless, ≥ 0. |
| Report | discarded, chi_used, gates, swaps. |
Calls
| Call | Returns | Faults |
|---|---|---|
| Lattice.bonds(width, chi, epsilon, order) | Bonds | Width if n χ² beats 2^n or the byte ceiling |
| Bonds.apply(name, …, permit_swap_route=False) | None | Budget, geometry, spectrum |
| Bonds.report() | Report | Closed |
| Bonds.expect(observables) | Ledger record including discarded | Syntax |
| Bonds.run(script) | None | Whatever apply would raise |