rigetti / rigetti/pyquil

Defgates print with decimals in pyquil 3, not in pyquil 4

Open
#1,669 1 comment 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

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

image

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.