Skip to content

fix(#42): PEC and CDR now warn users they are placeholder implementations - #93

Merged
Manideep3969 merged 1 commit into
mainfrom
fix/issue-42-pec-cdr-placeholders
Aug 18, 2026
Merged

fix(#42): PEC and CDR now warn users they are placeholder implementations#93
Manideep3969 merged 1 commit into
mainfrom
fix/issue-42-pec-cdr-placeholders

Conversation

@Manideep3969

Copy link
Copy Markdown
Owner

Bug Fix

PEC and CDR mitigation methods returned results without indicating they are placeholders, misleading users into trusting inaccurate values.

Changes:

  • Add field to
  • PEC and CDR results set and emit
  • ZNE results remain with no warning
  • 3 new regression tests verifying warnings and placeholder flags

All 316 tests pass.

…ions

PEC and CDR methods returned results without indicating they are
placeholders, misleading users into trusting inaccurate values. PEC
returned raw_values[0] with no error cancellation, and CDR applied
simple linear extrapolation rather than true Clifford data regression.

Fix: Add placeholder=True field to MitigationResult. PEC and CDR
results now set placeholder=True and emit UserWarning explaining
the limitations. ZNE results remain placeholder=False with no warning.

All 316 tests pass.
@Manideep3969
Manideep3969 merged commit 5a71aa3 into main Aug 18, 2026
4 checks passed
@Manideep3969
Manideep3969 deleted the fix/issue-42-pec-cdr-placeholders branch August 18, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant