Qiskit / qiskit-ibm-runtime

IBM Client for Qiskit Runtime
https://docs.quantum.ibm.com/api/qiskit-ibm-runtime
Apache License 2.0
161 stars 157 forks source link

Add DoubleSliceSpan #1982

Closed joshuasn closed 1 month ago

joshuasn commented 1 month ago

Summary

Adding a new class, DoubeSliceSpan, that allows for handling data that was batched as (argument_idx, shot_idx), or equivalently, flattened according to observables + parameters and shots separately.