Skip to content

Commit befefcb

Browse files
authored
Fix for SUNRepresentations type parameter change (#426)
* Fix for SUNRepresentations type parameter change * Use `SUNRepresentations.casimir`, bump compat to 0.4 * Remove rogue backticks
1 parent 7a7d9ef commit befefcb

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ TensorKit = {path = ".."}
1616
[compat]
1717
Documenter = "1"
1818
DocumenterInterLinks = "1"
19-
SUNRepresentations = "0.3"
19+
SUNRepresentations = "0.4"
2020
Test = "1"
2121
WignerSymbols = "1,2"

docs/src/appendix/symmetric_tutorial.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -959,22 +959,16 @@ The eigenvalue of the quadratic Casimir for a given irrep is given by [Freudenth
959959
```math
960960
\Omega(D(p,q)) = \frac{1}{3} (p^2 + q^2 + 3p + 3q + pq).
961961
```
962-
Using SUNRepresentations.jl, we can compute the Casimir as
963-
```@example symmetric_tutorial
964-
function casimir(l::SU3Irrep)
965-
p, q = dynkin_label(l)
966-
return (p^2 + q^2 + 3 * p + 3 * q + p * q) / 3
967-
end
968-
```
962+
This can be computed using SUNRepresentations.jl's `casimir` method, where `casimir(2, l)` returns the quadratic Casimir for irrep `l`.
969963
If we use the adjoint representation of ``\mathsf{SU}_3`` as physical space, the Heisenberg exchange interaction can then be constructed as
970964
```@example symmetric_tutorial
971-
V = Vect[SUNIrrep{3}](SU3Irrep("8") => 1)
965+
V = Vect[SU3Irrep](SU3Irrep("8") => 1)
972966
TT = zeros(ComplexF64, V ⊗ V ← V ⊗ V)
973967
for (s, f) in fusiontrees(TT)
974968
l3 = f.uncoupled[1]
975969
l4 = f.uncoupled[2]
976970
k = f.coupled
977-
TT[s, f] .= (casimir(k) - casimir(l3) - casimir(l4)) / 2
971+
TT[s, f] .= (casimir(2, k) - casimir(2, l3) - casimir(2, l4)) / 2
978972
end
979973
subblocks(TT)
980974
```

0 commit comments

Comments
 (0)