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

Fix/ld runtime #19

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Fix/ld runtime #19

wants to merge 5 commits into from

Conversation

maolinml
Copy link
Contributor

Issue #, if available:

  1. Program with empty local detuning will throw an error
  2. Program with max time not equal to 4 us will throw an error

Description of changes:

  1. modify parse_protocol so that programs without local detuning can be run
  2. deprecate tau and use n-tau-steps and the time max in the program to determine the trotter time step

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@maolinml maolinml requested a review from ykharkov June 14, 2024 01:02
help = "time evolution step size in seconds"
arg_type = Float64
default = 0.01e-6
# "--tau"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If tau is not used, should it instead be "supported" here but print that it is deprecated?

pattern = ahs_program["hamiltonian"]["shiftingFields"][1]["magnitude"]["pattern"]
time_points_shift = ahs_program["hamiltonian"]["shiftingFields"][1]["magnitude"]["time_series"]["times"]
values_shift = ahs_program["hamiltonian"]["shiftingFields"][1]["magnitude"]["time_series"]["values"]
if "localDetuning" ∉ keys(ahs_program["hamiltonian"]) || length(ahs_program["hamiltonian"]["localDetuning"]) == 0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this will be pre-empted by @ykharkov's new PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants