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

Convert list index to a tuple #125

Merged
merged 1 commit into from
Dec 14, 2022
Merged

Convert list index to a tuple #125

merged 1 commit into from
Dec 14, 2022

Conversation

antalszava
Copy link
Contributor

With a newer version of NumPy, a list containing indices of a NumPy array may result in errors if the list was created using slice objects.

This PR converts the list to a tuple, which seems to work great even with newer NumPy versions.

@codecov
Copy link

codecov bot commented Dec 14, 2022

Codecov Report

Merging #125 (3f3f22c) into master (29458da) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #125   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          490       498    +8     
=========================================
+ Hits           490       498    +8     
Impacted Files Coverage Δ
pennylane_sf/remote.py 100.00% <100.00%> (ø)
pennylane_sf/gbs.py 100.00% <0.00%> (ø)
pennylane_sf/simulator.py 100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@Jaybsoni Jaybsoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Elegant 💯

@Jaybsoni Jaybsoni merged commit 3482c13 into master Dec 14, 2022
@Jaybsoni Jaybsoni deleted the fix_indexing branch December 14, 2022 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants