Handle the case where not all qubits are measured (e.g., observed circuits).
Fix the "clip-and-renorm" logic after computing the error mitigated probabilities (multiplying the errorKernel matrix with the original probabilities). Add assert to verify that the total count after mitigation matched the original number of shots.
Handle the case where not all qubits are measured (e.g., observed circuits).
Fix the "clip-and-renorm" logic after computing the error mitigated probabilities (multiplying the
errorKernel
matrix with the original probabilities). Add assert to verify that the total count after mitigation matched the original number of shots.Adding unit tests to CI.