Skip to content

Commit

Permalink
Update and fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
sserita committed Sep 19, 2024
1 parent 974119f commit aae7362
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
29 changes: 15 additions & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
'report_pickling': ['pandas'],
'report_pdf_figures': ['matplotlib'],
'html_reports': ['jinja2', 'MarkupSafe'],
'reports':[
'pygsti[report_pickling]',
'pygsti[report_pdf_figures]',
'pygsti[html_reports]'
],
'notebooks': [
'ipython',
'notebook',
Expand All @@ -71,29 +76,25 @@
'pytest',
'pytest-xdist',
'pytest-cov',
'cython', # Don't call this pygsti[extensions] for testing_no_cython logic below
'mpi4py', # Don't call this pygsti[multiprocessor] for no_mpi logic below
'nbval',
'bson',
'csaps',
'cvxopt',
'cvxpy',
'cython',
'matplotlib',
'mpi4py',
'msgpack',
'packaging',
'pandas',
'psutil',
'zmq',
'jinja2',
'seaborn',
'scipy',
'ply',
'qibo<=0.1.7',
'cirq-core',
'notebook',
'ipython',
'jupyter_server',
'torch'
'pygsti[diamond_norm]',
'pygsti[ibmq]',
'pygsti[interpygate]',
'pygsti[msgpack]',
'pygsti[notebooks]',
'pygsti[pytorch]',
'pygsti[reports]',
'pygsti[serialization]'
]
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/objects/test_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def test_convert_to_openqasm(self):
ckt = circuit.Circuit([Label('Gxpi2',0), Label(()), Label([Label('Gh',0), Label('Gtdag',1)]),
Label('Gcnot', (0,1))], line_labels=(0,1))

converted_qasm = ckt.convert_to_openqasm()
converted_qasm = ckt.convert_to_openqasm(include_delay_on_idle=True)
#this is really just doing a check if anything has changed. I.e. an integration test.
expected_qasm = 'OPENQASM 2.0;\ninclude "qelib1.inc";\n\nopaque delay(t) q;\n\nqreg q[2];'\
+'\ncreg cr[2];\n\nu3(1.570796326794897, 4.71238898038469, 1.570796326794897) q[0];\ndelay(0) q[1];'\
Expand Down

0 comments on commit aae7362

Please sign in to comment.