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

Forgot to re-transpose the matrix for validation

Signed-off-by: Nguyen, Thien Minh's avatarThien Nguyen <>
parent bf32390f
......@@ -261,6 +261,7 @@ void MergeTwoQubitBlockOptimizer::apply(std::shared_ptr<CompositeInstruction> pr
// Optimized decomposed sequence:
const auto nbInstructionsAfter = kak->nInstructions();
// 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