Qiskit / qiskit-addon-mthree

Matrix-free Measurement Mitigation
https://qiskit.github.io/qiskit-addon-mthree/
Apache License 2.0
37 stars 27 forks source link

Move to simd optimized omp code #214

Closed nonhermitian closed 1 month ago

nonhermitian commented 2 months ago

I have tweaked the core logic of the M3 code to utilize openmp simd reductions inside of the openmp loops. Ad-hoc testing shows that this gives a good speed up for column renormalization, computing matrix elements and matvec as a whole. Moving from Cython to this c-code seems like an easy win. The downside is that openmp must be v4 or higher, and I am not sure how much windows support there is for that.

Part of this will include going from double -> float data for the calibrations as the former has too much precision here.

nonhermitian commented 1 month ago

This is done for the most critical pieces.