Skip to content

Commit d9d0443

Browse files
committed
Version 6.0
Signed-off-by: Vlad Gheorghiu <[email protected]>
1 parent 94932b9 commit d9d0443

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/qpp/classes/qcircuit.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)