Skip to content

Commit

Permalink
Update qhd.py
Browse files Browse the repository at this point in the history
  • Loading branch information
skushnir123 committed Jun 5, 2024
1 parent 2c3d9b2 commit d53995e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions qhdopt/qhd.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import time
import warnings
from typing import List, Tuple, Union, Optional, Callable

import cyipopt
import jax.numpy as jnp
import numpy as np
import sympy
Expand Down Expand Up @@ -368,6 +366,7 @@ def classical_optimizer_helper(self, samples: List[np.ndarray], bounds: Bounds,
options={"gtol": 1e-6, "eps": 1e-9},
)
elif solver == "IPOPT":
import cyipopt
result = cyipopt.minimize_ipopt(
f_eval_jit,
x0,
Expand Down

0 comments on commit d53995e

Please sign in to comment.