Add basics for quantum analogs#2183
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2183 +/- ##
==========================================
+ Coverage 84.01% 85.55% +1.54%
==========================================
Files 592 703 +111
Lines 81674 117704 +36030
==========================================
+ Hits 68617 100706 +32089
- Misses 13057 16998 +3941
|
fingolfin
left a comment
There was a problem hiding this comment.
Thank you, this looks really good!
I still have a bunch of remarks, but most of these are on the cosmetically level, or optional, or both.
|
Thanks, @fingolfin. I had a discussion with @fieker: the function quantum_integer(n) may be problematic as is minimal_polynomial without passing the ring. He also suggested to implement a structure for quantum integers (so, basically the ring of quantum integers). I think this would be the way to go. I never thought about that before. That's why I changed the PR to draft mode. |
|
Just wanted to say that I was in need of quantum binomial coefficients today and the changes here would have come in handy. |
Will do the update in the next couple of weeks. (I personally decided against implementing a dedicated ring as mentioned above for now, I hope you didn't need that particular feature...). |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
b44af44 to
27af1df
Compare
|
I've discussed this PR this morning with @ulthiel and based on that I've now rebased it -- doing this I noticed that a bit more work was needed than I expected, and as a result I've now moved it into a new Unfortunately this move resulted in the existing comments on this file to loose their place, i.e. they are no longer attached to the relevant code :-(. Since that was the case now anyway, I've decided to also perform the changes from tabs to spaces (I didn't do those at first in the hopes that the code review comments would stay attached). I also performed some other "obvious" tweaks. But I did not e.g. touch the unicode, or move anything to the |
fcee5d2 to
afd9da0
Compare
|
I've revised the PR now, and from my point of view this is ready for review and merging. @ulthiel I'll remove the "Draft" flag now, based on our discussion last week. Please holler if you have concerns. |
I agree that this would be nice to have. Is suitable code available? For if it is not, then we should proceed now with merging the existing code by @ulthiel after a final decision by @fingolfin concerning the interface. |
|
Perhaps we can have a zoom call with @ulthiel @felix-roehrich and myself (and anyone else interested in actively using q-analogs) to settle on which user interface we want. Defaulting to the "combinatorics" meaning is fine, but we need to decide how to get "the other". Triage had some mild preference for using rings (those who spoke up). Also |
|
Sure. I don't have any strong opinions on anything. About the q/quantum: I think you're right. |
|
I am still experimenting with the usage in my quantum groups implementation, but it seems that caching wouldn't work with a ring and needs to be directly on the quantum group. Furthermore, it seems the only use case for "symmetric" version is the quantum groups implementation. |
520385c to
4b6771a
Compare
|
The one thing we discussed and agreed on with various people but is not documented here (oops) is several of us come to the conclusion that we should call these "$q$-analogs" instead of "quantum analogs" because that's what most of the literature seems to do and the "q" originally wasn't for "quantum" either. Not even the literature linked in this PR calls them "quantum binomials" etc., and So I just updated this PR to that convention. I am also now building the manual locally and will check it for content and formatting issues etc. |
Thx. Looks good to me. |
|
There was an issue with the .bib file. Otherwise all looks good to me. Once CI passes this is fine to merge from my POV. |
Co-authored-by: Max Horn <max@quendi.de>
Added basic functions for quantum analogs that I had implemented in my JuLie package: quantum integers, factorials, and binomials. They work also with specializations in any (commutative) ring.