-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add frequencies as optional CRAB parameter #18
Add frequencies as optional CRAB parameter #18
Conversation
Pull Request Test Coverage Report for Build 8959043767Details
💛 - Coveralls |
@flowerthrower Not sure if you intended this for review already. Could you also update the docstrings, add a test and ideally some sort of example to the documentation itself (i.e. under |
Sorry @hodgestar, I did not intend to mark this as "ready for review" yet: I am not finished working on it. |
At this point of time this addition is mostly targeted to make |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure the current solution makes much sense. The frequencies are only present in PulseGenCrabFourier
but the fix_freqs
option appears on the base PulseGenGran
class. Can we move it to the PulseGenCrabFourier
class?
It would be good to add a test for the new feature too.
Thank you @hodgestar for your feedback. I have incorporated your suggestions. Let me know if there is anything else! |
Dear @ajgpitch, dear @hodgestar. |
This all seems fine to me, but as @hodgestar has made suggestions (which seem to have been implemented), then best if he approves too. |
Some tests are currently failing due to a qutip@master Cython version error. |
476c300
to
ac1f655
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two more small suggestions made.
I reran the tests but the error is still the same. Noting the error message here:
And indeed there is a Cython version discrepancy between the build and install requirements for Python 3.9 in the current qutip master branch: Install: https://github.com/qutip/qutip/blob/320996bfda3a2eb361eb36cac4208990266b97fe/setup.cfg#L52 Note that the build requirements also seem to be duplicated in @Ericgig Could you perhaps help @flowerthrower sort this out? |
Co-authored-by: Simon Cross <[email protected]>
Co-authored-by: Simon Cross <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm approving these changes, but let's get CI running and passing before actually merging it so that we've at least had a successful test run.
CI tests are now passing. Thansk, @Ericgig. |
This PR introduces variable Fourier frequencies for the CRAB algorith.
So far they were fixed. This is still the default behaviour and all additional parameters are optional (no breaking changes).
Recently a user requested to provide initial starting values for all parameters. With this PR it can be done in the new QOC package.