Skip to content

Add symbolic backends#9

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

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

Conversation

@matulni
Copy link
Copy Markdown
Collaborator

@matulni matulni commented May 20, 2026

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
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