We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7167bdd commit d7ea77cCopy full SHA for d7ea77c
mlir/include/mlir/Dialect/QC/IR/QCOps.td
@@ -937,7 +937,10 @@ def CtrlOp : QCOp<"ctrl",
937
A modifier operation that adds control qubits to the unitary operation
938
defined in its body region. The controlled operation applies the
939
underlying unitary only when all control qubits are in the |1⟩ state.
940
- The control qubits are not modified by this operation.
+
941
+ Note that control qubits are logically unmodified by this operation in that
942
+ their quantum state remains unchanged. However, the `controls` argument
943
+ is marked with `MemWrite` to ensure correct dependency tracking in MLIR.
944
945
Example:
946
```mlir
0 commit comments