From 95a6b0a68ffaadcff0dd72661bc14d9198f3524c Mon Sep 17 00:00:00 2001 From: Stavros Efthymiou <35475381+stavros11@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:36:57 +0400 Subject: [PATCH] feat: save circuit indices --- src/qibocal/protocols/rb_qiskit/rb2q.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qibocal/protocols/rb_qiskit/rb2q.py b/src/qibocal/protocols/rb_qiskit/rb2q.py index 24360344e..9f85a17c4 100644 --- a/src/qibocal/protocols/rb_qiskit/rb2q.py +++ b/src/qibocal/protocols/rb_qiskit/rb2q.py @@ -185,6 +185,7 @@ def _acquisition( nshots=params.nshots, niter=params.niter, ) + data.circuits[targets[0]] = [] for depth in params.depths: indices = np.random.randint(0, NCLIFFORDS, size=(params.niter, depth)) @@ -248,6 +249,7 @@ def _acquisition( data.register_qubit( RBType, (targets[0][0], targets[0][1], depth), {"samples": samples} ) + data.circuits[targets[0]].extend(ids.tolist() for ids in indices) return data