Commit 044059d4 authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Quil visitor use theta string rather than trying to cast to double



This is problematic when there is a U3 gate: it will create a Ry with string param, then revisit.

Signed-off-by: Nguyen, Thien Minh's avatarThien Nguyen <nguyentm@ornl.gov>
parent 9a05f149
......@@ -146,7 +146,7 @@ public:
quilStr += "RY("+angleStr+") " + qubit + "\n";
} else {
Rx rx1(ry.bits()[0], xacc::constants::pi/2.);
Rz rz1(ry.bits()[0], ry.getParameter(0).as<double>());
Rz rz1(ry.bits()[0], angleStr);
Rx rx2(ry.bits()[0], -xacc::constants::pi/2.);
visit(rx1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment