Skip to content

Commit

Permalink
Ignore warnings in pulse.ipynb (#2433)
Browse files Browse the repository at this point in the history
Closes #2414

There's actually already an admonition at the top of the page so this PR
just ignores the warnings. I've ignored all warnings in all cells.
  • Loading branch information
frankharkins authored Dec 5, 2024
1 parent 1005805 commit 5605709
Showing 1 changed file with 145 additions and 29 deletions.
174 changes: 145 additions & 29 deletions docs/guides/pulse.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@
"cell_type": "code",
"execution_count": 1,
"id": "90c68fb2-6ed5-41f3-a4f8-f73e92367c4c",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -131,7 +135,11 @@
"cell_type": "code",
"execution_count": 2,
"id": "769fed93-24fe-4679-be2b-d03c82868548",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [],
"source": [
"from qiskit import pulse\n",
Expand All @@ -158,7 +166,11 @@
"cell_type": "code",
"execution_count": 3,
"id": "61ebd003-c9e3-48ca-9df3-b1c676bbd94a",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -196,7 +208,11 @@
"cell_type": "code",
"execution_count": 4,
"id": "9d38fcf0-1196-4151-a19e-4ac9f2d49012",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [],
"source": [
"circ.add_calibration(\"h\", [0], h_q0)"
Expand All @@ -214,7 +230,11 @@
"cell_type": "code",
"execution_count": 5,
"id": "b28bb363-5b77-471e-9ec7-79e9c9394096",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -285,7 +305,11 @@
"cell_type": "code",
"execution_count": 6,
"id": "7b6f5f69-9e27-42fb-a37f-b62d76d0da40",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -318,7 +342,11 @@
"cell_type": "code",
"execution_count": 7,
"id": "0b1b9bf4-c6f3-4d46-9be1-3ef53388a2b6",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [],
"source": [
"with pulse.build(backend, name=\"custom\") as my_schedule:\n",
Expand All @@ -342,7 +370,11 @@
"cell_type": "code",
"execution_count": 8,
"id": "a47b526c-957b-40f5-a556-302e936a4694",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -375,7 +407,11 @@
"cell_type": "code",
"execution_count": 9,
"id": "3d084f3f-0dcf-48be-9fc0-7af636633924",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -409,7 +445,11 @@
"cell_type": "code",
"execution_count": 10,
"id": "dc3ecb7f-895a-433e-8ca6-0bee059f3b3c",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [],
"source": [
"from qiskit_ibm_runtime.fake_provider import FakeKyoto\n",
Expand Down Expand Up @@ -470,7 +510,11 @@
"cell_type": "code",
"execution_count": 11,
"id": "15e6357b-d092-4035-90d9-cfafda151925",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -536,7 +580,11 @@
"cell_type": "code",
"execution_count": 12,
"id": "87f0dda0-ab93-40f2-abc6-4fa13a9fb216",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [],
"source": [
"from qiskit.pulse import DriveChannel\n",
Expand All @@ -557,7 +605,11 @@
"cell_type": "code",
"execution_count": 13,
"id": "1a815f55-61ec-4603-abc1-ea766f7aac43",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -600,7 +652,11 @@
"cell_type": "code",
"execution_count": 14,
"id": "8caa502e-0e02-4e77-bbe1-e35891060bae",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [],
"source": [
"with pulse.build(backend) as delay_5dt:\n",
Expand Down Expand Up @@ -639,7 +695,11 @@
"cell_type": "code",
"execution_count": 15,
"id": "9c96402f-ade7-41a6-810f-3d42f354c708",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [],
"source": [
"from qiskit.pulse import library\n",
Expand Down Expand Up @@ -668,7 +728,11 @@
"cell_type": "code",
"execution_count": 16,
"id": "5e83aa2b-a0f8-43b3-a8d5-4569c7b06c61",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -706,7 +770,11 @@
"cell_type": "code",
"execution_count": 17,
"id": "493ddc1a-62f6-44c9-ae52-51c24a505ec8",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -747,7 +815,11 @@
"cell_type": "code",
"execution_count": 18,
"id": "300f3be9-d358-441b-b860-689ce2583f45",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -782,7 +854,11 @@
"cell_type": "code",
"execution_count": 19,
"id": "3d503e04-806f-4cc5-af79-9a335856d735",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -827,7 +903,11 @@
"cell_type": "code",
"execution_count": 20,
"id": "e0f65474-a2ba-4c5e-a7e4-8714937e6d8a",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [],
"source": [
"with pulse.build(backend) as schedule:\n",
Expand All @@ -848,7 +928,11 @@
"cell_type": "code",
"execution_count": 21,
"id": "c2adf31b-1435-4321-b35f-b207ccdf3c91",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [],
"source": [
"d0 = pulse.DriveChannel(0)\n",
Expand Down Expand Up @@ -883,7 +967,11 @@
"cell_type": "code",
"execution_count": 22,
"id": "6815bb84-cef0-4c85-8023-cde8034ee225",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [],
"source": [
"d0 = pulse.DriveChannel(0)\n",
Expand All @@ -909,7 +997,11 @@
"cell_type": "code",
"execution_count": 23,
"id": "fcbee831-0ee0-4495-862f-889ddb6f1870",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [],
"source": [
"with pulse.build(backend) as schedule:\n",
Expand All @@ -933,7 +1025,11 @@
"cell_type": "code",
"execution_count": 24,
"id": "018c6d6a-fd57-4789-93be-0171733cb415",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [],
"source": [
"from qiskit.pulse import MemorySlot\n",
Expand Down Expand Up @@ -966,7 +1062,11 @@
"cell_type": "code",
"execution_count": 25,
"id": "c08405d1-302d-41fa-a6a4-58becd557541",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -1010,7 +1110,11 @@
"cell_type": "code",
"execution_count": 26,
"id": "77762b02-af9d-4bd7-b2f5-71938e20b356",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -1052,7 +1156,11 @@
"cell_type": "code",
"execution_count": 27,
"id": "edb9c3d3-7ef6-4226-a58e-5406bed352a7",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -1094,7 +1202,11 @@
"cell_type": "code",
"execution_count": 28,
"id": "dbf45d14-a643-4616-bbe1-7ff83f2cfc70",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down Expand Up @@ -1136,7 +1248,11 @@
"cell_type": "code",
"execution_count": 29,
"id": "298055b0-d979-4527-af10-8fe3f211d9de",
"metadata": {},
"metadata": {
"tags": [
"ignore-warnings"
]
},
"outputs": [
{
"data": {
Expand Down

0 comments on commit 5605709

Please sign in to comment.