You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 87a9b6f
Browse filesBrowse the repository at this point in the historyBrowse files
Use Cached keys and remove duplicated cache helpers
Use Cached.Hashed and cachekey to share sector structures across degeneracy dimensions without changing the function signature. Pass fusion-tree arguments directly to Cached, retaining the braiding result annotation needed for anyonic inference.
Remove the upstream-covered Hashed tests, add TensorKit integration checks, and document native cache configuration and optional extensions.
Copy file name to clipboardExpand all lines: docs/src/man/fusiontrees.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -262,6 +262,23 @@ The `braid` and `permute` routines for double fusion trees will be the main acce
262
262
As a consequence, results from these routines are memoized via a `@cached` mechanism.
263
263
The caching strategy is controlled by `Cached.CacheStyle`: for `FusionStyle(I) isa UniqueFusion` no caching is used (`NoCache()`), since the result is a single cheap scalar coefficient; for `MultipleFusion` or `GenericFusion` sectors, `GlobalCache()` uses Cached.jl's configured container (ClockCache by default), as computing the transformation matrix can be expensive and results are reused frequently.
264
264
265
+
TensorKit also uses Cached.jl for sector structures, degeneracy structures and fusion tree transformers.
266
+
Sector structures share cache entries across spaces with the same sectors, even if their degeneracy dimensions differ, through `Cached.cachekey`.
267
+
The Cached APIs can inspect, resize and configure these caches:
Preferences are saved in `LocalPreferences.toml` and apply after restarting Julia; a runtime size change applies immediately.
278
+
`Cached.uncached(f, args...)` computes a result without consulting or filling the cache.
279
+
Optional Cached features, such as the Tachikoma dashboard and SQLite disk caching, remain available through Cached's extensions.
280
+
Disk caching requires loading SQLite and defining `Cached.DiskCacheStyle` for the desired function; it is disabled by default, and `empty_globalcaches!()` clears only in-memory caches.
281
+
265
282
This caching implies that potential inefficiencies in the fusion tree manipulations (which we nonetheless try to avoid) will not seriously affect performance of tensor manipulations.
0 commit comments