Skip to content

Commit d7281c1

Browse files
committed
Update classical_shadows.ipynb
1 parent 3b56fab commit d7281c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/source/tutorials/classical_shadows.ipynb

+1-2
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,7 @@
466466
"source": [
467467
"bz = 1000\n",
468468
"\n",
469-
"exact, res = [], []\n",
470-
"exact_expec = c.expectation_ps(ps=ps[0])\n",
469+
"exact = []\n",
471470
"for ob in ps:\n",
472471
" exact.append(tc.backend.real(c.expectation_ps(ps=ob)))\n",
473472
"exact = np.asarray(exact)[:, None]\n",

0 commit comments

Comments
 (0)