Skip to content

Commit

Permalink
some code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
beckykd committed Dec 14, 2023
1 parent 3c8bea6 commit b8d6fc1
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion docs/build/conditional-reset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"from ibm_quantum_widgets import *\n",
"\n",
"# qiskit-ibmq-provider has been deprecated.\n",
"# Please see the Migration Guides in https://ibm.biz/provider_migration_guide for details.\n",
"# See the Migration Guides in https://ibm.biz/provider_migration_guide for details.\n",
"from qiskit_ibm_runtime import QiskitRuntimeService, Sampler, Estimator, Session, Options\n",
"\n",
"# Loading your IBM Quantum account(s)\n",
Expand All @@ -53,6 +53,16 @@
"# result = Sampler().run(circuits).result()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"backend = service.least_busy(operational=True, simulator=False)\n",
"backend.name"
]
},
{
"attachments": {},
"cell_type": "markdown",
Expand Down Expand Up @@ -135,6 +145,21 @@
"job_monitor(job1q_0)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from qiskit_ibm_runtime import Sampler\n",
"\n",
"sampler = Sampler(backend)\n",
"\n",
"circs0 = [h_x_circ, h_reset_x_circ(1), h_reset_x_circ(3), h_reset_x_circ(5)]\n",
"job1q_0 = sampler.run(circs0, initial_layout=[0])\n",
"# job1q_0.status(job1q_0)"
]
},
{
"cell_type": "code",
"execution_count": 33,
Expand Down

0 comments on commit b8d6fc1

Please sign in to comment.