Skip to content

Commit

Permalink
feat: save circuit indices
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Nov 20, 2024
1 parent ccaeed1 commit 86161d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qibocal/protocols/rb_qiskit/rb2q.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 86161d3

Please sign in to comment.