rigetti / pyquil

A Python library for quantum programming using Quil.
http://docs.rigetti.com
Apache License 2.0
1.39k stars 341 forks source link

DELAY accepts frames with no qubits #1781

Open mhodson-rigetti opened 1 month ago

mhodson-rigetti commented 1 month ago

Pre-Report Checklist

Issue Description

The following pyquil program parses successfully, but is not IAW the Quil specification section 12.7 which says DELAY must have at least one qubit identifier.

program = Program("""
DELAY "FrameA" "FrameB" "FrameC" 2.48e-7
""")

Environment Context

pyquil==4.10.1