Skip to content

Commit

Permalink
Optimize off_resonance
Browse files Browse the repository at this point in the history
  • Loading branch information
lamyj committed Dec 5, 2023
1 parent d81a5b9 commit c4aff47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sycomore/epg/Base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ ::off_resonance(Quantity const & duration)
for(std::size_t pool=0; pool<this->_model.pools; ++pool)
{
auto const angle =
duration.magnitude * 2*M_PI*units::rad
duration.magnitude * 2*M_PI
* (
this->delta_omega.magnitude
+ this->_model.species[pool].delta_omega().magnitude);
Expand Down

0 comments on commit c4aff47

Please sign in to comment.