Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
ce9f736a
Commit
ce9f736a
authored
Jul 21, 2020
by
Nguyen, Thien Minh
Browse files
Forgot to re-transpose the matrix for validation
Signed-off-by:
Thien Nguyen
<
nguyentm@ornl.gov
>
parent
bf32390f
Changes
1
Hide whitespace changes
Inline
Side-by-side
quantum/plugins/optimizers/gate_merge/GateMergeOptimizer.cpp
View file @
ce9f736a
...
...
@@ -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
)))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment