Skip to content

Commit

Permalink
Merge branch 'main' into measureImprovements
Browse files Browse the repository at this point in the history
  • Loading branch information
ashlhans authored Apr 8, 2024
2 parents 25883e3 + 5b21c12 commit 8213b4f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v1.76.2 (2024-04-08)

### Bug Fixes and Other Changes

* backwards compatiblity for local detuning

## v1.76.1 (2024-04-08)

### Bug Fixes and Other Changes
Expand Down
2 changes: 1 addition & 1 deletion src/braket/_sdk/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "1.76.2.dev0"
__version__ = "1.76.3.dev0"
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,12 @@ def test_discretize(register, driving_field, shifting_field):
"values": ["-125664000.0", "-125664000.0", "125664000.0", "125664000.0"],
},
}
assert discretized_json["hamiltonian"]["shiftingFields"][0]["magnitude"] == {
local_detuning = (
discretized_json["hamiltonian"]["shiftingFields"][0]["magnitude"]
if "shiftingFields" in discretized_json["hamiltonian"].keys()
else discretized_json["hamiltonian"]["localDetuning"][0]["magnitude"]
)
assert local_detuning == {
"pattern": ["0.50", "1.00", "0.50", "0.50", "0.50", "0.50"],
"time_series": {
"times": ["0E-9", "0.000003000"],
Expand Down

0 comments on commit 8213b4f

Please sign in to comment.