We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7303a05 commit b2abbaaCopy full SHA for b2abbaa
docs/sphinx/examples/cpp/providers/ionq.cpp
@@ -16,7 +16,9 @@ struct ghz {
16
for (int i = 0; i < 4; i++) {
17
x<cudaq::ctrl>(q[i], q[i + 1]);
18
}
19
- mz(q);
+ // Note: All qubits will be measured at the end upon performing
20
+ // the sampling. You may encounter a pre-flight error on IonQ
21
+ // backends if you include explicit measurements.
22
23
};
24
docs/sphinx/examples/python/providers/ionq.py
@@ -11,8 +11,10 @@
11
qubits = kernel.qalloc(2)
12
kernel.h(qubits[0])
13
kernel.cx(qubits[0], qubits[1])
14
-kernel.mz(qubits[0])
15
-kernel.mz(qubits[1])
+
+# Note: All qubits will be measured at the end upon performing
+# the sampling. You may encounter a pre-flight error on IonQ
+# backends if you include explicit measurements.
# Execute on IonQ and print out the results.
0 commit comments