Skip to content

Commit 2d4dbd8

Browse files
committed
fix kqd opts
1 parent dfcd761 commit 2d4dbd8

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

docs/tutorials/krylov-quantum-diagonalization.ipynb

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,20 +1128,16 @@
11281128
" },\n",
11291129
" \"zne\": {\n",
11301130
" \"amplifier\": \"pea\",\n",
1131-
" \"return_all_extrapolated\": True,\n",
1132-
" \"return_unextrapolated\": True,\n",
11331131
" \"extrapolated_noise_factors\": [0] + noise_factors,\n",
11341132
" },\n",
11351133
"}\n",
11361134
"experimental_opts[\"twirling\"] = {\n",
11371135
" \"num_randomizations\": num_randomizations,\n",
11381136
" \"shots_per_randomization\": shots_per_randomization,\n",
11391137
" \"strategy\": \"all\",\n",
1140-
" # 'strategy':'active-accum'\n",
11411138
"}\n",
11421139
"\n",
1143-
"options = EstimatorOptions(experimental=experimental_opts)\n",
1144-
"estimator = Estimator(mode=backend, options=options)\n",
1140+
"estimator = Estimator(mode=backend, options=experimental_opts)\n",
11451141
"\n",
11461142
"\n",
11471143
"job = estimator.run([pub])"
@@ -1617,7 +1613,7 @@
16171613
"metadata": {
16181614
"description": "Implement the Krylov Quantum Diagonalization Algorithm (KQD) within the context of Qiskit patterns.",
16191615
"kernelspec": {
1620-
"display_name": "Python 3",
1616+
"display_name": ".venv",
16211617
"language": "python",
16221618
"name": "python3"
16231619
},
@@ -1631,7 +1627,7 @@
16311627
"name": "python",
16321628
"nbconvert_exporter": "python",
16331629
"pygments_lexer": "ipython3",
1634-
"version": "3"
1630+
"version": "3.9.6"
16351631
},
16361632
"title": "Krylov quantum diagonalization of lattice Hamiltonians\n"
16371633
},

0 commit comments

Comments
 (0)