Skip to content

Commit

Permalink
update nb
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoRenaud committed Nov 27, 2024
1 parent 344b10d commit 388850a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/how_tos/03_how_to_use_runtime.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"metadata": {},
"outputs": [],
"source": [
"from qiskit_ibm_runtime import QiskitRuntimeService, Estimator, Session, Options\n",
"from qiskit_ibm_runtime import QiskitRuntimeService, Estimator, Session, EstimatorOptions\n",
"from vqls_prototype import VQLS, VQLSLog\n",
"from qiskit_algorithms import optimizers as opt\n",
"\n",
Expand All @@ -79,11 +79,11 @@
" # start session\n",
" with Session(service=service, backend=backend) as session:\n",
" # options of the primitives\n",
" options = Options()\n",
" options.optimization_level = 3\n",
" options = EstimatorOptions()\n",
" options.resilience_level = 0\n",
"\n",
" # estimator\n",
" estimator = Estimator(session=session, options=options)\n",
" estimator = Estimator(mode=session, options=options)\n",
"\n",
" # log\n",
" log = VQLSLog([], [])\n",
Expand Down

0 comments on commit 388850a

Please sign in to comment.