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 {
946
946
* qc.cond_end();
947
947
* \endcode
948
948
*
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
+ *
949
953
* \param pred Boolean predicate std::vector<idx> v -> bool. The
950
954
* classical dits can be read from the vector at runtime, when the circuit
951
955
* is being run by a quantum engine. Example of a predicate:
@@ -997,6 +1001,10 @@ class QCircuit : public IDisplay, public IJSON {
997
1001
* qc.cond_end();
998
1002
* \endcode
999
1003
*
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
+ *
1000
1008
* \param pred Boolean predicate std::vector<idx> v -> bool. The
1001
1009
* classical dits can be read from the vector at runtime, when the circuit
1002
1010
* is being run by a quantum engine. Example of a predicate:
You can’t perform that action at this time.
0 commit comments