Repository navigation
Commit a00fb9a
Keep the trees of fusion tree block manipulations in production order (#580)
* Keep the intermediate blocks of `fsbraid` in production order
The bends and Artin braids of a fusion tree block used to construct their destination block in canonical order, together with a dictionary from trees to rows, at every step. The intermediate blocks of `fsbraid` now keep their trees in the order in which they are produced (`TreeRows`, `canonical = Val(false)` for `bendleft`, `bendright` and `artin_braid`, `repartition_noncanonical`), and only the result is brought into canonical order (`canonicalize`). Small blocks find rows by a linear search. In `artin_braid`, the channels are obtained by filtering `a ⊗ d` instead of intersecting two fusion products, and the symbols that do not depend on the channel are computed once.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Recycle tree vectors and matrices between the braids in `fsbraid`
The Artin braids keep the size of a block, so `fsbraid` passes the tree vector and the matrices of the previous step on to `artin_braid` and multiplies in place.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Braid single-tree blocks as a product of scalars
A block with a single tree stays a single tree under every step of `fsbraid`, so its braid is computed with the per-tree manipulations, without blocks or matrices. Their bodies move into private `_artin_braid_single` and `_bendright_single`, which take the single coefficient of each symbol with `only`; the public methods keep their `UniqueFusion` assertion.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Test braiding a block with a single tree; changelog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fill a given matrix in `artin_braid!`, and choose the single braid channel by dispatch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Give `TreeRows` an inner constructor, so that Aqua finds no unbound type parameter
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Braid single trees through `artin_braid` itself, take the only braid channel with `only`, and filter the braid channels for every unit style
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Set the inner line and the first vertex of a braided tree outside the loops over the multiplicities
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Braid a single tree pair through the tree manipulations themselves
`bendright` and `bendleft` of a tree pair no longer assert `UniqueFusion`, but
rely on `only` to throw if the bent vertex has a multiplicity, which replaces
their `_single` variants. The shortcut of `braid` for a symmetric braiding is
restricted to `UniqueFusion`, where the `Fsymbol`s are trivial, such that a
block with a single tree is braided as its tree pair.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep the trees of every fusion tree block manipulation in production order
The destination blocks of bends, folds and braids are only used together with
their transformation matrix, so they no longer construct and index the canonical
destination block, but keep their trees in the order in which they are produced.
Since `planar_trace` now also works on complete blocks, the canonical mode of
`TreeRows`, `canonicalize`, `repartition_noncanonical` and `treeindex_map` are
removed. The tests compare the results of manipulations up to the order of
their trees.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Drop the recycling of the tree vectors in `fsbraid`, which gives no measurable speedup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Inline the single braid channel of a tree, and presize the row index of large blocks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Construct `TreeRows` as `TreeRows{F}(n)`
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Reword the completeness requirement of `FusionTreeBlock`, and drop the fallback row in `_inorder`
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Update src/fusiontrees/braiding_manipulations.jl
Co-authored-by: Jutho <Jutho@users.noreply.github.com>
* Note the trivial-Fsymbol assumption of symmetric unique-fusion braids, and preallocate both matrices of the swaps in `fusiontreebraid`
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: lkdvos <ldevos98@gmail.com>
Co-authored-by: Jutho <Jutho@users.noreply.github.com>1 parent 4815929 commit a00fb9a
6 files changed
Lines changed: 173 additions & 126 deletions
File tree
- docs/src
- src/fusiontrees
- test
- symmetries
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | | - | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
67 | | - | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | | - | |
| 73 | + | |
72 | 74 | | |
73 | | - | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
81 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
82 | 93 | | |
83 | | - | |
| 94 | + | |
| 95 | + | |
84 | 96 | | |
85 | 97 | | |
86 | 98 | | |
| |||
91 | 103 | | |
92 | 104 | | |
93 | 105 | | |
94 | | - | |
| 106 | + | |
95 | 107 | | |
96 | 108 | | |
97 | | - | |
98 | | - | |
99 | | - | |
| 109 | + | |
100 | 110 | | |
101 | 111 | | |
102 | 112 | | |
| |||
113 | 123 | | |
114 | 124 | | |
115 | 125 | | |
116 | | - | |
| 126 | + | |
117 | 127 | | |
118 | 128 | | |
119 | | - | |
| 129 | + | |
120 | 130 | | |
121 | 131 | | |
122 | 132 | | |
| |||
132 | 142 | | |
133 | 143 | | |
134 | 144 | | |
135 | | - | |
| 145 | + | |
136 | 146 | | |
137 | 147 | | |
138 | 148 | | |
| |||
142 | 152 | | |
143 | 153 | | |
144 | 154 | | |
145 | | - | |
| 155 | + | |
146 | 156 | | |
147 | 157 | | |
148 | 158 | | |
| |||
155 | 165 | | |
156 | 166 | | |
157 | 167 | | |
158 | | - | |
| 168 | + | |
| 169 | + | |
159 | 170 | | |
160 | | - | |
| 171 | + | |
161 | 172 | | |
162 | | - | |
| 173 | + | |
163 | 174 | | |
164 | 175 | | |
165 | 176 | | |
166 | 177 | | |
167 | | - | |
| 178 | + | |
168 | 179 | | |
169 | 180 | | |
170 | 181 | | |
171 | | - | |
172 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
173 | 186 | | |
174 | 187 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
179 | 192 | | |
180 | | - | |
| 193 | + | |
181 | 194 | | |
182 | 195 | | |
183 | 196 | | |
184 | 197 | | |
185 | | - | |
186 | | - | |
187 | | - | |
| 198 | + | |
188 | 199 | | |
189 | | - | |
| 200 | + | |
190 | 201 | | |
191 | 202 | | |
192 | 203 | | |
193 | 204 | | |
194 | 205 | | |
195 | 206 | | |
196 | 207 | | |
197 | | - | |
| 208 | + | |
198 | 209 | | |
199 | 210 | | |
200 | 211 | | |
| |||
216 | 227 | | |
217 | 228 | | |
218 | 229 | | |
219 | | - | |
220 | 230 | | |
221 | | - | |
| 231 | + | |
| 232 | + | |
222 | 233 | | |
223 | 234 | | |
224 | 235 | | |
| |||
312 | 323 | | |
313 | 324 | | |
314 | 325 | | |
315 | | - | |
316 | | - | |
317 | 326 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
| 327 | + | |
325 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
326 | 336 | | |
327 | 337 | | |
328 | 338 | | |
329 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
330 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
331 | 347 | | |
332 | 348 | | |
333 | 349 | | |
334 | 350 | | |
335 | | - | |
336 | | - | |
| 351 | + | |
| 352 | + | |
337 | 353 | | |
338 | 354 | | |
339 | 355 | | |
340 | 356 | | |
341 | 357 | | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
349 | 361 | | |
350 | 362 | | |
351 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
352 | 374 | | |
353 | 375 | | |
354 | 376 | | |
| |||
0 commit comments