Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a57c36f

Browse files
rabi base
1 parent 8df9d40 commit a57c36f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎experiments/rabi.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
def test_parametric_waveform():
1919
qc = Circuit(2)
2020

21-
param0 = Param("param0")
22-
param1 = Param("param1")
21+
param0 = Param("a")
22+
param1 = Param("b")
2323

2424
builder = qc.calibrate("my_gate", [param0, param1])
2525
builder.new_frame("f0", param0)
@@ -33,10 +33,10 @@ def test_parametric_waveform():
3333
print(tqasm_code)
3434

3535
assert "TQASM 0.2;" in tqasm_code
36-
assert "defcal my_gate param0, param1" in tqasm_code
37-
assert "frame f0 = newframe(param0);" in tqasm_code
36+
assert "defcal my_gate a, b" in tqasm_code
37+
assert "frame f0 = newframe(a);" in tqasm_code
3838
assert "play(f0, cosine_drag(10, 0.2, 0.5*PI, 0.01));" in tqasm_code
39-
assert "frame f1 = newframe(param1);" in tqasm_code
39+
assert "frame f1 = newframe(b);" in tqasm_code
4040
assert "play(f1, cosine_drag(20, 0.01, 0, 0));" in tqasm_code
4141
assert re.search(r"defcal my_gate [^\)]* \s*\{", tqasm_code)
4242

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /