-
Notifications
You must be signed in to change notification settings - Fork 35
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
Cooper pair box #184
base: dev
Are you sure you want to change the base?
Cooper pair box #184
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #184 +/- ##
==========================================
- Coverage 73.24% 72.61% -0.64%
==========================================
Files 37 37
Lines 5561 5619 +58
==========================================
+ Hits 4073 4080 +7
- Misses 1488 1539 +51
Continue to review full report at Codecov.
|
This pull request introduces 1 alert when merging 3c7588a into bd06408 - view on LGTM.com new alerts:
|
Re: Tests The contributing guide has a section on tests to help onboard new contributors to writing tests for their code. The basic idea is to convert one of the scripts that you are using for checking your code into the structure for a test script following the pattern seen in the other tests in our repo. It also includes a link to resources to better understand how to write tests in python. Can you please go through them and let us know if they are not adequate/useful enough to help you write tests for this PR? We can use this feedback to improve the onboarding document. |
components = instr.comps | ||
for comp in components[chan].values(): | ||
if isinstance(comp, Envelope): | ||
offset_amp = comp.params["offset_amp"].get_value() |
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.
This will throw an error when "offset_amp" is not in the Envelope parameters. An easy fix would be to add it in the default here: https://github.com/superplay1/c3/blob/1d685e5d8daf73640898040ee5b3ab8bcce02695/c3/signal/pulse.py#L47-L54
What
It adds the class CooperPairBox model to chip.py
Why
Additional functionality for regions where code of Fluxonium model fails.
How
I calculate the Hamiltonian in charge basis a-nd diagonalize to be again in energy basis. The transformation to the energy basis is done for the initial ng-value.
Remarks
I noticed that sometimes tf.range() does not what it should when the used dimensions size is big.
Regarding the checklist below
-I don't know how to write tests properly.
-I am not sure if a notebook is really necessary. You could just take the two_qubit_example and use CooperPairBox instead of Transmon except that I am not sure If coupling will work in the same way.
-The Documentation is generated automatically, isn't it? If not I don't know how to update it.
-Don't know how to add something the Upcoming Release section
Checklist
Please include and complete the following checklist. Your Pull Request is (in most cases) not ready for review until the following have been completed. You can create a draft PR while you are still completing the checklist. Check the Contribution Guidelines for more details. You can mark an item as complete with the
- [x]
prefixblack
andflake8
have been used to ensure styling guidelines are metnumpydoc
style