-
Notifications
You must be signed in to change notification settings - Fork 603
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
[new opmath 1] Toggle __use_new_opmath
#5269
Commits on Feb 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fc0eb52 - Browse repository at this point
Copy the full SHA fc0eb52View commit details
Commits on Mar 4, 2024
-
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for 6406a46 - Browse repository at this point
Copy the full SHA 6406a46View commit details
Commits on Mar 5, 2024
-
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for b178ee3 - Browse repository at this point
Copy the full SHA b178ee3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4900f54 - Browse repository at this point
Copy the full SHA 4900f54View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2bc5936 - Browse repository at this point
Copy the full SHA 2bc5936View commit details
Commits on Mar 7, 2024
-
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for 9008e4c - Browse repository at this point
Copy the full SHA 9008e4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for efb065f - Browse repository at this point
Copy the full SHA efb065fView commit details
Commits on Mar 8, 2024
-
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for b7e4278 - Browse repository at this point
Copy the full SHA b7e4278View commit details -
Configuration menu - View commit details
-
Copy full SHA for d58da38 - Browse repository at this point
Copy the full SHA d58da38View commit details -
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for 6b499fb - Browse repository at this point
Copy the full SHA 6b499fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c03020 - Browse repository at this point
Copy the full SHA 4c03020View commit details
Commits on Mar 11, 2024
-
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for a6af70b - Browse repository at this point
Copy the full SHA a6af70bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8554984 - Browse repository at this point
Copy the full SHA 8554984View commit details
Commits on Mar 12, 2024
-
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for 10a57da - Browse repository at this point
Copy the full SHA 10a57daView commit details -
Configuration menu - View commit details
-
Copy full SHA for d604f8c - Browse repository at this point
Copy the full SHA d604f8cView commit details
Commits on Mar 13, 2024
-
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for 81fefca - Browse repository at this point
Copy the full SHA 81fefcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e4bfb7 - Browse repository at this point
Copy the full SHA 9e4bfb7View commit details
Commits on Mar 14, 2024
-
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for f4ee9fa - Browse repository at this point
Copy the full SHA f4ee9faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4eefc86 - Browse repository at this point
Copy the full SHA 4eefc86View commit details
Commits on Mar 15, 2024
-
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for 5b25192 - Browse repository at this point
Copy the full SHA 5b25192View commit details -
Configuration menu - View commit details
-
Copy full SHA for d93a835 - Browse repository at this point
Copy the full SHA d93a835View commit details -
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for e8064eb - Browse repository at this point
Copy the full SHA e8064ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for e4435ce - Browse repository at this point
Copy the full SHA e4435ceView commit details -
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for f2b4555 - Browse repository at this point
Copy the full SHA f2b4555View commit details -
Configuration menu - View commit details
-
Copy full SHA for 12a42f4 - Browse repository at this point
Copy the full SHA 12a42f4View commit details
Commits on Mar 18, 2024
-
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for 24e576a - Browse repository at this point
Copy the full SHA 24e576aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9422bad - Browse repository at this point
Copy the full SHA 9422badView commit details
Commits on Mar 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 79321c5 - Browse repository at this point
Copy the full SHA 79321c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6238f1e - Browse repository at this point
Copy the full SHA 6238f1eView commit details
Commits on Mar 21, 2024
-
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for 329cae4 - Browse repository at this point
Copy the full SHA 329cae4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43434f6 - Browse repository at this point
Copy the full SHA 43434f6View commit details
Commits on Mar 22, 2024
-
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for 393aa10 - Browse repository at this point
Copy the full SHA 393aa10View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4baebde - Browse repository at this point
Copy the full SHA 4baebdeView commit details
Commits on Mar 23, 2024
-
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
…o enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for 0131ec0 - Browse repository at this point
Copy the full SHA 0131ec0View commit details -
Configuration menu - View commit details
-
Copy full SHA for aaa07da - Browse repository at this point
Copy the full SHA aaa07daView commit details
Commits on Mar 25, 2024
-
[new opmath 2] New
LinearCombination
class to succeed `qml.Hamilton……ian` (#5216) Branching: #5269 > #5216 > #5322 > #5335 The basic idea is to have a clone of `qml.Hamiltonian` with a better name, `LinearCombination` - that inherits from `CompositeOp` and plays nice with new opmath. The motivation is that sometimes it is still handy to have an operator class for which you _know_ there is no funny nesting and that has `coeffs` and `ops` separately on demand without processing. ToDo - [x] basic init - [x] `tests/ops/op_math/test_linear_combination.py` pass - [x] update map_wires - [x] all tests pass - [x] add pauli_rep - [x] add operands attribute and make iterable (?) - [x] update string repr - [x] upgrade to internally use new opmath - [x] update tests with default new opmath - [x] dunder math methods support with new opmath - [x] simplify and speed-up `simplify()`, also make sure to not act in-place - [x] Could we make the matrix generation workflow more general like Sum? - [x] Also, deferring to the pauli rep method for matrix generation leads to substantial performance improvements. - [x] toggle `__use_new_opmath` - [x] tests_linear_combination pass - [x] Integration tests - [x] get all linear combination tests to pass locally - [x] utilize super().sparse_matrix - [x] use grouping functionality from Sum that Mudit is adding in #5179 - [x] update matmul to handle other LinearCombination instances - [x] remove top level import - [x] remove unnecessary copies - [x] add diagonalizing gates - [x] bugfix trivial case of simplify empty LinearCombination - [x] add trivial case for is_hermitian - [ ] torch differentiation with simplify=True in constructor - [x] changelog Optional features (likely to be included in a follow-up) - [x] `qml.Hamiltonian` points to either old Hamiltonian or LinearCombination depending on `__use_new_opmath` - [x] support Hermitian - [ ] matrix method (optional) - [ ] adjoint method (optional) - [ ] batching support (optional) - [ ] qml.dot points to LinearCombination - [ ] take care of xfails (mostly about raiseing errors in other parts of the codebase) - [ ] update logic of adjoint differentiation to catch attempt to differentiate lincomb coeffs - [x] support in qml.equal - [x] add special matmul with other product or non-composite ops - [x] add special matmul with other LinearCombination [sc-56704] --------- Co-authored-by: lillian542 <38584660+lillian542@users.noreply.github.com> Co-authored-by: Astral Cai <astral.cai@xanadu.ai> Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai> Co-authored-by: Christina Lee <christina@xanadu.ai> Co-authored-by: Pietropaolo Frisoni <pietropaolo.frisoni@xanadu.ai> Co-authored-by: albi3ro <chrissie.c.l@gmail.com> Co-authored-by: Utkarsh <utkarshazad98@gmail.com> Co-authored-by: lillian542 <Lillian.frederiksen@xanadu.ai> Co-authored-by: Alex Preciado <alex.preciado@xanadu.ai> Co-authored-by: Thomas R. Bromley <49409390+trbromley@users.noreply.github.com> Co-authored-by: Vincent Michaud-Rioux <vincentm@nanoacademic.com> Co-authored-by: Josh Izaac <josh146@gmail.com> Co-authored-by: Nathan Killoran <co9olguy@users.noreply.github.com> Co-authored-by: Matthew Silverman <matthews@xanadu.ai> Co-authored-by: Mikhail Andrenkov <mikhail@xanadu.ai> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 7343038 - Browse repository at this point
Copy the full SHA 7343038View commit details -
Configuration menu - View commit details
-
Copy full SHA for 230acb5 - Browse repository at this point
Copy the full SHA 230acb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for dab69ed - Browse repository at this point
Copy the full SHA dab69edView commit details -
Configuration menu - View commit details
-
Copy full SHA for fdbbd30 - Browse repository at this point
Copy the full SHA fdbbd30View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0045a7 - Browse repository at this point
Copy the full SHA c0045a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac269e0 - Browse repository at this point
Copy the full SHA ac269e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for bcd1d0c - Browse repository at this point
Copy the full SHA bcd1d0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84516ee - Browse repository at this point
Copy the full SHA 84516eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for a1fbbb6 - Browse repository at this point
Copy the full SHA a1fbbb6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3ceca5 - Browse repository at this point
Copy the full SHA e3ceca5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76a1fd6 - Browse repository at this point
Copy the full SHA 76a1fd6View commit details -
Merge branch 'enable_new_opmath' of https://github.com/PennyLaneAI/pe…
…nnylane into enable_new_opmath
Configuration menu - View commit details
-
Copy full SHA for 287c9d8 - Browse repository at this point
Copy the full SHA 287c9d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30ed7f7 - Browse repository at this point
Copy the full SHA 30ed7f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for be79409 - Browse repository at this point
Copy the full SHA be79409View commit details -
Configuration menu - View commit details
-
Copy full SHA for f96a73c - Browse repository at this point
Copy the full SHA f96a73cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f2518df - Browse repository at this point
Copy the full SHA f2518dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3fc66ac - Browse repository at this point
Copy the full SHA 3fc66acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b49a7f - Browse repository at this point
Copy the full SHA 9b49a7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c2659c9 - Browse repository at this point
Copy the full SHA c2659c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57c75af - Browse repository at this point
Copy the full SHA 57c75afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ee65af - Browse repository at this point
Copy the full SHA 3ee65afView commit details -
Configuration menu - View commit details
-
Copy full SHA for bbd565c - Browse repository at this point
Copy the full SHA bbd565cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 875dcf8 - Browse repository at this point
Copy the full SHA 875dcf8View commit details -
Configuration menu - View commit details
-
Copy full SHA for da40e05 - Browse repository at this point
Copy the full SHA da40e05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 631a1e5 - Browse repository at this point
Copy the full SHA 631a1e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffe44cc - Browse repository at this point
Copy the full SHA ffe44ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 38032a7 - Browse repository at this point
Copy the full SHA 38032a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36e855b - Browse repository at this point
Copy the full SHA 36e855bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8898cc7 - Browse repository at this point
Copy the full SHA 8898cc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cf8ad5 - Browse repository at this point
Copy the full SHA 3cf8ad5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f47d72 - Browse repository at this point
Copy the full SHA 6f47d72View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0596287 - Browse repository at this point
Copy the full SHA 0596287View commit details