Skip to content

Commit

Permalink
Added a TTN tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloAndresCQ committed Mar 4, 2024
1 parent 36ee0be commit 270a5d9
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions examples/ttn_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"(-0.03300396633148298-0.0029717218725274744j)\n"
"(-0.0007451658924031403-0.0003045225666972526j)\n"
]
}
],
Expand Down Expand Up @@ -221,10 +221,10 @@
"output_type": "stream",
"text": [
"Time taken by approximate contraction with bounded chi:\n",
"3.69 seconds\n",
"3.76 seconds\n",
"\n",
"Lower bound of the fidelity:\n",
"0.364\n"
"0.3502\n"
]
}
],
Expand All @@ -250,10 +250,22 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"id": "3803bdf2-77c0-4a60-8afe-4933ea3ab75c",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Time taken by approximate contraction with fixed truncation fidelity:\n",
"6.3 seconds\n",
"\n",
"Lower bound of the fidelity:\n",
"0.7621\n"
]
}
],
"source": [
"start = time()\n",
"with CuTensorNetHandle() as libhandle:\n",
Expand Down

0 comments on commit 270a5d9

Please sign in to comment.