From 4f3a80e54aa561ae16af2c8cd3ff2a22f268787a Mon Sep 17 00:00:00 2001 From: Aran Bergman Date: Wed, 1 Jul 2026 12:06:38 +0300 Subject: [PATCH] docs: fix hardcoded resonator output ports in demonstration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The resonator initialization in the Populating the Machine loop hardcoded opx_output_I/Q to ("con1", 1)/("con1", 2) for every qubit, even though the loop iterates idx to give each qubit distinct ports. The printed machine.print_summary() output later in the same doc shows q0 with ('con1', 1)/('con1', 2) and q1 with ('con1', 4)/('con1', 5), i.e. 3 * idx + 1 / 3 * idx + 2 — the code didn't match its own shown output. opx_input_I/Q are left as-is since they are intentionally shared across qubits. --- docs/demonstration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/demonstration.md b/docs/demonstration.md index 62d76885..4e2078f8 100644 --- a/docs/demonstration.md +++ b/docs/demonstration.md @@ -63,8 +63,8 @@ for idx in range(num_qubits): # Add resonator channel transmon.resonator = InOutIQChannel( id=idx, - opx_output_I=("con1", 1), - opx_output_Q=("con1", 2), + opx_output_I=("con1", 3 * idx + 1), + opx_output_Q=("con1", 3 * idx + 2), opx_input_I=("con1", 1), opx_input_Q=("con1", 2,), frequency_converter_up=FrequencyConverter(