Skip to main content

InitialStateTreeExt

Trait InitialStateTreeExt 

Source
pub trait InitialStateTreeExt {
    // Required method
    fn initial_state_tree(
        &self,
        initial_state: &SuBitGraph,
        loop_independent: impl FnMut(EdgeIndex) -> bool,
    ) -> (SuBitGraph, Vec<EdgeIndex>);
}
Expand description

Shared topology cleanup for threshold partitions after initial-state sewing.

Required Methods§

Source

fn initial_state_tree( &self, initial_state: &SuBitGraph, loop_independent: impl FnMut(EdgeIndex) -> bool, ) -> (SuBitGraph, Vec<EdgeIndex>)

Select the vertex crowns adjacent to loop-independent paired edges. Threshold sides are normalized during FeynKit finalization; runtime threshold queries reuse the same selection without changing those sides.

Prefer the edge’s source crown when it touches the initial cut; otherwise use its sink crown if that touches the cut. Internal bridges are retained.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<E, V, H, N: NodeStorageOps<NodeData = V>> InitialStateTreeExt for HedgeGraph<E, V, H, N>

Source§

fn initial_state_tree( &self, initial_state: &SuBitGraph, loop_independent: impl FnMut(EdgeIndex) -> bool, ) -> (SuBitGraph, Vec<EdgeIndex>)

Implementors§