Commit 2cdd96fb authored by Nguyen, Thien's avatar Nguyen, Thien
Browse files

Fixed CPhase gate def



nRequiredBits should be 2. This cause the XASM compiler to reject valid expressions, e.g. CPhase(q[0], q[1], 3.14).
Signed-off-by: Nguyen, Thien's avatarThien Nguyen <nguyentm@ornl.gov>
parent f0c0b38e
......@@ -387,7 +387,7 @@ public:
: Gate("CPhase", qbits,
std::vector<InstructionParameter>{InstructionParameter(0.0)}) {}
const int nRequiredBits() const override { return 1; }
const int nRequiredBits() const override { return 2; }
DEFINE_CLONE(CPhase)
DEFINE_VISITABLE()
......
Markdown is supported
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