- 
                Notifications
    You must be signed in to change notification settings 
- Fork 706
          use ruff and pyupgrade to support 3.11+ python language features
          #7860
        
          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
          
     Merged
      
      
    
  
     Merged
                    Changes from 47 commits
      Commits
    
    
            Show all changes
          
          
            72 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      4dcef02
              
                use ruff to auto fix union stuff
              
              
                andrijapau 21e16be
              
                fix typing.py manually
              
              
                andrijapau 28e6eb7
              
                fix qscript.py manually
              
              
                andrijapau 2415e88
              
                fix shots.py manually
              
              
                andrijapau ff6ddc8
              
                fix typing_util.py manually
              
              
                andrijapau c4e4d45
              
                fix interface_utils.py
              
              
                andrijapau d358f3f
              
                fix remaining errors manually
              
              
                andrijapau 77408eb
              
                Update pennylane/typing.py
              
              
                andrijapau 6c7c638
              
                try removing Union from everywhere
              
              
                andrijapau d4e0146
              
                Merge branch 'random-improvements' of github.com:PennyLaneAI/pennylan…
              
              
                andrijapau a92212e
              
                fix union of strings
              
              
                andrijapau b1c9334
              
                fix interface utils
              
              
                andrijapau 52da4fe
              
                fix
              
              
                andrijapau 4afbb51
              
                Merge branch 'master' into random-improvements
              
              
                andrijapau 654f9fa
              
                Update pennylane/data/base/typing_util.py
              
              
                andrijapau 450b0ad
              
                fix
              
              
                andrijapau 8aa2372
              
                Merge branch 'random-improvements' of github.com:PennyLaneAI/pennylan…
              
              
                andrijapau a943fe6
              
                commit pyupgrade work
              
              
                andrijapau 000755b
              
                ruff fix imports automatically
              
              
                andrijapau 9aa71fa
              
                revert cv.py
              
              
                andrijapau dd912b8
              
                revert files
              
              
                andrijapau c5a564f
              
                fix insert_ops.py
              
              
                andrijapau 900db76
              
                Revert "fix insert_ops.py"
              
              
                andrijapau 4d3e373
              
                fix insert_ops.py
              
              
                andrijapau c059480
              
                fix
              
              
                andrijapau 9c29486
              
                update matrix.py in realspace
              
              
                andrijapau 63f4af1
              
                use dict zip
              
              
                andrijapau c4466a3
              
                Merge branch 'master' into random-improvements
              
              
                andrijapau bd7235f
              
                Merge branch 'master' into random-improvements
              
              
                JerryChen97 005428f
              
                Merge branch 'master' into random-improvements
              
              
                andrijapau 5ef9464
              
                run the pyup_dirs command again
              
              
                andrijapau 69240da
              
                return source_info?
              
              
                andrijapau 1d3ed1c
              
                merge master to this branch
              
              
                andrijapau 0afdcc3
              
                Merge branch 'master' into random-improvements
              
              
                andrijapau b418611
              
                Update pennylane/devices/qubit_mixed/initialize_state.py
              
              
                andrijapau c703826
              
                Update pennylane/devices/qutrit_mixed/initialize_state.py
              
              
                andrijapau bbbfecb
              
                merge master into this branch
              
              
                andrijapau f2f3a0a
              
                changelog
              
              
                andrijapau 726df76
              
                update mitigate.py
              
              
                andrijapau 8f94087
              
                Update pennylane/math/interface_utils.py
              
              
                andrijapau a8d895c
              
                Update pennylane/math/interface_utils.py
              
              
                andrijapau 5f95371
              
                shots.py
              
              
                andrijapau 74c03c5
              
                Merge branch 'random-improvements' of github.com:PennyLaneAI/pennylan…
              
              
                andrijapau c147fb7
              
                Update pennylane/ops/op_math/controlled.py
              
              
                andrijapau 4fc0bc6
              
                Update pennylane/ops/op_math/controlled.py
              
              
                andrijapau e47ed9f
              
                Update pennylane/ops/op_math/controlled.py
              
              
                andrijapau 6d163b5
              
                Update pennylane/ops/op_math/controlled.py
              
              
                andrijapau 58585f8
              
                Update pennylane/ops/op_math/controlled_ops.py
              
              
                andrijapau 12bc7ce
              
                Update pennylane/qcut/kahypar.py
              
              
                andrijapau b54547a
              
                Update pennylane/qcut/kahypar.py
              
              
                andrijapau 5d3aa81
              
                Update pennylane/ops/op_math/sprod.py
              
              
                andrijapau 8dcb4ff
              
                Update pennylane/qcut/cutstrategy.py
              
              
                andrijapau 9f76dbd
              
                Update pennylane/qcut/cutstrategy.py
              
              
                andrijapau fc0325a
              
                Update pennylane/ops/op_math/controlled_ops.py
              
              
                andrijapau 5cded42
              
                Merge branch 'master' into random-improvements
              
              
                andrijapau dde588a
              
                remove wiresenum
              
              
                andrijapau 009dd66
              
                fix
              
              
                andrijapau df76cbb
              
                fix
              
              
                andrijapau d943657
              
                add pyupgrade to pre-commit
              
              
                andrijapau 07102e7
              
                fix
              
              
                andrijapau 9c9d318
              
                fix precommit and makefile
              
              
                andrijapau 7da9201
              
                fix both make and pre-commit
              
              
                andrijapau 52cc0c9
              
                update makefile
              
              
                andrijapau 05700e5
              
                fix
              
              
                andrijapau 3504d33
              
                Update pennylane/measurements/shots.py
              
              
                andrijapau bdb2203
              
                Update doc/releases/changelog-dev.md
              
              
                andrijapau 7055ac0
              
                Merge branch 'master' into random-improvements
              
              
                andrijapau 9041876
              
                fix
              
              
                andrijapau b8c2e3d
              
                Merge branch 'master' into random-improvements
              
              
                andrijapau c33ba7f
              
                fix
              
              
                andrijapau 736f8c9
              
                Merge branch 'master' into random-improvements
              
              
                andrijapau 0abbbc5
              
                Merge branch 'master' into random-improvements
              
              
                andrijapau File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.