Skip to content

Quantum groups#54

Merged
yaniccd merged 19 commits into
masterfrom
gram
Mar 30, 2026
Merged

Quantum groups#54
yaniccd merged 19 commits into
masterfrom
gram

Conversation

@yaniccd
Copy link
Copy Markdown
Collaborator

@yaniccd yaniccd commented Mar 28, 2026

Moments of Haar-random quantum groups (free symmetric and free orthogonal groups) have been added to Haarpy. The requirements for sympy has been changed from version 1.12 to version 1.14 which has a much faster matrix inversion function. Unlike other groups equipped with the Haar measure, the only way known as of today to find moments of the quantum group is through the inverse of their respective Gram matrices.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
haarpy/__init__.py 100.00% <100.00%> (ø)
haarpy/partition.py 100.00% <100.00%> (ø)
haarpy/quantum.py 100.00% <100.00%> (ø)
haarpy/symmetric.py 100.00% <100.00%> (ø)
haarpy/tests/test_partition.py 100.00% <100.00%> (ø)
haarpy/tests/test_quantum.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread .github/CHANGELOG.md Outdated
Comment thread haarpy/tests/test_partition.py Outdated
@pytest.mark.parametrize("degree", range(10))
def test_non_crossing_partition_size(degree):
"assert the number of non-crossing partitions coincides with the catatlan number"
assert sum(1 for _ in ap.non_crossing_partitions(degree)) == catalan(degree)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think by know you get my point that if you want the length of an iterable I think it is nicer to write len(tuple(iterable))

@yaniccd yaniccd merged commit 3054d9f into master Mar 30, 2026
2 checks passed
@yaniccd yaniccd deleted the gram branch March 30, 2026 11:36
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