Skip to content

Commit fe69173

Browse files
BapisteBmhucka
andauthored
docs: update return type of get_molecular_hamiltonian (#1166)
Found a type error in the [docs](https://quantumai.google/reference/python/openfermion/chem/MolecularData#get_molecular_hamiltonian) so I figured I fix it. I have directly opened a PR as I felt opening an issue was not the way to go. Please tell me if this was the right way (first PR here) ! Related to #120 Signed-off-by: baptiste.bellot <baptiste.bellot@epita.fr> Co-authored-by: Michael Hucka <mhucka@google.com>
1 parent b4fbfca commit fe69173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openfermion/chem/molecular_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ def get_molecular_hamiltonian(self, occupied_indices=None, active_indices=None):
10101010
which orbitals should be considered active.
10111011
10121012
Returns:
1013-
molecular_hamiltonian: An instance of the MolecularOperator class.
1013+
molecular_hamiltonian: An instance of the InteractionOperator class.
10141014
10151015
Note:
10161016
The indexing convention used is that even indices correspond to

0 commit comments

Comments
 (0)