-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bugfix] Hamiltonian is rendered in top level docs (#5640)
Due to the dispatch of `qml.Hamiltonian` that involves removing `Hamiltonian` from the top level in `pennylane/__init__.py`, the doc was not displayed anymore. This fix "hacks" sphinx to add the missing obect back, at least for sphinx. Optional separate issue: A user seeking out the `qml.Hamiltonian` docs at the top level may be confused because this now dispatches to `LinearCombination` but this is not mentioned there. Added a warning to avoid that confusion. --------- Co-authored-by: Thomas R. Bromley <[email protected]> Co-authored-by: Astral Cai <[email protected]>
- Loading branch information
1 parent
0aa8a68
commit 2522e58
Showing
2 changed files
with
109 additions
and
50 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