The contraction recursion with the parameter schedule #
This file runs the contraction recursion (TensorNetwork.contractRec) with the parameter schedule
of [OAI26k] (§D.4.2, (D.4)–(D.6), p. 58) from Cslib.Circuits.Frontier.ContractionSchedule,
so that its correctness and the running-time certificate refer to the same calls.
The schedule of call parameters (ContractionSchedule.callParams s). For size s, a call at
depth d with M edges is a leaf when M ≤ H = leafSize s. Otherwise it has a = slotBits s d
slot bits, taper u = taper s d, multiplicity step h = ⌈3 M / u⌉ (taperStep), and degree
bound Δ = degreeBound s. Its children are recovered at the precisions p_t = nodePrecision.
Correctness of the recursion holds for this schedule as for every other
(TensorNetwork.exists_contractRec_eq_add).
An active call. At a call with Active C s d M p and ActiveBounds C s d M p (the certificate
exists_activeBounds gives the second from the first for s ≥ s₀) on a network that runs from
rows to columns with at most Δ ports at each end, and with at least 2 ^ (4 ⌊log₂ s⌋)
interpolation points:
- the guard holds, so the call is the active call
callValue(contractRec_callParams_eq_callValue); - every lifted child runs from rows to columns within the degree bound
(
TensorNetwork.rowsToColumnsLE_finLift_child), has at mostM / 16edges (sixteen_mul_card_edges_child_le), and is evaluated at a precision within the schedule (nodePrecision_le_of_taperMult_pos), so it is a leaf or an active call at depthd + 1(Active.child); - there are at most
2 ^ e_dmode tuples at each active node (card_modeBudget_callParams_le), and the nodes, points and groups contribute2 ^ (2 ⌊log₂ s⌋)(ActiveBounds.branching_le).
These are the per-call facts that a certificate of the running time instantiates along the recursion tree.
Main definitions #
Cslib.Circuits.Frontier.ContractionSchedule.taperStep:h = ⌈3 M / u⌉.Cslib.Circuits.Frontier.ContractionSchedule.callParams: the schedule of call parameters.
Main results #
Cslib.Circuits.Frontier.ContractionSchedule.ActiveBounds.admissible: the parameters of an active call are admissible.Cslib.Circuits.Frontier.ContractionSchedule.contractRec_callParams_eq_callValue: an active call.Cslib.Circuits.Frontier.ContractionSchedule.sixteen_mul_card_edges_child_le,Cslib.Circuits.Frontier.ContractionSchedule.nodePrecision_le_of_taperMult_pos,Cslib.Circuits.Frontier.ContractionSchedule.card_modeBudget_callParams_le: its children and their number.
References #
- OpenAI, The Exponential Time Hypothesis is False, §D.4.2 (p. 58), §D.4.4–§D.4.7, pp. 60–64.
The schedule of call parameters #
The multiplicity step h = ⌈3 M / u⌉ of Lemma D.5 at depth d, with u = taper s d.
The schedule of call parameters for size s: a call at depth d with M edges is a leaf
when M ≤ leafSize s, and otherwise has a = slotBits s d, u = taper s d, h = ⌈3 M / u⌉ and
the degree bound Δ = degreeBound s.
The parameters of an active call are admissible, given 2 ^ (4 ⌊log₂ s⌋) interpolation
points.
An active call #
An active call of the scheduled recursion. At an active call (Active, ActiveBounds) on a
network that runs from rows to columns within the degree bound, with at least
2 ^ (4 ⌊log₂ s⌋) interpolation points, the recursion is the active call callValue with the
packing of Lemma D.3 at a = slotBits s d, u = taper s d and h = ⌈3 M / u⌉, and recursive
calls at depth d + 1 for the children.
The children of an active call have at most M / 16 edges, as Active.child requires
(Lemma D.3 (3) under (D.6), TensorNetwork.mul_card_edges_child_callSplitting_le).
The children of an active call are evaluated within the precision schedule: a node of
positive multiplicity passes p_t ≤ precisionBound C s (d + 1) to its children.
The mode count (D.15) at an active call: at a node of positive multiplicity, there are at
most 2 ^ e_d mode tuples for the packing of Lemma D.3, which has at most 3 M / L packets.