Skip to content

Tensor network (MPS) based animation view for multi-qubit state + entanglement #4

Description

@q-inho

Our current visualization is effectively density matrix oriented, which becomes hard to animate and interpret once the circuit goes beyond ~5 qubits (both performance and visual clutter). This makes it difficult to explore larger circuits even when an MPS-style simulation would still be feasible.

I think adding a new “Tensor Network” visualization mode inspired by MPS: each qubit is shown as a node (with a simple per-qubit state indicator, e.g., Bloch sphere/axes or $|0\rangle$ / $|1\rangle$ probabilities + phase), and entanglement is shown as bond connections between nodes. Bond strength can be encoded by thickness/ or color using Schmidt coefficients, bond entropy, or effective bond dimension, and it should update smoothly after each applied gate.

This visualization should be driven by an MPS simulator backend so that the animation remains responsive for more than 5 qubits. The view should support playback controls and a clear mapping between gates applied and changes in nodes/bonds, while keeping the representation stable so users can track evolving entanglement.

Expected the engine can be switched between the existing density matrix view and the new tensor-network view. The tensor network view should be able to animate circuits beyond 5 qubits without major slowdown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew functionality to be designed and implemented

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions