Skip to content

ottoak/pl-state-viz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PennyLane Circuuit Visualizer


Simple tool built using QuTIP and Dash to visualize states in a PennyLane circuit. Utilizies qml.snapshot() from PennyLane to capture intermediate states, and QuTIP's bloch sphere tools for visualization.

Requires poetry. To run:

poetry install
poetry run python lib/app.py

You can edit circuit.py to change the circuit, including qml.snapshot() wherever you want to get a state visualization.

The app will refresh on any file save, so you can in theory edit the circuit in real-time - though if you save the file and there is an error the app will crash :) It may also only work for 4 qubits at the moment...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages