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

set Rabi frequency of forbidden transitions to zero #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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: 5 additions & 1 deletion src/rydiqule/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,11 @@
passed_rabi = float(passed_rabi)

elif (e_field is None and beam_power is None and rabi_frequency is not None):
passed_rabi = rabi_frequency
if np.abs(dipole_moment) > np.finfo(float).eps:
passed_rabi = rabi_frequency
else:
passed_rabi = 0
warnings.warn(f'This coupling is a forbidden transition: {state1} -> {state2}; q={q}')

Check failure on line 531 in src/rydiqule/cell.py

View workflow job for this annotation

GitHub Actions / Linting

Ruff (E501)

src/rydiqule/cell.py:531:101: E501 Line too long (102 > 100 characters)

else:
msg = ("Please only define one of: 1) rabi_frequency or "
Expand Down
Loading