Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Mar 1, 2024
2 parents c89c1bb + ed5d5d3 commit 931390c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions demonstrations/tutorial_qubit_tapering.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,16 @@
print("\nEigenvalues of H_tapered:\n", qml.eigvals(H_tapered_sparse, k=4))

##############################################################################
# Note that a second-quantized Hamiltonian is independent of the number of electrons and its
# eigenspectrum contains the energies of the neutral and charged molecules. Therefore, the
# smallest eigenvalue returned by :func:`~.pennylane.eigvals` for a molecular Hamiltonian
# might correspond to the neutral or charged molecule. While in the case of :math:`\textrm{HeH}^+`,
# qubit tapering allows specifying the optimal sector of the eigenvectors corresponding only to the
# correct number of electrons, it is generally guaranteed that the optimal sector covers all
# eigenvectors with the correct number of electrons, but may contain additional eigenvectors of
# different charge. Therefore, the ground-state energy of the :math:`\textrm{HeH}^+` cation is
# the smallest eigenvalue of the tapered Hamiltonian.
#
# Tapering the reference state
# ----------------------------
# The ground state Hartree-Fock energy of :math:`\textrm{HeH}^+` can be computed by directly
Expand Down

0 comments on commit 931390c

Please sign in to comment.