Library / Bond Contract / Bond Contract
Bond Contract
A line factorization whose discarded weight is part of the result.
Contract
Bond Contract stores a pure state as site tensors on a line. Neighboring sites share a bond of width at most χ. Every truncation adds the normalized sum of squares of the dropped singular values to a running discarded weight. Crossing the caller’s ε is a budget fault, and the pre-gate factorization is kept.
Storage is proportional to n χ², not 2^n. If that projection exceeds the exact table, the open fails and names State Register. The essay is /investor-relations/research/lattice-mesh/bond-contract.
Geometry
The default order is the line 0—1—…—(n−1). A permutation may be passed at open and is frozen after the first gate. A two-wire gate off the line is a geometry fault unless permit_swap_route is set on that apply. Routed SWAPs are listed separately in the report so they are not mistaken for gates the author wrote.
bonds = Lattice.bonds(width=64, chi=32, epsilon=1e-8, order="line")
bonds.apply("H", on=0)
bonds.apply("CNOT", control=0, target=1)
report = bonds.report()
# report.discarded, report.chi_used, report.swapsExpectations without the full table
A Pauli string is absorbed into the sites it touches and the chain is contracted from the left. The scalar is ⟨P⟩. Observable Ledger records the source as bond-contract and copies the discarded weight onto the record so a quoted correlation is not separated from the budget that produced it.