Skip to content

Conversation

@mateuszkupper
Copy link
Collaborator

@mateuszkupper mateuszkupper commented Oct 10, 2025

  1. Provided the default permanent evaluation from core.path.Matrix as a backend PermanentBackend:
  • allows to calculate: probabilities, amplitudes, a density matrix
  • only allowed for pure LO circuits
  • see docs/notebooks/bose_hubbard.ipynb for an example
  1. Refactored and extended the PercevalBackend:
  • the extension allows for calculation of amplitudes, probabilities and density matrices using a chosen perceval backend (e.g. SLOS, NaiveBackend)
  • only working for diagrams which are states (if a diagram has "open" inputs, an external perceval state needs to be specified)
  • the backend calculates a single prob/amp when provided with a closed diagram (dom/cod == 0)
  1. Fixed evaluating sums of diagrams with the perceval backend.
  2. Fixed some import issues from optyx import ... -> from optyx.core.channel import ... used in optyx.core.zw/zx.

@mateuszkupper mateuszkupper marked this pull request as ready for review October 20, 2025 10:30
Copy link
Collaborator

@giodefelice giodefelice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@giodefelice giodefelice merged commit 75836e1 into main Oct 27, 2025
3 checks passed
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.

3 participants