Commit 93039092 authored by Nguyen, Thien's avatar Nguyen, Thien
Browse files

Since we're doing a inst-by-inst to get native code, need to set memory buffer index


Signed-off-by: Nguyen, Thien's avatarThien Nguyen <nguyentm@ornl.gov>
parent 99920c0a
......@@ -1275,7 +1275,11 @@ IBMAccelerator::getNativeCode(std::shared_ptr<CompositeInstruction> program,
if (nextInst->isEnabled() && !nextInst->isComposite()) {
auto visitor = std::make_shared<QObjectExperimentVisitor>(
program->name(), program->nLogicalBits(), gateSet);
visitor->maxMemorySlots = memSlots;
nextInst->accept(visitor);
if (nextInst->name() == "Measure") {
++memSlots;
}
auto experiment = visitor->getExperiment();
for (auto &inst : experiment.get_instructions()) {
// std::cout << "HOWDY: " << inst.toString() << "\n";
......
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