Skip to content
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

Bugfix in transmon class #146

Merged
merged 1 commit into from
Oct 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ This Changelog tracks all past changes to this project as well as details about
- `fixed` for any bug fixes.
- `security` in case of vulnerabilities.

## Upcoming Version

### Details

- `fixed` handling of anharmonicity in transmons with two levels #145

## Version `1.3` - 20 Jul 2021

### Summary
Expand Down
3 changes: 1 addition & 2 deletions c3/libraries/chip.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ def get_Hamiltonian(
):
Hs = self.get_transformed_hamiltonians(transform)
H_freq = Hs["freq"]
H_anhar = Hs["anhar"]

if isinstance(signal, dict):
sig = signal["values"]
Expand All @@ -420,7 +419,7 @@ def get_Hamiltonian(

h = freq * H_freq
if self.hilbert_dim > 2:
h += self.get_anhar() * H_anhar
h += self.get_anhar() * Hs["anhar"]
return h

def get_Lindbladian(self, dims):
Expand Down