Skip to content

Commit

Permalink
docs(notebooks): add section titles to twirling guide
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrorrivero committed Mar 5, 2024
1 parent 14dac3e commit 1702a47
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/notebooks/twirling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## What is twirling?\n",
"```\n",
"Missing scientific/theoretical explanation\n",
"```\n",
"Let us begin by introducing an auxiliary class `PauliTwirl`, to represent a single Pauli twirl:"
]
},
Expand Down Expand Up @@ -91,6 +95,10 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Operation-preserving twirls\n",
"```\n",
"Missing scientific/theoretical explanation\n",
"```\n",
"Next we will create a helper function `generate_pauli_twirls` to compute all operation-preserving twirls for a given unitary matrix numerically:"
]
},
Expand Down Expand Up @@ -130,7 +138,11 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Finally, with these tools, we can create a simple transpiler pass `TwoQubitPauliTwirlPass` to apply Pauli twirling to an input `DAGCircuit`:"
"## Random twirling\n",
"```\n",
"Missing scientific/theoretical explanation\n",
"```\n",
"Finally, with these tools, we can create a simple [transpiler pass](https://docs.quantum.ibm.com/transpile/custom-transpiler-pass#transpiler-passes) `TwoQubitPauliTwirlPass` to apply Pauli twirling to an input `DAGCircuit`:"
]
},
{
Expand Down Expand Up @@ -187,6 +199,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Usage\n",
"Using Qiskit's `PassManager` we can now run a simple example:"
]
},
Expand Down

0 comments on commit 1702a47

Please sign in to comment.