Skip to content

Add symbolic backends#9

Open
matulni wants to merge 10 commits into
TeamGraphix:masterfrom
matulni:backend
Open

Add symbolic backends#9
matulni wants to merge 10 commits into
TeamGraphix:masterfrom
matulni:backend

Conversation

@matulni

@matulni matulni commented May 20, 2026

Copy link
Copy Markdown
Collaborator

This PR adds new modules statevec and density_matrix to support symbolic simulations.

  • statevec is copy-pasted from graphix.sim.state_vec except for methods fidelity, isclose, to_dict, to_prob_dict, and _to_dict_map which do not work in symbolic expressions. (This could probably be fixed, but I don't think is worth the time investment). The module in the main repo will be soon subsumed by the jit version.

  • density_matrix is copy-pasted from graphix.sim.density_matrix as is. The module in the main repo may be subsumed by more efficient version in the long term. This PR prepares the ground for that, but also will allow to remove np.object_ types in the main repo, and hopefully solve this longstanding issue

@matulni
matulni requested a review from thierry-martinez May 20, 2026 15:18
Comment thread graphix_symbolic/_version.py Outdated
Comment on lines +1 to +2
# file generated by vcs-versioning
# don't change, don't track in version control

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This file is auto‑generated and, as this comment states, should not be versioned. If you remove it from the repository (and add it to .gitignore to prevent it from being added again), it will resolve the CI problem in TeamGraphix/graphix#518.

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