Commit b0f31e08 authored by Mccaskey, Alex's avatar Mccaskey, Alex

fixing another nRequiredBits() bug

Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent ff8f41de
Pipeline #113069 passed with stage
in 14 minutes and 56 seconds
......@@ -482,14 +482,14 @@ public:
: Gate("CRZ",
std::vector<InstructionParameter>{InstructionParameter(0.0)}) {}
CRZ(std::size_t qbit, double theta)
: Gate("CRZ", std::vector<std::size_t>{qbit},
CRZ(std::size_t src_qbit, std::size_t tgt_qbit, double theta)
: Gate("CRZ", std::vector<std::size_t>{src_qbit, tgt_qbit},
std::vector<InstructionParameter>{InstructionParameter(theta)}) {}
CRZ(std::vector<std::size_t> qbits)
: Gate("CRZ", qbits,
std::vector<InstructionParameter>{InstructionParameter(0.0)}) {}
const int nRequiredBits() const override { return 1; }
const int nRequiredBits() const override { return 2; }
DEFINE_CLONE(CRZ)
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