rigetti / rigetti/pyquil

Simple program results in core dump

Open
#1,672 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug :bug:
Dominant language
Python
Stars
1.5k
Forks
358
Avg merge
1d 58m
Merged PRs (30d)
4

Description

Pre-Report Checklist

  • I am running the latest versions of pyQuil and the Forest SDK
  • I checked to make sure that this bug has not already been reported

Issue Description

When running a simple program which parses and prints a Quil program, an error message is printed after the program.

How to Reproduce

Code Snippet
from pyquil import get_qc, Program

qc = get_qc("Aspen-M-3")
p = Program("""
DEFCAL I %q:
	DELAY q 4e-8
""")

print(p)
Error Output
DEFCAL I %q:
        DELAY q 4e-8

FATAL: exception not rethrown
[2]    20258 IOT instruction (core dumped)  python test-defcal.py

Environment Context

Operating System: Ubuntu

Python Version (python -V): 3.8.16

Quilc Version (quilc --version): 1.26

QVM Version (qvm --version): 1.17.2

Pyquil Version: 4.0.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the provided Python snippet with the listed pyQuil, quilc, and QVM versions on Ubuntu to reproduce the fatal error and core dump. Trace the path used when parsing and printing the DEFCAL program; done means the program prints without the fatal message or crash, with a regression test covering this example.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.