-
Notifications
You must be signed in to change notification settings - Fork 7
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
feature: Full support for Local Detuning #86
feature: Full support for Local Detuning #86
Conversation
Thanks for the PR! I'll review this ASAP tomorrow. |
Prepared
|
Other than some last comments this LGTM. I'll close the issue. |
Thank you very much, @kshyatt-aws. I will surely address your comments! |
Added suggested changed. Local Testing Done. Results:
|
src/ahs.jl
Outdated
""" | ||
LocalDetuning <: Hamiltonian | ||
|
||
Struct representing a Hamiltonian term `H_{shift}` representing the [local detuning](https://aws.amazon.com/blogs/quantum-computing/local-detuning-now-available-on-queras-aquila-device-with-braket-direct/) that changes the energy of the Rydberg level in an AnalogHamiltonianSimulation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can AnalogHamiltonianSimulation
have a doc link?
- `magnitude::Field`: Field containing the global magnitude time series Delta(t), | ||
where time is measured in seconds (s) and values are measured in rad/s, and the | ||
local pattern h_k of dimensionless real numbers between 0 and 1. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should follow the proper doctest format like:
# Examples
[doctest here]
src/ahs.jl
Outdated
stitch(ld1::LocalDetuning, ld2::LocalDetuning; boundary::Symbol="mean") -> LocalDetuning | ||
|
||
[`stitch`](@ref) two shifting fields based on the `TimeSeries.stitch` method. | ||
The time points of the second LocalDetuning are shifted such that the first time point of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LocalDetuning can get a doc link here too
src/ahs.jl
Outdated
""" | ||
stitch(ts1::TimeSeries, ts2::TimeSeries; boundary::Symbol="mean") | ||
|
||
[`stitch`](@ref) two shifting fields based on the `TimeSeries.stitch` method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TimeSeries.stitch
isn't a valid Julia function reference? It should be just stitch
src/ahs.jl
Outdated
stitch(ts1::TimeSeries, ts2::TimeSeries; boundary::Symbol="mean") | ||
|
||
[`stitch`](@ref) two shifting fields based on the `TimeSeries.stitch` method. | ||
The time points of the second `TimeSeries` are shifted such that the first time point of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can TimeSeries
have a doc link?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the new doc strings included in the relevant file in docs/src
? Also, did you run the doctests to make sure they pass? (There's an example of how to do this in .github/workflows/CI.yml
)
Local Tests for Local Detuning:
|
Resolving Issue #79
Description of changes: QuEra's Aquila now supports local detuning with Braket Direct. The underlying structs are implemented in Braket.jl but many of the correctness tests and validations are not. Local detuning would be used with Braket Direct to access this advanced feature of Aquila.
Kindly please check out the implementation! I followed the Python LocalDetuning
The following functions and their docstrings are also added
I have tested the
stitch
andLocalDetuning(values, amplitude, pattern)
locally using the values taken from the Python SDK.I am new to
MockStructs
tests , I am reading them in the ahs.test file to get more insight into it. I require guidance on how to properly use Mock structs to testdiscretize
forLocalDetuning
! Thanks!Braket.jl/test/ahs.jl](
Braket.jl/test/ahs.jl
Lines 5 to 25 in 1d05da0
Testing done:
Testing in Progress.
Note: New to git_secrets, so please bear with me. Figuring out how to use it!
Merge Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.General
Tests
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.