Skip to content

Commit

Permalink
try add gate to test
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-melf committed Nov 6, 2023
1 parent e83f719 commit 311a70f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/pyquil_convert_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
CPHASE,
SWAP,
MEASURE,
XY,
)
from pyquil.quilbase import Measurement
from sympy import pi, Symbol
Expand Down Expand Up @@ -78,6 +79,7 @@ def get_test_program(measure: bool = False) -> Program:
p += CCNOT(0, 1, 2)
p += CPHASE(PI / 4, 2, 1)
p += SWAP(0, 3)
p += XY(PI / 3, 2, 1)
if measure:
ro = p.declare("ro", "BIT", 4)
p += MEASURE(0, ro[0])
Expand Down

0 comments on commit 311a70f

Please sign in to comment.