Skip to content

Commit

Permalink
Soften switching device with strict conditions (#724)
Browse files Browse the repository at this point in the history
* Loop over all possible matchings in switch_device

* Decrease strictness on bottom_detuning and total_bottom_detuning, fix handling of add_dmm_detuning

* Relax conditions on EOM configuration

* Fix switching with parametrized sequence and EOM

* Addressing review comments

* Creating helpers class for _seq_str and _switch_device

* Add more conditions on EOM in parametrized Seq

* Fixing type

* Handle having two controlled beams,

* Fixing nits

* Fix typing

---------

Co-authored-by: Henrique Silvério <[email protected]>
  • Loading branch information
a-corni and HGSilveri authored Sep 18, 2024
1 parent e21d3a8 commit 2f5e56c
Show file tree
Hide file tree
Showing 5 changed files with 679 additions and 219 deletions.
14 changes: 14 additions & 0 deletions pulser-core/pulser/sequence/helpers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2024 Pulser Development Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Module containing helpers of the sequence class definition."""
File renamed without changes.
Loading

0 comments on commit 2f5e56c

Please sign in to comment.