Add a QuantumCumulants.jl extension for express - #216
Open
AJ0070 wants to merge 2 commits into
Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #216 +/- ##
==========================================
+ Coverage 68.89% 71.11% +2.22%
==========================================
Files 21 22 +1
Lines 987 1101 +114
==========================================
+ Hits 680 783 +103
- Misses 307 318 +11 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Author
|
@Krastanov gentle ping! |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #73.
Adds a
QuantumCumulants.jlextension, so symbolic operators can be converted into thesecond-quantized operators QuantumCumulants works with and fed to
meanfield,cumulant_expansion, etc.Changes
ext/QuantumCumulantsExt/QuantumCumulantsExt.jl(+251) — the conversion: Fock operators,qubit operators as
Transitions on anNLevelSpaceorPaulis on aPauliSpace,projectors/outer products (incl. qudits), identities, tensor products placed across
subsystems, sums/products/scalings/commutators/daggers.
src/QSymbolicsBase/QSymbolicsBase.jl(+45 −1) — exportsQuantumCumulantsRepr. TheHilbert space is given explicitly or derived from the expression's basis.
test/general/quantumcumulants_tests.jl(+200) — 75 tests.docs/src/quantumcumulants.md(+123),docs/make.jl,docs/src/express.md— new docs page.Project.toml+ test/docs/benchmark manifests,CHANGELOG.md— weakdep, compat0.7,version bump to 0.4.17.
Notes
Z₁ = |0⟩maps to the excited level, soσ₋becomes the decay operatorσ^ge.Destroy,Create,dagger,commutator; the clash is documented,with the unicode aliases (
â,âꜛ,n̂) as the escape hatch.MixedState,conj/transposeand partial traces throw —none are expressible in a polynomial operator algebra.
AI Disclosure: I used Claude Opus 5 to initially understand the problem, code scaffolding, adding comments, documentation, and getting full test coverage.