Defgates print with decimals in pyquil 3, not in pyquil 4
Open
Nobody has claimed this yet.
bug :bug:
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 358
- Avg merge
- 1d 58m
- Merged PRs (30d)
- 4
Description
Code Snippet
import pyquil
import numpy as np
from pyquil.quil import Program
from pyquil.quilbase import DefGate
print(pyquil.__version__)
program = Program()
program += DefGate("BLARG", np.eye(2), [])
print(program)
Error Output
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the supplied Python snippet with pyquil 3 and pyquil 4 and compare the printed Program output for the DefGate. The issue is complete when DefGate output is consistent with the intended formatting and the regression is covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- numpy, python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100