Skip to content

Cp/tfqa add - #5609

Merged
abbycross merged 28 commits into
mainfrom
cp/tfqa-add
Sep 16, 2026
Merged

abbycross merged 28 commits into
mainfrom
cp/tfqa-add

Conversation

@christopherporter1

Copy link
Copy Markdown
Collaborator

Starting to add content for the Tools for Quantum Advantage course.

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

"<Accordion>\n",
"<AccordionItem title=\"Answer\">\n",
"\n",
"(a) Qubit 3 could be affected, as well as obviously qubit 2 itself. No others! If you listed qubits 0 and 1, note that qubit 2 is the target of the ECR entangling it with qubit 1. No change is made to qubit 1 in that gate. (b) qubits 0-3 could be affected. The bit flip or X-type error does not commute with the ZZ coupling in the ECR gate and thus can propagate from the target to the control.\n",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"(a) Qubit 3 could be affected, as well as obviously qubit 2 itself. No others! If you listed qubits 0 and 1, note that qubit 2 is the target of the ECR entangling it with qubit 1. No change is made to qubit 1 in that gate. (b) qubits 0-3 could be affected. The bit flip or X-type error does not commute with the ZZ coupling in the ECR gate and thus can propagate from the target to the control.\n",
"(a) Qubit 3 could be affected, as well as obviously qubit 2 itself. No others! If you listed qubits 0 and 1, note that qubit 2 is the target of the ECR entangling it with qubit 1. No change is made to qubit 1 in that gate. (b) Qubits 0-3 could be affected. The bit flip or X-type error does not commute with the ZZ coupling in the ECR gate and thus can propagate from the target to the control.\n",

"\n",
"In the previous section we discussed error propagation without giving it a formal definition. Going forward:\n",
"\n",
"For an error $E$ that occurs before some part of the logical payload of a circuit $U$, error propagation means finding the equivalent operator $E'$' that reproduces the same faulty outcome when applied after $U$ instead of before it.\n",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"For an error $E$ that occurs before some part of the logical payload of a circuit $U$, error propagation means finding the equivalent operator $E'$' that reproduces the same faulty outcome when applied after $U$ instead of before it.\n",
"For an error $E$ that occurs before some part of the logical payload of a circuit $U$, error propagation means finding the equivalent operator $E'$ that reproduces the same faulty outcome when applied after $U$ instead of before it.\n",

"\n",
"The image of error propagation in the previous section suggested that errors could spread from a control qubit to a target qubit across a CNOT gate. One way to check when this is true is to consider an error on the control or on the target prior to entanglement, and check whether that operator commutes with the CNOT gate. If the two operators commute, then there is no difference if you apply them in the reverse order, meaning the error could be simply \"moved past\" the CNOT without having any effect on other qubits. This is the most common way people approach error propagation, and it yields the following rules:\n",
"\n",
"Let control be qubit 0 and target be qubit 1. And consider X and Z errors on the control and target qubits ($X_c$, $Z_c$, $X_t$, and $Z_t$, respectively). Moving these errors past a $\\text{CNOT}_{0\\to1}$ causes the errors to become:\n",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Let control be qubit 0 and target be qubit 1. And consider X and Z errors on the control and target qubits ($X_c$, $Z_c$, $X_t$, and $Z_t$, respectively). Moving these errors past a $\\text{CNOT}_{0\\to1}$ causes the errors to become:\n",
"Let control be qubit 0 and target be qubit 1. Consider X and Z errors on the control and target qubits ($X_c$, $Z_c$, $X_t$, and $Z_t$, respectively). Moving these errors past a $\\text{CNOT}_{0\\to1}$ causes the errors to become:\n",

"\\end{aligned}\n",
"$$\n",
"\n",
"We state the above without proof. But if you are like the author of this lesson, and prefer the Schr\\\"odinger picture, you can also write down arbitrary control and target states, apply the error, then the CNOT, and examine the final state. Comparing that final state to an error free case allows you to see what error combination applied after the CNOT would yield the erroneous state, and in particular, you can see if the error operation has spread from one qubit to the other.\n",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"We state the above without proof. But if you are like the author of this lesson, and prefer the Schr\\\"odinger picture, you can also write down arbitrary control and target states, apply the error, then the CNOT, and examine the final state. Comparing that final state to an error free case allows you to see what error combination applied after the CNOT would yield the erroneous state, and in particular, you can see if the error operation has spread from one qubit to the other.\n",
"We state the above without proof. But if you are like the author of this lesson, and prefer the Schr\\\"odinger picture, you can also write down arbitrary control and target states, apply the error, then the CNOT, and examine the final state. If you compare that final state to an error-free case, you can see what error combination applied after the CNOT would yield the erroneous state, and in particular, you can see if the error operation has spread from one qubit to the other.\n",

"\n",
"As you can imagine, tracking such propagation of error operators forward through circuits (or equivalently, propagating backward the operators to be measured) is complicated. Qiskit has tools to facilitate this, which we learn about in lesson 6 on modern workflows.\n",
"\n",
"There is a Qiskit addon called [Shaded Lightcones](https://qiskit.github.io/qiskit-addon-slc/). The shaded lightcones (SLC) addon analyzes error propagation in quantum circuits using Pauli propagation to identify which parts of a circuit can actually influence a target observable. It is designed primarily to make error mitigation more efficient, especially for probabilistic error cancellation (PEC) workflows. We will only briefly explore this tool here, and make wider use of it in the context of error mitigation techniques in future lessons. It uses Pauli operator propagation to map out propagation of errors of different types, producing a light cone for X, Y, and Z type errors.\n",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"There is a Qiskit addon called [Shaded Lightcones](https://qiskit.github.io/qiskit-addon-slc/). The shaded lightcones (SLC) addon analyzes error propagation in quantum circuits using Pauli propagation to identify which parts of a circuit can actually influence a target observable. It is designed primarily to make error mitigation more efficient, especially for probabilistic error cancellation (PEC) workflows. We will only briefly explore this tool here, and make wider use of it in the context of error mitigation techniques in future lessons. It uses Pauli operator propagation to map out propagation of errors of different types, producing a light cone for X, Y, and Z type errors.\n",
"There is a Qiskit addon called [Shaded Lightcones](https://qiskit.github.io/qiskit-addon-slc/). The shaded lightcones (SLC) addon analyzes error propagation in quantum circuits by using Pauli propagation to identify which parts of a circuit can actually influence a target observable. It is designed primarily to make error mitigation more efficient, especially for probabilistic error cancellation (PEC) workflows. We will only briefly explore this tool here, and make wider use of it in the context of error mitigation techniques in future lessons. It uses Pauli operator propagation to map out propagation of errors of different types, producing a light cone for X, Y, and Z type errors.\n",

"\n",
"![A ten-qubit quantum circuit that has been transpiled and has many entangling and rotation layers.](/learning/images/courses/tools-for-quantum-advantage/noise-and-errors/circ.avif)\n",
"\n",
"Separates it into \"boxes\" useful for learning noise behavior:\n",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Separates it into \"boxes\" useful for learning noise behavior:\n",
"The workflow separates the circuit into \"boxes\" useful for learning noise behavior:\n",

"\n",
"![The same ten-qubit quantum circuit as in the previous figure, but now similar layers have been \"boxed\", meaning they have been outlined in a red box.](/learning/images/courses/tools-for-quantum-advantage/noise-and-errors/circ-boxed.avif)\n",
"\n",
"And finally uses operator propagation and noise learning to produce a shaded map of error susceptibility throughout the circuit:\n",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"And finally uses operator propagation and noise learning to produce a shaded map of error susceptibility throughout the circuit:\n",
"Finally, it uses operator propagation and noise learning to produce a shaded map of error susceptibility throughout the circuit:\n",

"<Accordion>\n",
"<AccordionItem title=\"Answer\">\n",
"\n",
"It must be done after transpilation. In order for these different maps to be useful we must make sure that the adjacent qubits in our circuit corresponded to adjacent qubits on our quantum chip. Otherwise, entangling gates shown as acting on the adjacent qubits in the circuit diagram would end up requiring SWAP gates and more complicated circuit structure.\n",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"It must be done after transpilation. In order for these different maps to be useful we must make sure that the adjacent qubits in our circuit corresponded to adjacent qubits on our quantum chip. Otherwise, entangling gates shown as acting on the adjacent qubits in the circuit diagram would end up requiring SWAP gates and more complicated circuit structure.\n",
"It must be done after transpilation. In order for these different maps to be useful we must make sure that the adjacent qubits in our circuit corresponded to adjacent qubits on our quantum chip. Otherwise, entangling gates shown as acting on the adjacent qubits in the circuit diagram would end up requiring SWAP gates and more a complicated circuit structure.\n",

"\n",
"### Energy relaxation ($T_1$) errors\n",
"\n",
"Recall from our discussion of thermal noise that at any non-zero temperature, there is some probability of a quantum system undergoing a transition between energy eigenstates. The relaxation ($|1\\rangle> \\rightarrow |0\\rangle$) dominates because it's driven by spontaneous emission (independent of temperature), while low temperature suppresses the competing excitation process. The longer a qubit sits idle, the more time it has to undergo such a transition. The probability that a qubit prepared in the state $|1\\rangle$ remains in $|1\\rangle$ after a time $t$ is given by\n",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Recall from our discussion of thermal noise that at any non-zero temperature, there is some probability of a quantum system undergoing a transition between energy eigenstates. The relaxation ($|1\\rangle> \\rightarrow |0\\rangle$) dominates because it's driven by spontaneous emission (independent of temperature), while low temperature suppresses the competing excitation process. The longer a qubit sits idle, the more time it has to undergo such a transition. The probability that a qubit prepared in the state $|1\\rangle$ remains in $|1\\rangle$ after a time $t$ is given by\n",
"Recall from our discussion of thermal noise that at any non-zero temperature, there is some probability of a quantum system undergoing a transition between energy eigenstates. The relaxation ($|1\\rangle \\rightarrow |0\\rangle$) dominates because it's driven by spontaneous emission (independent of temperature), while low temperature suppresses the competing excitation process. The longer a qubit sits idle, the more time it has to undergo such a transition. The probability that a qubit prepared in the state $|1\\rangle$ remains in $|1\\rangle$ after a time $t$ is given by\n",

Comment thread learning/courses/tools-for-quantum-advantage/noise-and-errors.ipynb Outdated

@christopherporter1 christopherporter1 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Thank you!

@abbycross
abbycross enabled auto-merge September 16, 2026 14:48
@abbycross abbycross closed this Sep 16, 2026
auto-merge was automatically disabled September 16, 2026 14:51

Pull request was closed

@abbycross abbycross reopened this Sep 16, 2026
@github-project-automation github-project-automation Bot moved this from Done to Todo in Docs Planning Sep 16, 2026
@abbycross
abbycross enabled auto-merge September 16, 2026 14:51
@abbycross
abbycross added this pull request to the merge queue Sep 16, 2026
Merged via the queue into main with commit ef680df Sep 16, 2026
8 of 9 checks passed
@abbycross
abbycross deleted the cp/tfqa-add branch September 16, 2026 15:02
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs Planning Sep 16, 2026

This branch had an error being deployed

1 failed deployment
pr_preview — 7e0dc413 Deployed Sep 16, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants