Skip to content

Commit

Permalink
Update src/qibo/derivative.py
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Aug 26, 2024
1 parent 1d1d086 commit 5b26fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibo/derivative.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def parameter_shift(
circuit (:class:`qibo.models.circuit.Circuit`): custom quantum circuit.
hamiltonian (:class:`qibo.hamiltonians.Hamiltonian`): target observable.
if you want to execute on hardware, a symbolic hamiltonian must be
provided as follows (example with Pauli:math:`Z` and :math:`n = 1`):
provided as follows (example with Pauli-:math:`Z` and :math:`n = 1`):
``SymbolicHamiltonian(np.prod([ Z(i) for i in range(1) ]))``.
parameter_index (int): the index which identifies the target parameter
in the ``circuit.get_parameters()`` list.
Expand Down

0 comments on commit 5b26fe6

Please sign in to comment.