You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the code in the attached example notebook incorrect circuit renderings result.
Problem 1:
SITUATION: a 2-qubit gate acts on qubits that are not given in increasing order, such as XY(np.pi,2,1)
BUG DESCRIPTION: the gate will connect the wrong gates (see the first code snippet below).
Problem 2:
SITUATION: circuit includes CPHASE
BUG DESCRIPTION: CPHASE is not correctly represented (see the second code snippet below).
How to Reproduce
Please see the code snippets below.
Please also see notebook sandbox.ipynb in attached sandbox.zip.
from pyquil.quil import Pragma, Program
from pyquil.gates import CNOT, H, XY, CPHASE, I
from pyquil import latex
import numpy as np
p = Program()
p += CPHASE(0.1,1,2)
print(p)
print(latex.to_latex(p))
Pre-Report Checklist
Issue Description
When running the code in the attached example notebook incorrect circuit renderings result.
Problem 1:
SITUATION: a 2-qubit gate acts on qubits that are not given in increasing order, such as XY(np.pi,2,1)
BUG DESCRIPTION: the gate will connect the wrong gates (see the first code snippet below).
Problem 2:
SITUATION: circuit includes CPHASE
BUG DESCRIPTION: CPHASE is not correctly represented (see the second code snippet below).
How to Reproduce
Please see the code snippets below.
Please also see notebook sandbox.ipynb in attached sandbox.zip.
Please also see attached output draw_circuit.pdf.
Code Snippets
sandbox.zip
draw_circuit.pdf
The text was updated successfully, but these errors were encountered: