burn_quantum_visualization 0.3.0

Interactive Bevy workbench for quantum circuits, states, photonic fabrics and optimization
Documentation
//! Native Bevy UI and bounded, cached scientific drawing.
mod circuit;
pub(crate) mod diagnostics;
mod fabric;
mod input;
mod inspection;
mod learning;
mod plot;
mod state;
pub(crate) mod theme;
mod ui;
use bevy::prelude::*;
/// Installs responsive Feathers controls and scientific views.
pub(crate) struct ExplorerViewPlugin;
impl Plugin for ExplorerViewPlugin {
    fn build(&self, app: &mut App) {
        app.init_resource::<plot::CanvasBounds>()
            .init_resource::<plot::PlotCache>()
            .init_resource::<state::surface::BlochSurfaces>()
            .add_systems(Startup, ui::setup)
            .add_systems(
                Update,
                (
                    ui::responsive,
                    input::pointer_keyboard,
                    input::touch,
                    ui::sync_controls,
                    plot::rebuild,
                    plot::draw,
                )
                    .chain(),
            )
            .add_systems(
                PostUpdate,
                (plot::measure_canvas, diagnostics::update)
                    .chain()
                    .after(bevy::ui::UiSystems::Layout),
            );
    }
}