Skip to content

fix(#44): reconstruct() warns that QPD reconstruction is a placeholder - #95

Merged
Manideep3969 merged 1 commit into
mainfrom
fix/issue-44-reconstruct-qpd
Aug 18, 2026
Merged

fix(#44): reconstruct() warns that QPD reconstruction is a placeholder#95
Manideep3969 merged 1 commit into
mainfrom
fix/issue-44-reconstruct-qpd

Conversation

@Manideep3969

Copy link
Copy Markdown
Owner

Bug Fix

The reconstruct() method summed subcircuit counts uniformly and normalized, losing the sign and coefficient information required by proper quasi-probability decomposition. This produced incorrect expectation values when cuts were present.

Changes:

  • Add when explaining results are not accurate
  • Add docstring warning directing users to from Qiskit Extensions
  • 3 regression tests verifying warning behavior and zero-cuts path

All 319 tests pass.

The reconstruct() method summed subcircuit counts uniformly and
normalized, losing the sign and coefficient information required by
proper quasi-probability decomposition. This produced incorrect
expectation values when cuts were present.

Fix: Add UserWarning when num_cuts > 0 explaining that results are
not accurate and directing users to circuit_knitting from Qiskit
Extensions. Add docstring warning. Add 3 regression tests.

All 319 tests pass.
@Manideep3969
Manideep3969 merged commit e8f3e55 into main Aug 18, 2026
4 checks passed
@Manideep3969
Manideep3969 deleted the fix/issue-44-reconstruct-qpd branch August 18, 2026 07:54
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