Repository navigation
Commit e4ee03c
Bump version to v0.3.19 (#79)
* Bump version to v0.3.19
* Adapt multifusion `SumSpace` to TensorKit v0.17.2 coloring rules
TensorKit v0.17.2 (#515) requires every `GradedSpace` to be homogeneously
colored, forbids `unitspace` for `GenericUnit` sectors and checks coloring
when building `ProductSpace`/`HomSpace`. This broke the multifusion `SumSpace`
tests, which flattened heterogeneous sums into a single `GradedSpace`.
- `unitspace(::Type{<:SumSpace})` returns one component per simple unit
- `leftunitspace`/`rightunitspace` inspect components instead of flattening
- `_leftrightunit(::SumSpace)` uses the shared unit, or a wildcard if components differ
- tests use `⊞` instead of flattening `⊕`, and expect incompatible products to throw
- require TensorKit v0.17.2
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Require multifusion SumSpace to be homogeneously colored as a whole
The previous fix let leftunitspace/rightunitspace answer for a SumSpace
whose components agreed on only one side (left xor right), by checking
each side independently and treating disagreement on the other side as
a wildcard. That's inconsistent with how a plain GradedSpace works: it
is either homogeneously colored (single left AND right unit shared by
every sector) or invalid. A SumSpace should follow the same rule as a
whole, so leftunitspace/rightunitspace/_leftrightunit again require
full agreement on both sides and reject (SpaceMismatch) otherwise,
without any special-casing for a partial match.
unitspace itself is unaffected by this: TensorKit already forbids it at
the type level for GenericUnit sector types, regardless of any given
instance's homogeneity, so it throws ArgumentError unconditionally for
IsingBimodule-sectored spaces, homogeneous or not. The Multifusion
testset is adjusted to expect this throughout, rather than the previous
attempt to give unitspace a real answer for such sector types.
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 2a04bdc commit e4ee03c
3 files changed
Lines changed: 40 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
183 | 195 | | |
184 | 196 | | |
185 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
| |||
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
189 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
211 | | - | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
218 | 223 | | |
219 | 224 | | |
220 | | - | |
| 225 | + | |
| 226 | + | |
221 | 227 | | |
222 | 228 | | |
223 | 229 | | |
224 | | - | |
| 230 | + | |
| 231 | + | |
225 | 232 | | |
226 | 233 | | |
227 | 234 | | |
| |||
231 | 238 | | |
232 | 239 | | |
233 | 240 | | |
234 | | - | |
235 | | - | |
236 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
237 | 244 | | |
238 | 245 | | |
239 | 246 | | |
| |||
243 | 250 | | |
244 | 251 | | |
245 | 252 | | |
246 | | - | |
247 | | - | |
| 253 | + | |
| 254 | + | |
248 | 255 | | |
249 | 256 | | |
250 | 257 | | |
251 | | - | |
| 258 | + | |
252 | 259 | | |
253 | | - | |
254 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
255 | 263 | | |
256 | 264 | | |
257 | | - | |
| 265 | + | |
258 | 266 | | |
259 | 267 | | |
260 | 268 | | |
0 commit comments