-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow vector-valued QNodes with JAX using
host_callback.call
(#2034)
* getting shapes changed * Adjust tests * format * vector valued test case * copy the output_dim too * qml.density_matrix * var * sampling dim * squeeze * prep for shape addition * logic and tests first push * first attempt for shape * more single measure tests * TODOs * tests * format * polish comments * correct call * correct call * use kwargs in measure.py * lint * output domain * sampling * re-add obs as a potential positional argument * adjust the default; add more tests * docstrings; qml.sample() out domain case * qml.probs example with dummy device defining a cutoff * error handling with tests * format * checking shape outputs * coverage * formatting * changelog * qml.density_matrix case * comments; polishing * format * more test; order * format * Update pennylane/measure.py Co-authored-by: Josh Izaac <josh146@gmail.com> * format * docstring * change path * shape intro order change * correct previous resolution * resolve * docstring * docstring * QuantumTape * no print * merge master * Update pennylane/tape/tape.py Co-authored-by: Josh Izaac <josh146@gmail.com> * linting * filter warning ragged nested sequences * Update pennylane/tape/tape.py Co-authored-by: Josh Izaac <josh146@gmail.com> * ignore different arguments linting error * no test raises multi-expval * more notes * rename num_systems * updates * rename to shape and result_type * numeric_type * docstring * linting issue fix * test updates * refactor * docstring * more tests * changelog * changelog * comment * test * update docstring * tests * swap qml.eigvals use to checking the type of observables * Update pennylane/measurements.py Co-authored-by: Josh Izaac <josh146@gmail.com> * example * examples in the docstring * Update pennylane/measurements.py Co-authored-by: Josh Izaac <josh146@gmail.com> * Update pennylane/measurements.py Co-authored-by: Josh Izaac <josh146@gmail.com> * Update pennylane/measurements.py Co-authored-by: Josh Izaac <josh146@gmail.com> * lru cache * docstring * Update pennylane/tape/tape.py Co-authored-by: Josh Izaac <josh146@gmail.com> * smaller shape doc for tape * apply suggestions for the docstrings; have tape numeric_type as property * docstring * fix state and density_matrix for state vector * state tests * changelog & test for uncovered DefaultQubitTF line * renames, new locations * fwd shapes; docstring; example adjustments * jax jit QNode test cases * docstring * lint test_wires.py * no print; no error for now * new shape and prints * [skip ci] * typo correct * double prec in test file to have no warnings * err and tests, [skip ci] * Make numeric_type a property because we always want it to be defined and users/developers may forget its def when creating a MP * remove print sttment * skip jacobian calc for probs differentiation [skip ci] * remove print statement and unused meas * no need for xfail * remove old scratch * more * more * refactor shape logic * Fix the include pattern used for running black * Run black on pennylane * Run black on tests * changes * Update error type; add tests for unrecognized return types * [skip ci] * multi-tape unit test * gradient scalar cost func using vv QNode (jitting) * gradient scalar cost func using vv QNode (jitting) * unit test shapes * changelog * docs update, changelog * docs * Update doc/releases/changelog-dev.md Co-authored-by: Ali Asadi <ali@xanadu.ai> * Update tests/interfaces/test_jax.py Co-authored-by: Ali Asadi <ali@xanadu.ai> * type return * note on shape * refactor forward pass shape and dtype struct building * correct changelog * no int case anymore: would return a single element tuple; comment is not relevant, it's important measurements.py Co-authored-by: Josh Izaac <josh146@gmail.com> Co-authored-by: Ali Asadi <ali@xanadu.ai>
- v0.40.0
- v0.40.0-rc0
- v0.39.0
- v0.39.0-rc0
- v0.38.1
- v0.38.0
- v0.38.0-rc0
- v0.37.0
- v0.37.0-rc0
- v0.36.0
- v0.36.0-rc0
- v0.35.1
- v0.35.0
- v0.34.0
- v0.34.0.post1
- v0.33.1
- v0.33.0
- v0.32.0
- v0.32.0-post1
- v0.31.1
- v0.31.0
- v0.30.0
- v0.29.1
- v0.29.0
- v0.28.0
- v0.27.0
- v0.26.1
- v0.26.0
- v0.26.0-postfix-1
- v0.26.0-postfix
- v0.25.1
- v0.25.0
- v0.24.0
1 parent
1b788a6
commit 29557dd
Showing
12 changed files
with
589 additions
and
234 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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.