Skip to content

Re-add conditional instructions#5208

Open
beckykd wants to merge 11 commits into
mainfrom
bd-condidtional-instructions
Open

Re-add conditional instructions#5208
beckykd wants to merge 11 commits into
mainfrom
bd-condidtional-instructions

Conversation

@beckykd

@beckykd beckykd commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

@beckykd beckykd requested a review from a team June 3, 2026 17:17
@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

@qiskit-bot

Copy link
Copy Markdown
Contributor

One or more of the following people are relevant to this code:

  • @jakelishman
  • @kevinsung

@beckykd beckykd changed the title Re-add condidtional instructions Re-add conditional instructions Jun 3, 2026
"id": "b2953dd4-218e-4daa-a753-0d2aa5e0a0bb",
"metadata": {},
"source": [
"This guide demonstrates the functionality available in the Qiskit SDK for performing classical feedforward and control flow. These features are sometimes referred to collectively as \"dynamic circuits.\" Classical feedforward refers to the ability to measure qubits in the middle of a circuit and perform additional quantum operations that depend on the measurement outcome. Qiskit supports four control flow constructs for classical feedforward, each implemented as a method on [`QuantumCircuit`](../api/qiskit/qiskit.circuit.QuantumCircuit). The constructs and their corresponding methods are:\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.

I would remove everything before Qiskit supports four control flow ... since the intro paragraph already explain what dynamic circuits and feedforward mean.

Comment on lines +72 to +74
"<Admonition type=\"caution\">\n",
" There are some limitations of classical feedforward and control flow operations on quantum hardware that might impact your program. For more information, see [Job limits](/docs/guides/job-limits).\n",
"</Admonition>\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.

The Job limits page no longer show any limits on dynamic circuits. This note should instead point out that IBM Quantum Compute doesn't support everything Qiskit supports, and people should refer to Execute dynamic circuits page for more details.

"source": [
"## Classical expressions\n",
"\n",
"The Qiskit classical expression module [`qiskit.circuit.classical`](/docs/api/qiskit/circuit_classical) contains an exploratory representation of runtime operations on classical values during circuit execution. Due to hardware limitations, only `QuantumCircuit.if_test()` conditions are currently supported.\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.

Due to hardware limitations, only QuantumCircuit.if_test() conditions are currently supported.

I missed this in the previous review, but Qiskit is hardware agnostic so we shouldn't talk about hardware limitations here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Add descriptions of more conditional instructions

3 participants