Skip to content

Commit

Permalink
Feature/rydberg longer evolution time (#276)
Browse files Browse the repository at this point in the history
set MAX_TIME to 20 us beyond which a warning message will be issued
  • Loading branch information
maolinml authored Jan 27, 2025
1 parent 446ed15 commit d749d03
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
BOUNDING_BOX_SIZE_X = 0.0001
BOUNDING_BOX_SIZE_Y = 0.0001
MIN_BLOCKADE_RADIUS = 1e-06
MAX_TIME = 4e-6
MAX_TIME = 20e-6
MIN_DISTANCE = 4e-6

# Constants for Rabi frequency amplitude
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def times_are_not_too_big(cls, values):
warnings.warn(
f"Max time is {times[-1]} seconds which is bigger than the typical scale "
f"({capabilities.MAX_TIME} seconds). "
"The time points should be specified in SI units."
"The time points should be specified in SI units."
)
return values

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ def test_time_series_times_start_with_0(times, error_message, device_capabilitie
"times, warning_message",
[
(
[0.0, 5.0e-6],
"Max time is 5e-06 seconds which is bigger than the typical scale (0.000004 seconds). "
"The time points should be specified in SI units.",
[0.0, 25.0e-6],
"Max time is 2.5e-05 seconds which is bigger than the typical scale "
"(0.00002 seconds). The time points should be specified in SI units.",
),
(
[0.0, 0.000005],
"Max time is 5e-06 seconds which is bigger than the typical scale (0.000004 seconds). "
"The time points should be specified in SI units.",
[0.0, 0.000025],
"Max time is 2.5e-05 seconds which is bigger than the typical scale "
"(0.00002 seconds). The time points should be specified in SI units.",
),
],
)
Expand Down

0 comments on commit d749d03

Please sign in to comment.