Skip to content

Commit

Permalink
hacking test because the set order changes with python version
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjaskula-aws committed Dec 19, 2023
1 parent d5c600f commit 1bc972b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions test/unit_tests/braket/pulse/test_pulse_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# language governing permissions and limitations under the License.

import pytest
from oqpy import FloatVar

from braket.circuits import FreeParameter, QubitSet
from braket.pulse import (
Expand Down Expand Up @@ -124,13 +125,11 @@ def test_pulse_sequence_make_bound_pulse_sequence(predefined_frame_1, predefined
expected_str_unbound = "\n".join(
[
"OPENQASM 3.0;",
"input float a;",
"input float b;",
"input float length_g;",
"input float sigma_g;",
"input float length_dg;",
"input float sigma_dg;",
"input float length_c;",
*[
f"input float {var.name};"
for var in pulse_sequence._program.undeclared_vars.values()
if isinstance(var, FloatVar)
],
"cal {",
" waveform gauss_wf = gaussian((length_g) * 1s, (sigma_g) * 1s, 1, false);",
" waveform drag_gauss_wf = drag_gaussian((length_dg) * 1s,"
Expand Down

0 comments on commit 1bc972b

Please sign in to comment.