ysiraichi / enfield

An OpenQASM source-to-source Compiler.
GNU General Public License v2.0
20 stars 8 forks source link

[BoundedMappingTreeQAllocator]: fix implementation. #37

Closed ysiraichi closed 6 years ago

ysiraichi commented 6 years ago

Whenever using std::priority_queue, we were not setting the comparator, assuming that it would use std::less by default (which it does). However, by using std::less, it sorts in decreasing order (and not increasing order, which was expected). Thus, we changed them all to std::greater, fixing the issue.