Skip to content

Commit

Permalink
some more errors fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
WanderingMike committed Dec 13, 2023
1 parent cf38b3d commit e55ed74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/source/code-examples/advancedexamples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,7 @@ done as follows:

import numpy as np
from qibo import hamiltonians, models
from qibo.minimizers import ScipyMinimizer
from qibo.optimizers.minimizers import ScipyMinimizer

# Define Hamiltonians
h0 = hamiltonians.X(3)
Expand Down
2 changes: 1 addition & 1 deletion src/qibo/models/variational.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class VQE:
# optimize using random initial variational parameters
initial_parameters = np.random.uniform(0, 2, 1)
opt = CMAES()
best, params, _ = v.minimize(opt, initial_parameters, fit_options=options)
best, params, _ = vqe.minimize(opt, initial_parameters, fit_options=options)
"""

def __init__(self, circuit, hamiltonian):
Expand Down

0 comments on commit e55ed74

Please sign in to comment.