From 19084b179e1af4e4bd393da742fa839a9f271365 Mon Sep 17 00:00:00 2001 From: Simon Hofmann Date: Thu, 3 Sep 2026 11:03:50 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Use=20valid=20QASM=20in=20DDSIM?= =?UTF-8?q?=20status=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use a scalar bit condition and avoid a redundant register remeasurement that is ill-typed after indexed access. Assisted-by: GPT-5.6 via Codex --- test/qdmi/devices/dd/helpers/circuits.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/qdmi/devices/dd/helpers/circuits.hpp b/test/qdmi/devices/dd/helpers/circuits.hpp index d2af067a39..34afc4fd7c 100644 --- a/test/qdmi/devices/dd/helpers/circuits.hpp +++ b/test/qdmi/devices/dd/helpers/circuits.hpp @@ -77,15 +77,13 @@ cx q[0], q[1]; // Measure all qubits c = measure q; // Add dynamic component -if (c == 3) { +if (c[0]) { rx(0.7) q[0]; ry(0.5) q[1]; rz(1.1) q[2]; ry(0.3) q[3]; rx(0.9) q[4]; } -// Measure all qubits again -c = measure q; )"; } // namespace qdmi_test