Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update requirements versions #374

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ disable=fixme, # disabled as TODOs would show up as warnings
unnecessary-pass, # allow for methods with just "pass", for clarity
no-else-return, # relax "elif" after a clause with a return
docstring-first-line-empty, # relax docstring style
import-outside-toplevel
import-outside-toplevel,
not-callable,
cyclic-import



Expand Down
2 changes: 2 additions & 0 deletions qiskit_dynamics/backend/dynamics_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,12 +1106,14 @@ def _get_backend_channel_freqs(

for channel in drive_channels:
idx = int(channel[1:])
# pylint: disable=possibly-used-before-assignment
if idx >= len(drive_frequencies):
raise QiskitError(f"DriveChannel index {idx} is out of bounds.")
channel_freqs[channel] = drive_frequencies[idx]

for channel in meas_channels:
idx = int(channel[1:])
# pylint: disable=possibly-used-before-assignment
if idx >= len(meas_frequencies):
raise QiskitError(f"MeasureChannel index {idx} is out of bounds.")
channel_freqs[channel] = meas_frequencies[idx]
Expand Down
1 change: 1 addition & 0 deletions qiskit_dynamics/solvers/solver_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ def rhs(t, y):
# convert results to correct basis if necessary
if isinstance(generator, BaseGeneratorModel):
if not model_in_frame_basis:
# pylint: disable=possibly-used-before-assignment
results.y = results_y_out_of_frame_basis(generator, results.y, y0.ndim)

generator.in_frame_basis = model_in_frame_basis
Expand Down
6 changes: 3 additions & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
stestr>=3.0.0
astroid==2.14.2
pylint==2.16.2
astroid==3.2.2
pylint==3.2.3
black~=24.1
qiskit-sphinx-theme~=2.0
sphinx-autodoc-typehints
Expand All @@ -9,7 +9,7 @@ jupyter-sphinx
# https://github.com/jupyter/jupyter-sphinx/pull/226 is resolved.
ipykernel>=4.5.1
pygments>=2.4
reno>=3.4.0
reno>=4.1.0
nbsphinx
sphinxcontrib-bibtex
qutip
Expand Down
Loading