Commit 88d4789f authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

fixed variables



Signed-off-by: Nguyen, Thien Minh's avatarThien Nguyen <nguyentm@ornl.gov>
parent e0b736a8
......@@ -48,6 +48,7 @@ bool QAOA::expand(const xacc::HeterogeneousMap& runtimeOptions)
// Expand to a parametric kernel
auto kernel = constructParameterizedKernel();
clear();
variables = kernel->getVariables();
for (int instId = 0; instId < kernel->nInstructions(); ++instId)
{
addInstruction(kernel->getInstruction(instId)->clone());
......
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