quil-lang / quilc

The optimizing Quil compiler.
Apache License 2.0
460 stars 72 forks source link

Expand compressor to enqueue classical instructions #90

Open ecpeterson opened 5 years ago

ecpeterson commented 5 years ago

At present, instructions that write to classical registers are immediately redirected to output, flushing any other instruction sequences that share that classical resource. This is unnecessarily aggressive: it is definitely possible (and even desirable) to perform compression on classical instructions, and it would be better to integrate these into the existing queueing logic. The main obstacle is extending the indexing of the queueing system to accommodate this, as it is currently tightly bound to the hardware-object instances that embody components on the quantum device itself.

ecpeterson commented 4 years ago

This (along with the rest of the governed-queue part of the compressor apparatus) would probably be obviated by #486 .