File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 272
272
* :class:`ForLoopOp`, to loop over a fixed range of values
273
273
* :class:`IfElseOp`, to conditionally enter one of two subcircuits
274
274
* :class:`SwitchCaseOp`, to conditionally enter one of many subcircuits
275
- * :class:`WhileLoopOp`, to repeat a subcircuit until a condition is falsified.
275
+ * :class:`WhileLoopOp`, to repeat a subcircuit until a condition is falsified
276
+ * :class:`BoxOp`, to group a series of instructions for later processing
276
277
277
278
:ref:`Circuits can include classical expressions that are evaluated in real time
278
279
<circuit-repr-real-time-classical>`, while the QPU is executing a single shot of the circuit. These
708
709
.. autofunction:: get_control_flow_name_mapping
709
710
710
711
These control-flow operations (:class:`IfElseOp`, :class:`WhileLoopOp`,
711
- :class:`SwitchCaseOp` and :class:`ForLoopOp `) all have specific state that defines the branching
712
+ :class:`SwitchCaseOp`, :class:`ForLoopOp` and :class:`BoxOp `) all have specific state that defines the branching
712
713
conditions and strategies, but contain all the different subcircuit blocks that might be entered in
713
714
their :attr:`~ControlFlowOp.blocks` property.
714
715
719
720
WhileLoopOp
720
721
SwitchCaseOp
721
722
ForLoopOp
723
+ BoxOp
722
724
723
725
The :class:`.SwitchCaseOp` also understands a special value:
724
726
Original file line number Diff line number Diff line change 1
1
---
2
- upgrade_circuits :
2
+ fixes :
3
3
- |
4
4
Converting a quantum circuit to a gate with :func:`.converters.circuit_to_instruction`
5
5
now properly fails when given circuit contains control flow instructions.
You can’t perform that action at this time.
0 commit comments