Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsing DEFCIRCUIT without qubits #689

Merged

Commits on Nov 12, 2018

  1. Fix parsing DEFCIRCUIT without qubits

    Parsing a DEFCIRCUIT which has no qubit parameters outputs an
    extraneous spacing before the colon:
    
    ```
    >>> from pyquil.parser import parse
    >>> from pyquil._parser.PyQuilListener import run_parser
    >>> from pyquil.quilbase import RawInstr
    >>> print(run_parser("DEFCIRCUIT TEST:\n    MEASURE 0 ro\n"))'
    
    [<RawInstr DEFCIRCUIT TEST :
        MEASURE 0 ro[0]>]
    ```
    notmgsk committed Nov 12, 2018
    Configuration menu
    Copy the full SHA
    83d686e View commit details
    Browse the repository at this point in the history