File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff 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" :
Original file line number Diff line number Diff 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
6668qc = gen_parametric_waveform_circuit (1.0 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments