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

Speed up dispatching with autoray #4261

Closed
wants to merge 57 commits into from
Closed

Commits on Jun 16, 2023

  1. Remove custom registration of ndim and shape and use caching for in-p…

    …lace import module import.
    frederikwilde committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    2b608b6 View commit details
    Browse the repository at this point in the history
  2. Implement custom ndim and shape in qml.math to catch slow autograd Ar…

    …rayBox operations. Disable _check_batching for set_parameters in copied operators to reduce do overheads.
    frederikwilde committed Jun 16, 2023
    Configuration menu
    Copy the full SHA
    1cfba84 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2023

  1. Dispatch to old Jordan-Wigner function from new one (#4253)

    * pylint errors
    
    * update changelog
    
    * tidy up
    
    * hopefully fix formatting complaints
    
    * hopefully fix formatting complaints
    
    * Update doc/releases/changelog-dev.md
    
    * formatting and codecov
    
    * leave original jordan_wigner docstring in place so qchem documentation is unchanged
    
    * Update pennylane/fermi/conversion.py
    
    * fix docstring issue with dispatch
    
    * Revert "fix docstring issue with dispatch"
    
    This reverts commit 9f3e736.
    lillian542 authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    679f5de View commit details
    Browse the repository at this point in the history
  2. Update qcut to stop relying on operator hash (#4227)

    * Updated qcut
    
    * Updated qcut tests
    
    * Updated changelog
    
    * Makde changelog entry moree descriptive
    
    * Add the `FermiSentence` class (#4195)
    
    * create fermiword class
    
    * create fermisentence class
    
    * [skip ci] modify order
    
    * [skip ci] remove unused import
    
    * [skip ci] add deepcopy method
    
    * [skip ci] replace list with generator
    
    * [skip ci] add tests
    
    * [skip ci] add tests
    
    * [skip ci] add tests
    
    * add tests
    
    * [skip ci] run black
    
    * [skip ci] copy fermiword
    
    * [skip ci] rebase and fix conflict
    
    * [skip ci] run black
    
    * [skip ci] copy fermiword
    
    * [skip ci] add tests
    
    * add test to tests_passing_pylint
    
    * add sum mult test
    
    * [skip ci] add tests
    
    * [skip ci] add pow tests
    
    * add tests
    
    * fix pylint
    
    * add error tests
    
    * fix pylint
    
    * add TODO
    
    * modify docstrings
    
    * update changelog
    
    * update changelog
    
    * modify docstrings
    
    * fix codecov
    
    * add code review comments
    
    * add test for indices
    
    * fix codefactor
    
    * Update pennylane/fermi/fermionic.py
    
    Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
    
    * black
    
    * update todos
    
    * update tests
    
    * Apply suggestions from code review
    
    * handle grouping in product of FermiSentences
    
    * Update pennylane/fermi/fermionic.py
    
    Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
    
    * refactor __mul__
    
    * Apply suggestions from code review
    
    Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
    
    ---------
    
    Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
    Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
    Co-authored-by: lillian542 <Lillian.frederiksen@xanadu.ai>
    
    * Update Docker Plugins (#4178)
    
    * Removed sf and added quantuminspire plugins
    
    * Updated interface versions to those in CI.
    
    * Updatede interface-gpu versions
    
    * Updated Jaxlib for GPU to 0.4.10
    
    * Update docker/interfaces/install-interface-gpu.sh
    
    Co-authored-by: Matthew Silverman <ma.silv11@gmail.com>
    
    ---------
    
    Co-authored-by: Matthew Silverman <ma.silv11@gmail.com>
    
    * Fix adjoint jacobian with grad on execution false (#4217)
    
    * Fix
    
    * Update
    
    * Add changelog
    
    * Update pennylane/interfaces/execution.py
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    
    * Update doc/releases/changelog-dev.md
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    
    * Black
    
    ---------
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    
    * Trigger CI
    
    * Update doc/releases/changelog-dev.md
    
    * Updating to fix docs build
    
    * Further changes to fix doc build
    
    * Fixed KaHyPar tests
    
    * Update pennylane/operation.py
    
    * Added legacy tests
    
    * Added new eq and hash to test changes
    
    * Testing to see if anything fails with new hash
    
    * Reverted changes to op hash
    
    * Testing what updated equality breaks
    
    * Reverted op.__eq__
    
    * Update docstrings to reflect changes to nodes
    
    * Update pennylane/transforms/qcut/processing.py
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    ---------
    
    Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
    Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
    Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
    Co-authored-by: lillian542 <Lillian.frederiksen@xanadu.ai>
    Co-authored-by: Manul Patel <77568048+manulpatel@users.noreply.github.com>
    Co-authored-by: Matthew Silverman <ma.silv11@gmail.com>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    10 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    91d86ce View commit details
    Browse the repository at this point in the history
  3. More fermionic dunders (#4209)

    * create fermiword class
    
    * create fermisentence class
    
    * [skip ci] modify order
    
    * [skip ci] remove unused import
    
    * [skip ci] add deepcopy method
    
    * [skip ci] replace list with generator
    
    * [skip ci] add tests
    
    * [skip ci] add tests
    
    * [skip ci] add tests
    
    * add tests
    
    * [skip ci] run black
    
    * [skip ci] copy fermiword
    
    * [skip ci] rebase and fix conflict
    
    * [skip ci] run black
    
    * [skip ci] copy fermiword
    
    * [skip ci] add tests
    
    * add test to tests_passing_pylint
    
    * add sum mult test
    
    * [skip ci] add tests
    
    * [skip ci] add pow tests
    
    * add tests
    
    * fix pylint
    
    * add error tests
    
    * fix pylint
    
    * add TODO
    
    * modify docstrings
    
    * update changelog
    
    * update changelog
    
    * modify docstrings
    
    * fix codecov
    
    * add code review comments
    
    * add test for indices
    
    * fix codefactor
    
    * multiply FermiWord and FermiSentence
    
    * add tests for fw * fs
    
    * add and test multiplying fermiword with  integer or float
    
    * allow number times fermi sentence
    
    * update tests
    
    * Allow subtracting one FermiSentence from another
    
    * Allow substraction
    
    * clean up formatting and tests
    
    * Add multiplication by complex
    
    * Add more tests and reorganize
    
    * update change log
    
    * add test
    
    * black formatting
    
    * Add constants to FermiWord and FermiSentence
    
    * add tests
    
    * radd and rsub methods plus tests
    
    * missing lines for codecov
    
    * start adding support for tensors
    
    * numpy and pennylane numpy tensors plus tests for __add__ and __sub__
    
    * add tests for multiplying by tensor
    
    * fix formatting issues post merge
    
    * add comment regarding overriding numpy dunders
    
    * Apply suggestions from code review
    
    Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
    
    * check len of array before adding to FeriSentence
    
    * Raise error if array with len>2 is passed to arithmetic dunders
    
    * Apply suggestions from code review
    
    Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
    
    * Update doc/releases/changelog-dev.md
    
    * round to 10 digits
    
    ---------
    
    Co-authored-by: soranjh <soranjh@yahoo.com>
    Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
    Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
    4 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    4ec0a01 View commit details
    Browse the repository at this point in the history
  4. Support broadcasting in measure and measure_with_samples (#4238)

    * Support broadcasting in state measurements
    
    * docs for is_state_batched
    
    * Support broadcasting in sample measurements
    
    * Apply suggestions from code review
    
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    
    * black
    
    * black
    
    * Remove total_copies
    
    * fix
    
    ---------
    
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    2 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    1fadda4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    054c93e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    58c45db View commit details
    Browse the repository at this point in the history
  7. Raise a warning when applying a pulse gradient transform to a QNode d…

    …irectly (#4241)
    
    * introduce warning and tests
    
    * changelog, recommendation
    
    * docstrings
    
    * fix test
    
    * switch to raising an error instead
    
    * Apply suggestions from code review
    
    Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
    
    * fix tests
    
    ---------
    
    Co-authored-by: Korbinian Kottmann <Korbinian.Kottmann@gmail.com>
    Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
    3 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    b6dbf66 View commit details
    Browse the repository at this point in the history
  8. torch integration for DefaultQubit2 (#4257)

    * copy-paste from autograd to torch
    
    * little fix in torch.py; get tests passing
    
    * changelog
    
    * put back the default tensor type after tests
    
    ---------
    
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    2 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    5dd87fe View commit details
    Browse the repository at this point in the history
  9. Create projectors in any basis (#4192)

    * First version of StateVectorProjector
    
    * Outer product fix
    
    * Support projector in default qubit
    
    * change inheritance
    
    * consistent diagonalizing gates
    
    * Update docstring
    
    * Proper bra-ket in label
    
    * Tests for StateVectorProjector
    
    * fix tests
    
    * Projector prototype
    
    * Explicit signature and pow method
    
    * discard hacky prototype
    
    * New hack (thanks Tymmy <3)
    
    * Exception tests
    
    * Docstring for __new__
    
    * Label method adds matrix to cache
    
    * tests for label method
    
    * Update docstrings
    
    * Update changelog
    
    * enhanced docstring for label method
    
    * `Projector.__new__` docstring rephrased
    
    * Fix docstring
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * Remove boolean kwarg
    
    * Remove `basis_representation` from changelog
    
    * Fix wire length issue
    
    * Update Projector example in docstring
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * Update changelog description
    
    Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
    
    * Update projector description
    
    Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
    
    * change argument names to be `state`
    
    * Remove shape indication in docstring
    
    Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
    
    * fix expval with state vector projector
    
    * Code example and remove hidden class docstring
    
    * minor docstring corrections
    
    * add expval test (it was failing)
    
    * projector bind new parameters dispatcher
    
    * Update error string
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * fix projector and qubit device
    
    * extensive projector testing
    
    * remove outdated test
    
    * fix tests typo
    
    * Additional indications on input shape
    
    Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
    
    * revision feedback
    
    * update copy
    
    ---------
    
    Co-authored-by: = <=>
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
    Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
    4 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    841150f View commit details
    Browse the repository at this point in the history
  10. Update sporadically failing Hermitian test (#4258)

    * update test
    
    * fix comments
    
    * see if this fixes mocking
    
    * Add pytest fixture Hermitian._eigs={} before each test
    
    * Update tests/ops/qubit/test_observables.py
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    2 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    3863cbd View commit details
    Browse the repository at this point in the history
  11. move dispatching into function to fix docstrings (#4260)

    Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
    2 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    86ab67e View commit details
    Browse the repository at this point in the history
  12. Update tapering.py to support operator arithmetic (#4252)

    * save changes to tapering
    
    * add tapering update + tests
    
    * more testing
    
    * lint and tests
    
    * more tests
    
    * Apply suggestions from code review
    
    Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
    
    * added more tests
    
    * fix bug
    
    * lint
    
    * lint
    
    * lint
    
    * lint + codecov
    
    * more tests
    
    * Added test and warning message for coverage
    
    * Update pennylane/ops/functions/generator.py
    
    Co-authored-by: Utkarsh <utkarshazad98@gmail.com>
    
    * lint
    
    * lint and codefactor
    
    * lint + changelog
    
    * fix tests + lint
    
    * code review
    
    ---------
    
    Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
    Co-authored-by: Utkarsh <utkarshazad98@gmail.com>
    3 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    687b00b View commit details
    Browse the repository at this point in the history
  13. Fix bug in fermi op arithmetic for np.array([1, 2])[0] (#4262)

    * switch len with qml.math.size
    
    * update change log
    lillian542 authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    ddc8ef8 View commit details
    Browse the repository at this point in the history
  14. Deprecate the methods of default.qubit (#4145)

    * Add deprecation warning to  public methods
    
    * Updated to not raise warnings in normal execution
    
    * Updated deprecation page
    
    * Added tests
    
    * Added qnode execution test
    
    * Updated tests to use recwarn
    
    * Added moer context to deprecations
    
    * Updated deprecations; removed warnings
    
    * Reverted pytest.ini
    
    * Removed unused import
    
    * Apply suggestions from code review
    
    Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
    
    * Updated  docstring
    
    * Added more warnings
    
    * Fixed name
    
    * Reformatting
    
    * Reverted changes to `operations`, `observables`
    
    * Updated where deprecation is shown
    
    * Formatting
    
    * Updated plugin doc
    
    * Updated per review
    
    ---------
    
    Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
    2 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    d5a1135 View commit details
    Browse the repository at this point in the history
  15. [skip ci] Add more registered dispatches to bind_new_parameters (#4256

    )
    
    * Updated `bind_new_parameters`
    
    * Updated `bind_new_parameters` and tests
    
    * New op
    
    * Added tests
    
    * Updated changelog
    
    * Black
    
    * Fixed error
    
    * Updated for CodeFactor
    mudit2812 authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    af7c355 View commit details
    Browse the repository at this point in the history
  16. Support broadcasting in simulate and preprocess (#4244)

    * Support broadcasting in state measurements
    
    * docs for is_state_batched
    
    * Support broadcasting in sample measurements
    
    * Support broadcastingin simulate and preprocess
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    2 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    83a29db View commit details
    Browse the repository at this point in the history
  17. Allow classical shadow measurements in new device (#4162)

    * Support classical shadow measurements
    
    * Add shot vector tests
    
    * Address comments
    
    * Add comment for diag_list
    
    * Apply suggestions from code review
    
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    
    * Fix
    
    * Add unit tests for process_state_with_shots
    
    * Update preprocessing
    
    * Apply suggestions from code review
    
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    
    * Address PR comments
    
    * set rng for test
    
    ---------
    
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    3 people committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    82f3e71 View commit details
    Browse the repository at this point in the history
  18. Add the fermi module docs (#4250)

    soranjh authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    7f96eae View commit details
    Browse the repository at this point in the history
  19. support trainable Sum observables (#4251)

    * support trainable Sum observables (analytic only)
    
    * just use pre-rotated state; use super with finite shots
    
    * fix tests; add test for trainable Sum coeffs
    
    * changelog
    
    * use overlapping wires to prove they work
    
    * add hacky gradient support
    
    * Revert "add hacky gradient support"
    
    This reverts commit 09009c8.
    
    * set interface=None to keep test behaviour
    timmysilv authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    ac0833b View commit details
    Browse the repository at this point in the history
  20. Integrate experimental device with the QNode (#4196)

    * integrate qnode with new device
    
    * some diff method improvements
    
    * repr methods
    
    * add tests, always pass config to device
    
    * add tests, always pass config to device
    
    * final test
    
    * pylint
    
    * autograd integration tests
    
    * pylint
    
    * Update pennylane/interfaces/execution.py
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * pass shots through methods
    
    * changelog
    
    * revert set shots change
    
    * Apply suggestions from code review
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * revert executionc hange, pylint:
    
    * pylint again
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    3 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    d80b325 View commit details
    Browse the repository at this point in the history
  21. pre-release for v0.31.0 (#4265)

    * pre-release for v0.31.0
    
    * Update doc/releases/changelog-0.31.0.md
    timmysilv authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    392c7d5 View commit details
    Browse the repository at this point in the history
  22. Incrementing the version number to v0.32.0-dev (#4266)

    * pre-release for v0.31.0
    
    * Update doc/releases/changelog-0.31.0.md
    
    * Incrementing the version number to v0.32.0-dev
    timmysilv authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    93ee5bb View commit details
    Browse the repository at this point in the history
  23. Update installation.rst (#4247)

    Update Python version to 3.8
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    2 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    b103aeb View commit details
    Browse the repository at this point in the history
  24. add emojis to changelog (#4267)

    timmysilv authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    0ff6c3e View commit details
    Browse the repository at this point in the history
  25. Daily rc sync to master (#4273)

    * Support `HardwareHamiltonian` pulses in `stoch_pulse_grad` (#4215)
    
    * single out gradient transform checks
    
    * rename stochastic pulse gradient file
    
    * unify gradient_analysis and grad_method_validation
    
    * continue restructure of analysis+validation
    
    * CV
    
    * black
    
    * modularize more
    
    * more modularizing
    
    * black
    
    * tiny [skip ci]
    
    * [skip ci] lint
    
    * remove dummy test
    
    * test fix
    
    * add test file to linting test file
    
    * test fixes, docstrings
    
    * code review
    
    * docstring gradient_analysis_and_grad_method_validation
    
    * move first fun
    
    * code review:move functions
    
    * test regex
    
    * regexs
    
    * move and promote reorder_grads
    
    * tmp
    
    * more tmp
    
    * test cases, contractions
    
    * lint
    
    * docstring
    
    * even more tmp
    
    * cleanup
    
    * black
    
    * tmp
    
    * lint
    
    * move stoch_pulse_gradient.. files back to pulse_gradient...
    
    * move stoch_pulse_gradient.. files back to pulse_gradient...
    
    * lint
    
    * rename
    
    * extend functions and tests
    
    * lint and black
    
    * changelog
    
    * improve
    
    * update example to include non-Pauli word generator
    
    * add jit test with pauli sentence
    
    * tmp
    
    * debugging, docstring, extend test
    
    * review
    
    * optimize for Pauli words
    
    * Apply suggestions from code review
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * test cases code review
    
    * fix parametrization
    
    * drafting
    
    * working prototype
    
    * finish merge; cleanup
    
    * changelog
    
    * comments
    
    * [skip ci]
    
    * raising an error; cleanup [skip ci]
    
    * Apply suggestions from code review
    
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    
    * change contraction idea
    
    * typo in docs
    
    * tests
    
    * remove prints
    
    * fix test
    
    * test descriptions
    
    * fix merge
    
    * format
    
    * code review; test coverage
    
    * coverage reordering
    
    * fix
    
    * trigger CI
    
    * trigger
    
    * clear caches
    
    * trigger
    
    * trigger
    
    ---------
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    Co-authored-by: Korbinian Kottmann <Korbinian.Kottmann@gmail.com>
    
    * Fix batching of derivative tapes in autograd (#4245)
    
    * exclude files from pr
    
    ---------
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    Co-authored-by: Korbinian Kottmann <Korbinian.Kottmann@gmail.com>
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    Co-authored-by: GitHub Actions Bot <>
    6 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    e2a1457 View commit details
    Browse the repository at this point in the history
  26. Add timmysilv to RC sync reviewers (#4277)

    Co-authored-by: Christina Lee <christina@xanadu.ai>
    2 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    63d93a4 View commit details
    Browse the repository at this point in the history
  27. Daily rc sync to master (#4281)

    * Support `HardwareHamiltonian` pulses in `stoch_pulse_grad` (#4215)
    
    * single out gradient transform checks
    
    * rename stochastic pulse gradient file
    
    * unify gradient_analysis and grad_method_validation
    
    * continue restructure of analysis+validation
    
    * CV
    
    * black
    
    * modularize more
    
    * more modularizing
    
    * black
    
    * tiny [skip ci]
    
    * [skip ci] lint
    
    * remove dummy test
    
    * test fix
    
    * add test file to linting test file
    
    * test fixes, docstrings
    
    * code review
    
    * docstring gradient_analysis_and_grad_method_validation
    
    * move first fun
    
    * code review:move functions
    
    * test regex
    
    * regexs
    
    * move and promote reorder_grads
    
    * tmp
    
    * more tmp
    
    * test cases, contractions
    
    * lint
    
    * docstring
    
    * even more tmp
    
    * cleanup
    
    * black
    
    * tmp
    
    * lint
    
    * move stoch_pulse_gradient.. files back to pulse_gradient...
    
    * move stoch_pulse_gradient.. files back to pulse_gradient...
    
    * lint
    
    * rename
    
    * extend functions and tests
    
    * lint and black
    
    * changelog
    
    * improve
    
    * update example to include non-Pauli word generator
    
    * add jit test with pauli sentence
    
    * tmp
    
    * debugging, docstring, extend test
    
    * review
    
    * optimize for Pauli words
    
    * Apply suggestions from code review
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * test cases code review
    
    * fix parametrization
    
    * drafting
    
    * working prototype
    
    * finish merge; cleanup
    
    * changelog
    
    * comments
    
    * [skip ci]
    
    * raising an error; cleanup [skip ci]
    
    * Apply suggestions from code review
    
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    
    * change contraction idea
    
    * typo in docs
    
    * tests
    
    * remove prints
    
    * fix test
    
    * test descriptions
    
    * fix merge
    
    * format
    
    * code review; test coverage
    
    * coverage reordering
    
    * fix
    
    * trigger CI
    
    * trigger
    
    * clear caches
    
    * trigger
    
    * trigger
    
    ---------
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    Co-authored-by: Korbinian Kottmann <Korbinian.Kottmann@gmail.com>
    
    * Fix batching of derivative tapes in autograd (#4245)
    
    * Fix `expval` of `Sum` with broadcasting (#4275)
    
    * fix bug and add test
    
    * changelog addition
    
    * Various doc fixes (#4268)
    
    * exclude files from pr
    
    ---------
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    Co-authored-by: Korbinian Kottmann <Korbinian.Kottmann@gmail.com>
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    Co-authored-by: Edward Jiang <34989448+eddddddy@users.noreply.github.com>
    Co-authored-by: GitHub Actions Bot <>
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    8 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    1565f9f View commit details
    Browse the repository at this point in the history
  28. Daily rc sync to master (#4294)

    * Support `HardwareHamiltonian` pulses in `stoch_pulse_grad` (#4215)
    
    * single out gradient transform checks
    
    * rename stochastic pulse gradient file
    
    * unify gradient_analysis and grad_method_validation
    
    * continue restructure of analysis+validation
    
    * CV
    
    * black
    
    * modularize more
    
    * more modularizing
    
    * black
    
    * tiny [skip ci]
    
    * [skip ci] lint
    
    * remove dummy test
    
    * test fix
    
    * add test file to linting test file
    
    * test fixes, docstrings
    
    * code review
    
    * docstring gradient_analysis_and_grad_method_validation
    
    * move first fun
    
    * code review:move functions
    
    * test regex
    
    * regexs
    
    * move and promote reorder_grads
    
    * tmp
    
    * more tmp
    
    * test cases, contractions
    
    * lint
    
    * docstring
    
    * even more tmp
    
    * cleanup
    
    * black
    
    * tmp
    
    * lint
    
    * move stoch_pulse_gradient.. files back to pulse_gradient...
    
    * move stoch_pulse_gradient.. files back to pulse_gradient...
    
    * lint
    
    * rename
    
    * extend functions and tests
    
    * lint and black
    
    * changelog
    
    * improve
    
    * update example to include non-Pauli word generator
    
    * add jit test with pauli sentence
    
    * tmp
    
    * debugging, docstring, extend test
    
    * review
    
    * optimize for Pauli words
    
    * Apply suggestions from code review
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * test cases code review
    
    * fix parametrization
    
    * drafting
    
    * working prototype
    
    * finish merge; cleanup
    
    * changelog
    
    * comments
    
    * [skip ci]
    
    * raising an error; cleanup [skip ci]
    
    * Apply suggestions from code review
    
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    
    * change contraction idea
    
    * typo in docs
    
    * tests
    
    * remove prints
    
    * fix test
    
    * test descriptions
    
    * fix merge
    
    * format
    
    * code review; test coverage
    
    * coverage reordering
    
    * fix
    
    * trigger CI
    
    * trigger
    
    * clear caches
    
    * trigger
    
    * trigger
    
    ---------
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    Co-authored-by: Korbinian Kottmann <Korbinian.Kottmann@gmail.com>
    
    * Fix batching of derivative tapes in autograd (#4245)
    
    * Fix `expval` of `Sum` with broadcasting (#4275)
    
    * fix bug and add test
    
    * changelog addition
    
    * Various doc fixes (#4268)
    
    * Various things while validating changes for 0.31 (#4279)
    
    * change link in setup.py
    
    * fix qchem docs
    
    * fix qcut docs
    
    * rename string function (#4278)
    
    * Update docs (#4269)
    
    * Incrementing the version number to `v0.32.0-dev` (#4266)
    
    * pre-release for v0.31.0
    
    * Update doc/releases/changelog-0.31.0.md
    
    * Incrementing the version number to v0.32.0-dev
    
    * Update installation.rst (#4247)
    
    Update Python version to 3.8
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * docs typos
    
    * don't include updating versioning from master
    
    * don't include python requirements from master
    
    * update example output for shot_vector
    
    * Update pennylane/operation.py
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * fix entirely unrelated rendering issue
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    Co-authored-by: Catalina Albornoz <albornoz.catalina@hotmail.com>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * Minor fixes for v0.31 (#4280)
    
    * Added fixes
    
    * Update pennylane/ops/qubit/matrix_ops.py
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * Update pennylane/ops/qubit/matrix_ops.py
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * add graphviz to RTD apt packages (#4284)
    
    * Pulse gradient methods docs polish (#4282)
    
    * stoch pulse docs update
    
    * generator method docs update
    
    * small fixes / typos
    
    * Update pennylane/gradients/pulse_generator_gradient.py
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    
    * Update pennylane/gradients/pulse_generator_gradient.py
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    
    * Update pennylane/gradients/pulse_generator_gradient.py
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    
    * code review
    
    * Update pennylane/gradients/pulse_gradient.py
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    
    * code review
    
    * Update pennylane/gradients/pulse_generator_gradient.py
    
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    
    * large |
    
    * add equal to
    
    ---------
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    
    * 0.31 release notes (#4218)
    
    * Add categories
    
    * First pass at categorization
    
    * More categorization
    
    * More categorization
    
    * Typo
    
    * Add first half of resource estimation text
    
    * Improvements
    
    * Add custom ops resource estimation
    
    * Update wording
    
    * Improve entry
    
    * Move
    
    * Move
    
    * Move
    
    * Update
    
    * Add details about Torch and Keras
    
    * Add entry
    
    * Add contributor
    
    * Add to Keras and Torch layer section
    
    * Add saving and loading details
    
    * Add entry
    
    * Add contributor
    
    * Add contributor
    
    * Add qutrit basis state example
    
    * first round of edits
    
    * Remove
    
    * Add entry for one_qubit_decompostition
    
    * more changes
    
    * Reorder sections
    
    * fermi blurb
    
    * minor
    
    * Update
    
    * Add
    
    * Update doc/releases/changelog-dev.md
    
    Co-authored-by: Isaac De Vlugt <34751083+isaacdevlugt@users.noreply.github.com>
    
    * Update doc/releases/changelog-dev.md
    
    Co-authored-by: Isaac De Vlugt <34751083+isaacdevlugt@users.noreply.github.com>
    
    * update fermionic code examples
    
    * additions
    
    * minor
    
    * restructure sections
    
    * minor
    
    * minor
    
    * reorder fermi section
    
    * fixed fermi section
    
    * various small changes
    
    * Tweaks to fermionic
    
    * Tweaks to resource and UH sections
    
    * Improvements
    
    * Move
    
    * Update doc/releases/changelog-0.31.0.md
    
    * minior
    
    * minor
    
    * minor
    
    * minor
    
    * minor
    
    * Update
    
    * minor
    
    * use from_string for fermi ops
    
    * Add link
    
    * Update doc/releases/changelog-0.31.0.md
    
    * added links and other minor things
    
    * Update doc/releases/changelog-0.31.0.md
    
    * Update doc/releases/changelog-0.31.0.md
    
    * minor
    
    * minor
    
    * deleted extraneous notebook
    
    * Apply suggestions from code review
    
    Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Isaac De Vlugt <isaacdevlugt@gmail.com>
    Co-authored-by: Isaac De Vlugt <34751083+isaacdevlugt@users.noreply.github.com>
    Co-authored-by: soranjh <soranjh@yahoo.com>
    
    * Allow updating dense kwarg in call of ParametrizedEvolution (#4285)
    
    * add dense kwarg to call
    
    * update changelog
    
    * update changelog better
    
    * changelog formatting
    
    ---------
    
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    
    * Remove line in code example to make docs render properly. (#4290)
    
    * Pin autograd to <= 1.5 (#4289)
    
    * pin autograd to 1.5 or less
    
    * allow autograd 1.4 as well
    
    * pin for doc build as well
    
    * Add dm_from_state_vector function to qml.math docs page. (#4291)
    
    * Fix `ShotAdaptiveOptimizer` to prevent removing shot vector axes (#4240)
    
    * Updated `ShotAdaptiveOpt` per suggestion in issue
    
    * Reformatting
    
    * Testing changes
    
    * Fixed bug
    
    * Updated min to max
    
    * Allow classical shadow measurements in new device (#4162)
    
    * Support classical shadow measurements
    
    * Add shot vector tests
    
    * Address comments
    
    * Add comment for diag_list
    
    * Apply suggestions from code review
    
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    
    * Fix
    
    * Add unit tests for process_state_with_shots
    
    * Update preprocessing
    
    * Apply suggestions from code review
    
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    
    * Address PR comments
    
    * set rng for test
    
    ---------
    
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    
    * Add the `fermi` module docs (#4250)
    
    * support trainable Sum observables (#4251)
    
    * support trainable Sum observables (analytic only)
    
    * just use pre-rotated state; use super with finite shots
    
    * fix tests; add test for trainable Sum coeffs
    
    * changelog
    
    * use overlapping wires to prove they work
    
    * add hacky gradient support
    
    * Revert "add hacky gradient support"
    
    This reverts commit 09009c8.
    
    * set interface=None to keep test behaviour
    
    * Integrate experimental device with the `QNode` (#4196)
    
    * integrate qnode with new device
    
    * some diff method improvements
    
    * repr methods
    
    * add tests, always pass config to device
    
    * add tests, always pass config to device
    
    * final test
    
    * pylint
    
    * autograd integration tests
    
    * pylint
    
    * Update pennylane/interfaces/execution.py
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * pass shots through methods
    
    * changelog
    
    * revert set shots change
    
    * Apply suggestions from code review
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * revert executionc hange, pylint:
    
    * pylint again
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * pre-release for v0.31.0 (#4265)
    
    * pre-release for v0.31.0
    
    * Update doc/releases/changelog-0.31.0.md
    
    * Support `HardwareHamiltonian` pulses in `stoch_pulse_grad` (#4215)
    
    * single out gradient transform checks
    
    * rename stochastic pulse gradient file
    
    * unify gradient_analysis and grad_method_validation
    
    * continue restructure of analysis+validation
    
    * CV
    
    * black
    
    * modularize more
    
    * more modularizing
    
    * black
    
    * tiny [skip ci]
    
    * [skip ci] lint
    
    * remove dummy test
    
    * test fix
    
    * add test file to linting test file
    
    * test fixes, docstrings
    
    * code review
    
    * docstring gradient_analysis_and_grad_method_validation
    
    * move first fun
    
    * code review:move functions
    
    * test regex
    
    * regexs
    
    * move and promote reorder_grads
    
    * tmp
    
    * more tmp
    
    * test cases, contractions
    
    * lint
    
    * docstring
    
    * even more tmp
    
    * cleanup
    
    * black
    
    * tmp
    
    * lint
    
    * move stoch_pulse_gradient.. files back to pulse_gradient...
    
    * move stoch_pulse_gradient.. files back to pulse_gradient...
    
    * lint
    
    * rename
    
    * extend functions and tests
    
    * lint and black
    
    * changelog
    
    * improve
    
    * update example to include non-Pauli word generator
    
    * add jit test with pauli sentence
    
    * tmp
    
    * debugging, docstring, extend test
    
    * review
    
    * optimize for Pauli words
    
    * Apply suggestions from code review
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * test cases code review
    
    * fix parametrization
    
    * drafting
    
    * working prototype
    
    * finish merge; cleanup
    
    * changelog
    
    * comments
    
    * [skip ci]
    
    * raising an error; cleanup [skip ci]
    
    * Apply suggestions from code review
    
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    
    * change contraction idea
    
    * typo in docs
    
    * tests
    
    * remove prints
    
    * fix test
    
    * test descriptions
    
    * fix merge
    
    * format
    
    * code review; test coverage
    
    * coverage reordering
    
    * fix
    
    * trigger CI
    
    * trigger
    
    * clear caches
    
    * trigger
    
    * trigger
    
    ---------
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    Co-authored-by: Korbinian Kottmann <Korbinian.Kottmann@gmail.com>
    
    * Fix batching of derivative tapes in autograd (#4245)
    
    * Fix `expval` of `Sum` with broadcasting (#4275)
    
    * fix bug and add test
    
    * changelog addition
    
    * Various doc fixes (#4268)
    
    * Various things while validating changes for 0.31 (#4279)
    
    * change link in setup.py
    
    * fix qchem docs
    
    * fix qcut docs
    
    * rename string function (#4278)
    
    * Update docs (#4269)
    
    * Incrementing the version number to `v0.32.0-dev` (#4266)
    
    * pre-release for v0.31.0
    
    * Update doc/releases/changelog-0.31.0.md
    
    * Incrementing the version number to v0.32.0-dev
    
    * Update installation.rst (#4247)
    
    Update Python version to 3.8
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * docs typos
    
    * don't include updating versioning from master
    
    * don't include python requirements from master
    
    * update example output for shot_vector
    
    * Update pennylane/operation.py
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * fix entirely unrelated rendering issue
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    Co-authored-by: Catalina Albornoz <albornoz.catalina@hotmail.com>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * Minor fixes for v0.31 (#4280)
    
    * Added fixes
    
    * Update pennylane/ops/qubit/matrix_ops.py
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * Update pennylane/ops/qubit/matrix_ops.py
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * add graphviz to RTD apt packages (#4284)
    
    * Updated test
    
    ---------
    
    Co-authored-by: Edward Jiang <34989448+eddddddy@users.noreply.github.com>
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    Co-authored-by: Korbinian Kottmann <Korbinian.Kottmann@gmail.com>
    Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
    Co-authored-by: Catalina Albornoz <albornoz.catalina@hotmail.com>
    
    * exclude files from pr
    
    ---------
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    Co-authored-by: Korbinian Kottmann <Korbinian.Kottmann@gmail.com>
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    Co-authored-by: Edward Jiang <34989448+eddddddy@users.noreply.github.com>
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
    Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
    Co-authored-by: Catalina Albornoz <albornoz.catalina@hotmail.com>
    Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
    Co-authored-by: Isaac De Vlugt <isaacdevlugt@gmail.com>
    Co-authored-by: Isaac De Vlugt <34751083+isaacdevlugt@users.noreply.github.com>
    Co-authored-by: soranjh <soranjh@yahoo.com>
    Co-authored-by: GitHub Actions Bot <>
    17 people committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    aef6545 View commit details
    Browse the repository at this point in the history
  29. raise warning if control indicators are hidden in drawer (#4295)

    * raise warning if control indicators are hidden in drawer
    
    * add actionable suggestion to warning
    
    * fix import order
    
    * only check if multiple target wires
    
    * just check all control wires
    
    * Update doc/releases/changelog-dev.md
    timmysilv authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    a612726 View commit details
    Browse the repository at this point in the history
  30. Update (#4296)

    rmoyard authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    f92faca View commit details
    Browse the repository at this point in the history
  31. merge 0.31 RC branch to master (#4305)

    * Support `HardwareHamiltonian` pulses in `stoch_pulse_grad` (#4215)
    
    * single out gradient transform checks
    
    * rename stochastic pulse gradient file
    
    * unify gradient_analysis and grad_method_validation
    
    * continue restructure of analysis+validation
    
    * CV
    
    * black
    
    * modularize more
    
    * more modularizing
    
    * black
    
    * tiny [skip ci]
    
    * [skip ci] lint
    
    * remove dummy test
    
    * test fix
    
    * add test file to linting test file
    
    * test fixes, docstrings
    
    * code review
    
    * docstring gradient_analysis_and_grad_method_validation
    
    * move first fun
    
    * code review:move functions
    
    * test regex
    
    * regexs
    
    * move and promote reorder_grads
    
    * tmp
    
    * more tmp
    
    * test cases, contractions
    
    * lint
    
    * docstring
    
    * even more tmp
    
    * cleanup
    
    * black
    
    * tmp
    
    * lint
    
    * move stoch_pulse_gradient.. files back to pulse_gradient...
    
    * move stoch_pulse_gradient.. files back to pulse_gradient...
    
    * lint
    
    * rename
    
    * extend functions and tests
    
    * lint and black
    
    * changelog
    
    * improve
    
    * update example to include non-Pauli word generator
    
    * add jit test with pauli sentence
    
    * tmp
    
    * debugging, docstring, extend test
    
    * review
    
    * optimize for Pauli words
    
    * Apply suggestions from code review
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * test cases code review
    
    * fix parametrization
    
    * drafting
    
    * working prototype
    
    * finish merge; cleanup
    
    * changelog
    
    * comments
    
    * [skip ci]
    
    * raising an error; cleanup [skip ci]
    
    * Apply suggestions from code review
    
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    
    * change contraction idea
    
    * typo in docs
    
    * tests
    
    * remove prints
    
    * fix test
    
    * test descriptions
    
    * fix merge
    
    * format
    
    * code review; test coverage
    
    * coverage reordering
    
    * fix
    
    * trigger CI
    
    * trigger
    
    * clear caches
    
    * trigger
    
    * trigger
    
    ---------
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    Co-authored-by: Korbinian Kottmann <Korbinian.Kottmann@gmail.com>
    
    * Fix batching of derivative tapes in autograd (#4245)
    
    * Fix `expval` of `Sum` with broadcasting (#4275)
    
    * fix bug and add test
    
    * changelog addition
    
    * Various doc fixes (#4268)
    
    * Various things while validating changes for 0.31 (#4279)
    
    * change link in setup.py
    
    * fix qchem docs
    
    * fix qcut docs
    
    * rename string function (#4278)
    
    * Update docs (#4269)
    
    * Incrementing the version number to `v0.32.0-dev` (#4266)
    
    * pre-release for v0.31.0
    
    * Update doc/releases/changelog-0.31.0.md
    
    * Incrementing the version number to v0.32.0-dev
    
    * Update installation.rst (#4247)
    
    Update Python version to 3.8
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * docs typos
    
    * don't include updating versioning from master
    
    * don't include python requirements from master
    
    * update example output for shot_vector
    
    * Update pennylane/operation.py
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * fix entirely unrelated rendering issue
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    Co-authored-by: Catalina Albornoz <albornoz.catalina@hotmail.com>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * Minor fixes for v0.31 (#4280)
    
    * Added fixes
    
    * Update pennylane/ops/qubit/matrix_ops.py
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * Update pennylane/ops/qubit/matrix_ops.py
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * add graphviz to RTD apt packages (#4284)
    
    * Pulse gradient methods docs polish (#4282)
    
    * stoch pulse docs update
    
    * generator method docs update
    
    * small fixes / typos
    
    * Update pennylane/gradients/pulse_generator_gradient.py
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    
    * Update pennylane/gradients/pulse_generator_gradient.py
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    
    * Update pennylane/gradients/pulse_generator_gradient.py
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    
    * code review
    
    * Update pennylane/gradients/pulse_gradient.py
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    
    * code review
    
    * Update pennylane/gradients/pulse_generator_gradient.py
    
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    
    * large |
    
    * add equal to
    
    ---------
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    
    * 0.31 release notes (#4218)
    
    * Add categories
    
    * First pass at categorization
    
    * More categorization
    
    * More categorization
    
    * Typo
    
    * Add first half of resource estimation text
    
    * Improvements
    
    * Add custom ops resource estimation
    
    * Update wording
    
    * Improve entry
    
    * Move
    
    * Move
    
    * Move
    
    * Update
    
    * Add details about Torch and Keras
    
    * Add entry
    
    * Add contributor
    
    * Add to Keras and Torch layer section
    
    * Add saving and loading details
    
    * Add entry
    
    * Add contributor
    
    * Add contributor
    
    * Add qutrit basis state example
    
    * first round of edits
    
    * Remove
    
    * Add entry for one_qubit_decompostition
    
    * more changes
    
    * Reorder sections
    
    * fermi blurb
    
    * minor
    
    * Update
    
    * Add
    
    * Update doc/releases/changelog-dev.md
    
    Co-authored-by: Isaac De Vlugt <34751083+isaacdevlugt@users.noreply.github.com>
    
    * Update doc/releases/changelog-dev.md
    
    Co-authored-by: Isaac De Vlugt <34751083+isaacdevlugt@users.noreply.github.com>
    
    * update fermionic code examples
    
    * additions
    
    * minor
    
    * restructure sections
    
    * minor
    
    * minor
    
    * reorder fermi section
    
    * fixed fermi section
    
    * various small changes
    
    * Tweaks to fermionic
    
    * Tweaks to resource and UH sections
    
    * Improvements
    
    * Move
    
    * Update doc/releases/changelog-0.31.0.md
    
    * minior
    
    * minor
    
    * minor
    
    * minor
    
    * minor
    
    * Update
    
    * minor
    
    * use from_string for fermi ops
    
    * Add link
    
    * Update doc/releases/changelog-0.31.0.md
    
    * added links and other minor things
    
    * Update doc/releases/changelog-0.31.0.md
    
    * Update doc/releases/changelog-0.31.0.md
    
    * minor
    
    * minor
    
    * deleted extraneous notebook
    
    * Apply suggestions from code review
    
    Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Isaac De Vlugt <isaacdevlugt@gmail.com>
    Co-authored-by: Isaac De Vlugt <34751083+isaacdevlugt@users.noreply.github.com>
    Co-authored-by: soranjh <soranjh@yahoo.com>
    
    * Allow updating dense kwarg in call of ParametrizedEvolution (#4285)
    
    * add dense kwarg to call
    
    * update changelog
    
    * update changelog better
    
    * changelog formatting
    
    ---------
    
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    
    * Remove line in code example to make docs render properly. (#4290)
    
    * Pin autograd to <= 1.5 (#4289)
    
    * pin autograd to 1.5 or less
    
    * allow autograd 1.4 as well
    
    * pin for doc build as well
    
    * Add dm_from_state_vector function to qml.math docs page. (#4291)
    
    * Fix `ShotAdaptiveOptimizer` to prevent removing shot vector axes (#4240)
    
    * Updated `ShotAdaptiveOpt` per suggestion in issue
    
    * Reformatting
    
    * Testing changes
    
    * Fixed bug
    
    * Updated min to max
    
    * Allow classical shadow measurements in new device (#4162)
    
    * Support classical shadow measurements
    
    * Add shot vector tests
    
    * Address comments
    
    * Add comment for diag_list
    
    * Apply suggestions from code review
    
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    
    * Fix
    
    * Add unit tests for process_state_with_shots
    
    * Update preprocessing
    
    * Apply suggestions from code review
    
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    
    * Address PR comments
    
    * set rng for test
    
    ---------
    
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    
    * Add the `fermi` module docs (#4250)
    
    * support trainable Sum observables (#4251)
    
    * support trainable Sum observables (analytic only)
    
    * just use pre-rotated state; use super with finite shots
    
    * fix tests; add test for trainable Sum coeffs
    
    * changelog
    
    * use overlapping wires to prove they work
    
    * add hacky gradient support
    
    * Revert "add hacky gradient support"
    
    This reverts commit 09009c8.
    
    * set interface=None to keep test behaviour
    
    * Integrate experimental device with the `QNode` (#4196)
    
    * integrate qnode with new device
    
    * some diff method improvements
    
    * repr methods
    
    * add tests, always pass config to device
    
    * add tests, always pass config to device
    
    * final test
    
    * pylint
    
    * autograd integration tests
    
    * pylint
    
    * Update pennylane/interfaces/execution.py
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * pass shots through methods
    
    * changelog
    
    * revert set shots change
    
    * Apply suggestions from code review
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * revert executionc hange, pylint:
    
    * pylint again
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * pre-release for v0.31.0 (#4265)
    
    * pre-release for v0.31.0
    
    * Update doc/releases/changelog-0.31.0.md
    
    * Support `HardwareHamiltonian` pulses in `stoch_pulse_grad` (#4215)
    
    * single out gradient transform checks
    
    * rename stochastic pulse gradient file
    
    * unify gradient_analysis and grad_method_validation
    
    * continue restructure of analysis+validation
    
    * CV
    
    * black
    
    * modularize more
    
    * more modularizing
    
    * black
    
    * tiny [skip ci]
    
    * [skip ci] lint
    
    * remove dummy test
    
    * test fix
    
    * add test file to linting test file
    
    * test fixes, docstrings
    
    * code review
    
    * docstring gradient_analysis_and_grad_method_validation
    
    * move first fun
    
    * code review:move functions
    
    * test regex
    
    * regexs
    
    * move and promote reorder_grads
    
    * tmp
    
    * more tmp
    
    * test cases, contractions
    
    * lint
    
    * docstring
    
    * even more tmp
    
    * cleanup
    
    * black
    
    * tmp
    
    * lint
    
    * move stoch_pulse_gradient.. files back to pulse_gradient...
    
    * move stoch_pulse_gradient.. files back to pulse_gradient...
    
    * lint
    
    * rename
    
    * extend functions and tests
    
    * lint and black
    
    * changelog
    
    * improve
    
    * update example to include non-Pauli word generator
    
    * add jit test with pauli sentence
    
    * tmp
    
    * debugging, docstring, extend test
    
    * review
    
    * optimize for Pauli words
    
    * Apply suggestions from code review
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * test cases code review
    
    * fix parametrization
    
    * drafting
    
    * working prototype
    
    * finish merge; cleanup
    
    * changelog
    
    * comments
    
    * [skip ci]
    
    * raising an error; cleanup [skip ci]
    
    * Apply suggestions from code review
    
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    
    * change contraction idea
    
    * typo in docs
    
    * tests
    
    * remove prints
    
    * fix test
    
    * test descriptions
    
    * fix merge
    
    * format
    
    * code review; test coverage
    
    * coverage reordering
    
    * fix
    
    * trigger CI
    
    * trigger
    
    * clear caches
    
    * trigger
    
    * trigger
    
    ---------
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    Co-authored-by: Korbinian Kottmann <Korbinian.Kottmann@gmail.com>
    
    * Fix batching of derivative tapes in autograd (#4245)
    
    * Fix `expval` of `Sum` with broadcasting (#4275)
    
    * fix bug and add test
    
    * changelog addition
    
    * Various doc fixes (#4268)
    
    * Various things while validating changes for 0.31 (#4279)
    
    * change link in setup.py
    
    * fix qchem docs
    
    * fix qcut docs
    
    * rename string function (#4278)
    
    * Update docs (#4269)
    
    * Incrementing the version number to `v0.32.0-dev` (#4266)
    
    * pre-release for v0.31.0
    
    * Update doc/releases/changelog-0.31.0.md
    
    * Incrementing the version number to v0.32.0-dev
    
    * Update installation.rst (#4247)
    
    Update Python version to 3.8
    
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * docs typos
    
    * don't include updating versioning from master
    
    * don't include python requirements from master
    
    * update example output for shot_vector
    
    * Update pennylane/operation.py
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * fix entirely unrelated rendering issue
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    Co-authored-by: Catalina Albornoz <albornoz.catalina@hotmail.com>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    
    * Minor fixes for v0.31 (#4280)
    
    * Added fixes
    
    * Update pennylane/ops/qubit/matrix_ops.py
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * Update pennylane/ops/qubit/matrix_ops.py
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * add graphviz to RTD apt packages (#4284)
    
    * Updated test
    
    ---------
    
    Co-authored-by: Edward Jiang <34989448+eddddddy@users.noreply.github.com>
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    Co-authored-by: Korbinian Kottmann <Korbinian.Kottmann@gmail.com>
    Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
    Co-authored-by: Catalina Albornoz <albornoz.catalina@hotmail.com>
    
    * Make links to qml.eigvals and the eigvals method appear distinctly. (#4292)
    
    * Make links to qml.eigvals and the eigvals method appear distinctly in the docstring of compute_method.
    
    * Make links more informative.
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * Device API review (#4283)
    
    * fix  example
    
    * minor docstring change in `_zyz_decomposition`
    
    * update decomposition examples
    
    * update counts & samples docstrings
    
    * Shots class link
    
    * Fix code block
    
    * Change note
    
    Co-authored-by: Edward Jiang <34989448+eddddddy@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Edward Jiang <34989448+eddddddy@users.noreply.github.com>
    
    * remove duplicate controlled operation entries (#4298)
    
    * Refer to class QNode in ml layers (#4299)
    
    * Specs dict fix (#4286)
    
    * Add copy function to SpecsDict.
    
    * black
    
    * Adjust docs to not throw warnings from deprecated specs keys.
    
    * Formatting fix.
    
    * update doc string
    
    * update doc string
    
    ---------
    
    Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * Fermionic ops in changelog (#4302)
    
    * bump lightning to 0.31 in setup.py, pin scipy to [1.8,1.10] (#4304)
    
    * bump lightning to 0.31 in setup.py
    
    * trigger ci
    
    * pin scipy
    
    * Revert "pin scipy"
    
    This reverts commit 492ad40.
    
    * take Soran's forward fix for scipy fac2
    
    * revert the scipy un-pinning and forward fix - just pin scipy
    
    * remove lower bound in files that didn't have them
    
    * remove autograd lower bound
    
    ---------
    
    Co-authored-by: David Wierichs <david.wierichs@xanadu.ai>
    Co-authored-by: Romain Moyard <rmoyard@gmail.com>
    Co-authored-by: Korbinian Kottmann <43949391+Qottmann@users.noreply.github.com>
    Co-authored-by: Korbinian Kottmann <Korbinian.Kottmann@gmail.com>
    Co-authored-by: Christina Lee <christina@xanadu.ai>
    Co-authored-by: Edward Jiang <34989448+eddddddy@users.noreply.github.com>
    Co-authored-by: soranjh <40344468+soranjh@users.noreply.github.com>
    Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
    Co-authored-by: Catalina Albornoz <albornoz.catalina@hotmail.com>
    Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
    Co-authored-by: Frederik Wilde <42576579+frederikwilde@users.noreply.github.com>
    Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
    Co-authored-by: Isaac De Vlugt <isaacdevlugt@gmail.com>
    Co-authored-by: Isaac De Vlugt <34751083+isaacdevlugt@users.noreply.github.com>
    Co-authored-by: soranjh <soranjh@yahoo.com>
    Co-authored-by: BorjaRequena <59647767+BorjaRequena@users.noreply.github.com>
    Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
    18 people committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    0783c64 View commit details
    Browse the repository at this point in the history
  32. Switch to GA4 (#4308)

    doctorperceptron authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    2343b82 View commit details
    Browse the repository at this point in the history
  33. Lint test files: Directories A-N (skipping legacy, interfaces) (#…

    …4219)
    
    * lint a few
    
    * more
    
    * more
    
    * more
    
    * more
    
    * list
    
    * more
    
    * black
    
    * extra lint
    
    * fixes
    
    * monkeypatch
    
    * Apply suggestions from code review
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    
    * lint, black
    
    * conftest
    
    * some default qubit
    
    * devices
    
    * black
    
    * fourier partial
    
    * math
    
    * black
    
    * numpy
    
    * fix
    
    * rerun CI
    
    * Apply suggestions from code review
    
    * list
    
    * devices update
    
    * formatting lint
    
    * formatting lint
    
    ---------
    
    Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
    Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
    3 people authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    89f0ea5 View commit details
    Browse the repository at this point in the history
  34. add warning about applying a queued operator (#4311)

    * add warning about applying a queued operator
    
    * move warning into warning block
    timmysilv authored and frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    3cb5b6f View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    98fc97b View commit details
    Browse the repository at this point in the history
  36. resolve conflicts

    frederikwilde committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    ac947e7 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    bde3e9a View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2023

  1. Configuration menu
    Copy the full SHA
    e99ba1a View commit details
    Browse the repository at this point in the history
  2. Add custom ArrayBox handling for demonstration purposes in ndim and s…

    …hape and for performance increase in multi_dispatch.unwrap
    frederikwilde committed Jul 7, 2023
    Configuration menu
    Copy the full SHA
    42b5b90 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2023

  1. Configuration menu
    Copy the full SHA
    a90969c View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2023

  1. resolve merge conflict

    frederikwilde committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    10305ef View commit details
    Browse the repository at this point in the history
  2. Resolve merge error.

    frederikwilde committed Jul 13, 2023
    Configuration menu
    Copy the full SHA
    b219291 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Clean up

    frederikwilde committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    c0cdb2b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed6db02 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    94401f4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4050321 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2023

  1. Fix torch error

    frederikwilde committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    3dab5d5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    558f3f1 View commit details
    Browse the repository at this point in the history
  3. Black

    frederikwilde committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    cc5ca36 View commit details
    Browse the repository at this point in the history
  4. Changelog [skip-ci]

    frederikwilde committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    3a1fca2 View commit details
    Browse the repository at this point in the history
  5. Changelog

    frederikwilde committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    4f04560 View commit details
    Browse the repository at this point in the history
  6. Remove unused import

    frederikwilde committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    67fe086 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    acc5c76 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2023

  1. Configuration menu
    Copy the full SHA
    b8cea89 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2023

  1. Configuration menu
    Copy the full SHA
    eeccf62 View commit details
    Browse the repository at this point in the history