Skip to content

Commit

Permalink
update circuits session
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryoris committed Jul 22, 2020
1 parent 9e54ff6 commit 77288a7
Show file tree
Hide file tree
Showing 24 changed files with 5,560 additions and 1,310 deletions.
654 changes: 447 additions & 207 deletions All gates.ipynb

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions Benchmark of circuit simulation and expectation values.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -329,14 +329,6 @@
" return result, time() - t0\n",
"\n",
"\n",
"def matrix(expr):\n",
" t0 = time()\n",
" expval = MatrixExpectation().convert(expr)\n",
" sampler = CircuitSampler(AER_STATEVECTOR).convert(expval)\n",
" result = sampler.eval()\n",
" return result, time() - t0\n",
"\n",
"\n",
"def aer_snapshot(expr):\n",
" t0 = time() \n",
" expval = AerPauliExpectation().convert(expr)\n",
Expand Down
7 changes: 0 additions & 7 deletions Circuit Library Demo (working).ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,6 @@
"print('Training loss:', result['training_loss'])\n",
"print('Test loss:', result['testing_loss'])"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
1,966 changes: 1,265 additions & 701 deletions Circuits in Quantum Algorithms.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 77288a7

Please sign in to comment.