Skip to content

Commit 1280e27

Browse files
committed
ignore TQASM result draw function
1 parent d227485 commit 1280e27

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

tensorcircuit/cloud/tencent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,8 @@ def get_task_details(
472472
if "ts" in r:
473473
for k in r["ts"]:
474474
r["ts"][k] = datetime.fromtimestamp(r["ts"][k] / 1e6)
475+
if r["lang"] == "TQASM":
476+
return r
475477
if "source" in r:
476478
r["frontend"] = Circuit.from_openqasm(r["source"])
477479
if "optimization" in r and r["state"] == "completed":

tests/02_test_param_pulse.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ def run_circuit(qc):
6161
# n = qc._nqubits
6262
rf = t.results()
6363
# print(rf)
64+
65+
t.details(prettify=True)
6466
return rf
6567

6668
qc = gen_parametric_waveform_circuit(1.0)

tests/05_test_multi_measure.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def gen_multi_measure_circuit(t):
3434
# 需添加测量指令
3535
qc.measz(0, 1)
3636
qc.cz(0, 1)
37+
qc.h(1)
3738
qc.measz(0, 1)
3839

3940

0 commit comments

Comments
 (0)