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

fixed variables


Signed-off-by: Nguyen, Thien'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());
......
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