Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update gradients module to stop mutating operators in-place (#4220)
* Adding changes for shift rules * Testing changes * Fixed op indices * Fixed indexing * Updated `bind_new_parameters` * Updated `tape.get_operation` * Updated tests * Test updates; multishifting works * Fixing interface * Updated shifting; added dispatch for templates * Updated shifting function * Fixed index error * Removed commented code * [skip ci] Reverted changes to `bind_new_parameters * Update to remove copying * Update changelog * Apply suggestions from code review Co-authored-by: Matthew Silverman <matthews@xanadu.ai> * Removed unused import * Roll back suggested change * Remove state vector support from `math/quantum.py` (#4322) * Remove statevector support for qinfo functions * remove unused funcs * Fix some tests * pylint * more pylint * Remove unnecessary log * Changelog and deprecations entry * trigger ci * Enable CI and pre-commit hook to lint tests (#4335) * rename all legacy test files to match pylint pattern * pylint all tests in CI and pre-commit * lint legacy/qnn/conftest * remove the custom pylint test handling * run black before pylint * changelog --------- Co-authored-by: David Wierichs <david.wierichs@xanadu.ai> * Update broadcasting transforms to use `bind_new_parameters` (#4288) * use bind_new_parameters * pylint * remove batching in measurements and add tests * More coverage issues * Add uncopied tests * Helper function * pylint * Make tape._ops public * use private methods * pylint * Add more docs to split_operations * pylint * Deprecate X and P (#4330) * update in docs * update changelog * Test warning is raised * update default gaussian device * update tests * update more tests * fix legacy tests * Specify v0.33 removal in docstring * Render X and P in docs * move deprecation warning in docstring * fix sphinx linking * add warning box * Support wire labels in `qinfo` transforms (#4331) * Support wire labels in qinfo transforms * changelog * pylint and update test * add bugfix entry * Deprecations for 0.32 from me! (#4316) * deprecate the old return system * deprecate the mode kwarg for QNode * changelog * PR feedback * update notice to avoid wrongly suggesting action needed * update docstrings, docs and warnings * add link to qnode returns doc * change the mode warning depending on return system active * also add disclaimer to docstring --------- Co-authored-by: Matthew Silverman <matthews@xanadu.ai> Co-authored-by: Edward Jiang <34989448+eddddddy@users.noreply.github.com> Co-authored-by: David Wierichs <david.wierichs@xanadu.ai> Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com>
- Loading branch information