Combine Pauli measurements and postselection
Thanks, Danni! This is a really great start! In addition to the comments below, it would be great if we could return the fraction of the bitstrings that survive the postselection, and maybe even more granular information in addition, like how many violate each of the symmetries. Maybe we can also optionally return the raw bitstrings to the users in case they want to do more analysis on them.
I actually have
@attrs.frozen
class PostFilteringSymmetryCalibrationResult:
"""Result of post-selection symmetry calibration.
Attributes:
raw_bitstrings: The raw bitstrings obtained from the measurement.
filtered_bitstrings: The bitstrings after applying post-selection symmetries.
"""
raw_bitstrings: np.ndarray
filtered_bitstrings: np.ndarray
Maybe I can add:
- fraction_of_survived_bistrings: float
- symmetry_to_filtered_bistrings: dict{paulistring|paulisum, list[bitstrings]}?
@ddddddanni ah, I missed that I can do .calibration_result.filtered_bitstrings and .calibration_result.calibration_result.filtered_bitstrings. That's great! Thanks!
@ddddddanni Just wanted to gently ask what the status of this is. No pressure; I know this is a draft.
@ddddddanni Just wanted to gently ask what the status of this is. No pressure; I know this is a draft.
Thanks for checking!! I was working on the other PRs and Q3 okrs. I plan to get back to this PR this week.
@ddddddanni No problem at all. Thanks for your quick reply!