Skip to content

Casimir computation#47

Merged
lkdvos merged 3 commits intomainfrom
ld-casimir
Mar 30, 2026
Merged

Casimir computation#47
lkdvos merged 3 commits intomainfrom
ld-casimir

Conversation

@lkdvos
Copy link
Copy Markdown
Member

@lkdvos lkdvos commented Mar 30, 2026

This PR adds computation of the different Casimir values.
As this often shows up in various applications I think this is a good place to add that.

I've added tests for the SU(2) and SU(3) values, the formula should be valid for all values of N and k, and comes from:

  • S. Okubo, Casimir invariants and vector representations in simple classical algebras
    Unfortunately, this is closed access and I don't actually know how correct this formula is.
    I spent too much time on finding this already, so I would be happy to just leave this in for now and assume that it is correct, since I did check it for the cases that are used most often.
    If we are uncomfortable with this, I'd be OK with just restricting to N < 3 here, even though the formula's do seem to be correct.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/SUNRepresentations.jl 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lkdvos lkdvos requested a review from Jutho March 30, 2026 19:04
Jutho
Jutho previously approved these changes Mar 30, 2026
Copy link
Copy Markdown
Member

@Jutho Jutho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me (one suggestion), but I am no expert on this.

Co-authored-by: Jutho <Jutho@users.noreply.github.com>
@lkdvos lkdvos merged commit 97950a8 into main Mar 30, 2026
8 checks passed
@lkdvos lkdvos deleted the ld-casimir branch March 30, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants