Skip to content

Add pure-Python result post-processing helpers#59

Open
caijintaoduolacmeng-star wants to merge 1 commit into
ionq:mainfrom
caijintaoduolacmeng-star:codex/results-postprocessing-helpers
Open

Add pure-Python result post-processing helpers#59
caijintaoduolacmeng-star wants to merge 1 commit into
ionq:mainfrom
caijintaoduolacmeng-star:codex/results-postprocessing-helpers

Conversation

@caijintaoduolacmeng-star
Copy link
Copy Markdown

Summary

  • Add ionq_core.results with pure-Python helpers for counts, bitstring relabeling, marginals, and all-Z expectation values.
  • Re-export the helpers from ionq_core.init and keep the generated package template in sync.
  • Add focused branch-coverage tests for Bell-state output, rounding ties, invalid inputs, and qubit-order marginalization.

Closes #57

Verification

  • PYTHONUTF8=1 python -m pytest -q -> 251 passed, 28 deselected, 100% coverage
  • python -m pytest tests/test_results.py --no-cov -q -> 9 passed

uff check -> All checks passed

uff format --check -> 33 files already formatted

  • y check ionq_core/ -> All checks passed
  • git diff --check -> passed

@caijintaoduolacmeng-star caijintaoduolacmeng-star requested a review from a team as a code owner June 4, 2026 19:31
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.

Add pure-Python results post-processing helpers (counts, bitstrings, marginals, expectation values)

1 participant