Skip to content

Commit

Permalink
Add networkx dependency and fix beta tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
sserita committed Jan 15, 2025
1 parent c4410d5 commit 63beb0b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ numpy
scipy
plotly
pandas
networkx
1 change: 1 addition & 0 deletions rtd-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ numpy
scipy
plotly
pandas
networkx
numpydoc
sphinx==6.2.1
sphinx_rtd_theme>=1.2.2
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,11 @@ def setup_with_extensions(extensions=None):
'numpy>=1.15.0',
'scipy',
'plotly',
'pandas'
'pandas',
'networkx'
],
extras_require=extras,
python_requires='>=3.5',
python_requires='>=3.8',
platforms=["any"],
url='http://www.pygsti.info',
download_url='https://github.com/pyGSTio/pyGSTi/tarball/master',
Expand Down
2 changes: 1 addition & 1 deletion test/test_packages/extras/test_interpygate.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def advance(self, state, v, times):
L = dephasing * self.dephasing_generator + decoherence * self.decoherence_generator

processes = [change_basis(_expm((H + L) * t), 'pp', 'col') for t in times]
states = [unvec_square(_np.dot(process, _np.outer(state, state.conj())).ravel(order='F'),'F') for process in processes]
states = [unvec_square(_np.dot(process, _np.outer(state, state.conj()).ravel(order='F')),'F') for process in processes]

return states

Expand Down

0 comments on commit 63beb0b

Please sign in to comment.