Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added precalculated data for HSIM up to AQ23 with corresponding chang… #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 45 additions & 42 deletions hamiltonian-simulation/_common/precalculated_data.ipynb
Original file line number Diff line number Diff line change
@@ -1,32 +1,10 @@
{
"metadata": {
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.4"
},
"orig_nbformat": 2,
"kernelspec": {
"name": "python3",
"display_name": "Python 3.9.4 64-bit ('qiskit': conda)"
},
"interpreter": {
"hash": "719b70cead591c08c7b0f1bcd4bde00bd9cce0726633d80969f72eadd10f377f"
}
},
"nbformat": 4,
"nbformat_minor": 2,
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"\n",
Expand All @@ -40,13 +18,13 @@
"import execute as ex\n",
"import metrics as metrics\n",
"from collections import defaultdict"
],
"outputs": [],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"def HamiltonianSimulation(n_spins, K, t, w, h_x, h_z):\n",
" '''\n",
Expand Down Expand Up @@ -88,13 +66,13 @@
" qc.measure(qr[i_qubit], cr[i_qubit])\n",
"\n",
" return qc"
],
"outputs": [],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Optimal combined XXYYZZ gate (with double coupling) on q0 and q1 with angle 'tau'\n",
"def xxyyzz_opt_gate(tau):\n",
Expand All @@ -114,13 +92,15 @@
" XXYYZZ_ = qc\n",
"\n",
" return qc"
],
"outputs": [],
"metadata": {}
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"import json\n",
"from qiskit import execute, Aer\n",
Expand Down Expand Up @@ -174,18 +154,41 @@
" indent=4,\n",
" separators=(',', ': ')\n",
" ))"
],
"outputs": [],
"metadata": {
"tags": []
}
]
},
{
"cell_type": "code",
"execution_count": null,
"source": [],
"metadata": {},
"outputs": [],
"metadata": {}
"source": []
}
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.8.9 64-bit",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.9"
},
"orig_nbformat": 2,
"vscode": {
"interpreter": {
"hash": "31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6"
}
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Loading