File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -946,6 +946,10 @@ class QCircuit : public IDisplay, public IJSON {
946946 * qc.cond_end();
947947 * \endcode
948948 *
949+ * \note Currently, conditional statements are executed only by
950+ * qpp::QEngine::execute(idx reps). If you execute the circuit via
951+ * iterators, as in a range-based loop, conditional statements are ignored.
952+ *
949953 * \param pred Boolean predicate std::vector<idx> v -> bool. The
950954 * classical dits can be read from the vector at runtime, when the circuit
951955 * is being run by a quantum engine. Example of a predicate:
@@ -997,6 +1001,10 @@ class QCircuit : public IDisplay, public IJSON {
9971001 * qc.cond_end();
9981002 * \endcode
9991003 *
1004+ * \note Currently, conditional statements are executed only by
1005+ * qpp::QEngine::execute(idx reps). If you execute the circuit via
1006+ * iterators, as in a range-based loop, conditional statements are ignored.
1007+ *
10001008 * \param pred Boolean predicate std::vector<idx> v -> bool. The
10011009 * classical dits can be read from the vector at runtime, when the circuit
10021010 * is being run by a quantum engine. Example of a predicate:
You can’t perform that action at this time.
0 commit comments