Skip to content

feat(python): expose qudit reference simulators - #592

Open
qciaran wants to merge 1 commit into
qutrit-simulatorsfrom
qudit-python-bindings
Open

feat(python): expose qudit reference simulators#592
qciaran wants to merge 1 commit into
qutrit-simulatorsfrom
qudit-python-bindings

Conversation

@qciaran

@qciaran qciaran commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add thin PyO3 bindings for generalized qudit and dimension-fixed qutrit state-vector and density-matrix simulators
  • expose operators, Kraus channels, instruments, measurements, reset/preparation, reduced states, diagnostics, and helper channels using ordinary Python sequences
  • add pecos_rslib.simulators type stubs, high-level pecos.simulators re-exports, and user documentation
  • add fixed-seed deterministic Python verification without a NumPy runtime dependency

Validation

  • cargo check -p pecos-rslib
  • cargo clippy -p pecos-rslib --all-targets -- -D warnings
  • Ruff checks
  • 7 focused Python tests pass
  • high-level pecos.simulators import smoke test passes

Stacked on #588; retarget to dev after #588 merges.

@qciaran
qciaran requested a review from ciaranra as a code owner August 25, 2026 08:39
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.

2 participants