quil-lang / quilc

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

Forbid the declaration of zero-length classical vectors #910

Closed jbouwman closed 8 months ago

jbouwman commented 8 months ago

If zero-length vectors are allowed, qvm crashes in allocate-memory-for-model with the error:

The value of QVM::SIZE is 0, which is not The SIZE wasn't a multiple of 8..
   [Condition of type SIMPLE-TYPE-ERROR]