Deduplicate compiler code
Move the code that gates should be performed before any shuffling into the mapper, since that seems more appropriate. Then we can merge the duplicated compiler code.
Move the code that gates should be performed before any shuffling into the mapper, since that seems more appropriate. Then we can merge the duplicated compiler code.