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

remove family submissions from example notebook #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
48 changes: 6 additions & 42 deletions examples/QuantinuumExample.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,11 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Enter your password: ········\n",
"***Successfully logged in***\n"
]
}
],
"outputs": [],
"source": [
"# Quantinuum.save_account(user_name=\"[email protected]\")\n",
"Quantinuum.save_account(user_name=\"[email protected]\")\n",
"Quantinuum.save_account(user_name=\"[email protected]\")\n",
"Quantinuum.load_account()"
]
},
Expand Down Expand Up @@ -126,7 +116,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -154,7 +144,7 @@
" 0 1 "
]
},
"execution_count": 5,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -343,32 +333,6 @@
"print(counts)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Submit to a Machine Family\n",
"\n",
"If you would like faster access to hardware between the available quantum computers, you can submit to a Hardware Family. Submitting this way will run the job on whatever device is available first that has the number of qubits needed to run the circuit. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"device = 'H1'\n",
"shots = 100\n",
"\n",
"backend = Quantinuum.get_backend(device)\n",
"job = execute(circuit, backend, shots=shots)\n",
"\n",
"result = job.result()\n",
"counts = result.get_counts()\n",
"print(counts)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -423,7 +387,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]"
"version": "3.10.11"
},
"vscode": {
"interpreter": {
Expand Down