Commit ce9f736a authored by Nguyen, Thien's avatar Nguyen, Thien

Forgot to re-transpose the matrix for validation

Signed-off-by: Nguyen, Thien's avatarThien Nguyen <nguyentm@ornl.gov>
parent bf32390f
......@@ -261,6 +261,7 @@ void MergeTwoQubitBlockOptimizer::apply(std::shared_ptr<CompositeInstruction> pr
// Optimized decomposed sequence:
const auto nbInstructionsAfter = kak->nInstructions();
uMat.transposeInPlace();
// A simplified sequence was found.
if (nbInstructionsAfter < sequence.size() && compareMatIgnoreGlobalPhase(uMat, calcUopt(kak)))
{
......
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