You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently, the test will fail when running test with julia --project --code-coverage. this is because the inserted Expr(:code_coverage_effect) somehow breaks it. to reproduce the problem, run following with julia --project --code-coverage:
using YaoCompiler
qasm"""OPENQASM 2.0;include "test/compiler/qelib1.inc";gate post q {x q;}"""@devicefunctioncircuit()
1:3=>ccx()
(2, 3) =>cx()
2=>h()
c =@measure1if c ==13=>post()
end3=>rx(1.0)
return (c=c, )
end
ci, =@code_yao optimize =truecircuit()
where %90 is Main.tdg which is a constant, so %94 should be a constant too, but it isn't. I guess I need your help on this again @vchuravy I find out how to fix it in #11
The text was updated successfully, but these errors were encountered:
currently, the test will fail when running test with
julia --project --code-coverage
. this is because the insertedExpr(:code_coverage_effect)
somehow breaks it. to reproduce the problem, run following withjulia --project --code-coverage
:and you will see
where
%90
isMain.tdg
which is a constant, so%94
should be a constant too, but it isn't.I guess I need your help on this again @vchuravyI find out how to fix it in #11The text was updated successfully, but these errors were encountered: