We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8df9d40 commit a57c36fCopy full SHA for a57c36f
experiments/rabi.py
@@ -18,8 +18,8 @@
18
def test_parametric_waveform():
19
qc = Circuit(2)
20
21
- param0 = Param("param0")
22
- param1 = Param("param1")
+ param0 = Param("a")
+ param1 = Param("b")
23
24
builder = qc.calibrate("my_gate", [param0, param1])
25
builder.new_frame("f0", param0)
@@ -33,10 +33,10 @@ def test_parametric_waveform():
33
print(tqasm_code)
34
35
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
+ assert "defcal my_gate a, b" in tqasm_code
+ assert "frame f0 = newframe(a);" in tqasm_code
38
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
+ assert "frame f1 = newframe(b);" in tqasm_code
40
assert "play(f1, cosine_drag(20, 0.01, 0, 0));" in tqasm_code
41
assert re.search(r"defcal my_gate [^\)]* \s*\{", tqasm_code)
42
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments