Interactively visualizing two-qubit states

The QuantumSavory.StatesZoo.stateexplorer routine lets you generate an interactive state visualizer, that can also be used as an input state in interactive live simulations.

E.g. take the Barrett-Kok dual-rail heralded entanglement procedure – it produces a state that is available from QuantumSavory.StatesZoo as BarrettKokBellPairW. The following is enough to generate the interactive Makie figure:

stateexplorer!(fig, BarrettKokBellPairW)

Below we embed a live version of this state explorer (hosted at areweentangledyet.com/state_explorer/):

The source code is in the examples/state_explorer folder.