Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information