|
131 | 131 | # tutorial :doc:`demos/tutorial_givens_rotations`.
|
132 | 132 | #
|
133 | 133 | # Implementing the circuit above using PennyLane is straightforward. First, we use the
|
134 |
| -# :func:`hf_state` function to generate the vector representing the Hartree-Fock state. |
| 134 | +# :func:`~.pennylane.qchem.hf_state` function to generate the vector representing the Hartree-Fock state. |
135 | 135 |
|
136 | 136 | electrons = 2
|
137 | 137 | hf = qml.qchem.hf_state(electrons, qubits)
|
|
142 | 142 | # the qubit register. Then, we just act with the :class:`~.pennylane.DoubleExcitation` operation
|
143 | 143 | # on the four qubits. The next step is to compute the expectation value
|
144 | 144 | # of the molecular Hamiltonian in the trial state prepared by the circuit.
|
145 |
| -# We do this using the :func:`~.expval` function. The decorator syntax allows us to |
| 145 | +# We do this using the :func:`~.pennylane.expval` function. The decorator syntax allows us to |
146 | 146 | # run the cost function as an executable QNode with the gate parameter :math:`\theta:`
|
147 | 147 |
|
148 | 148 | @qml.qnode(dev, interface="jax")
|
@@ -263,7 +263,7 @@ def cost_fn(param):
|
263 | 263 | # molecular Hamiltonian in the trial state.
|
264 | 264 | #
|
265 | 265 | # The VQE algorithm can be used to simulate other chemical phenomena.
|
266 |
| -# In the tutorial :doc:`demos/tutorial_vqe_bond_dissociation`, we use VQE to explore the |
| 266 | +# In the tutorial :doc:`demos/tutorial_chemical_reactions`, we use VQE to explore the |
267 | 267 | # potential energy surface of molecules to simulate chemical reactions.
|
268 | 268 | # Another interesting application is to probe the lowest-lying states of molecules
|
269 | 269 | # in specific sectors of the Hilbert space. For example, see the tutorial
|
|
0 commit comments