Library / Bond Contract / Bond Contract API

Bond Contract API

Types and calls for the factorized state.

Types

Table 1. Types.
TypeMeaning
BondsAn open factorization.
ChiMaximum bond width, integer ≥ 1.
EpsilonDiscarded-weight budget, dimensionless, ≥ 0.
Reportdiscarded, chi_used, gates, swaps.

Calls

Table 2. Calls.
CallReturnsFaults
Lattice.bonds(width, chi, epsilon, order)BondsWidth if n χ² beats 2^n or the byte ceiling
Bonds.apply(name, …, permit_swap_route=False)NoneBudget, geometry, spectrum
Bonds.report()ReportClosed
Bonds.expect(observables)Ledger record including discardedSyntax
Bonds.run(script)NoneWhatever apply would raise