make_remove#

make_remove(func)[source]#

Remove all pathways for which func is True.

Parameters:

func (Callable) – Callable taking KetBra instance and returning True or False.

Returns:

Function taking a root of KetBra excitation tree and removing all branches for which func returns True when called on the leaf.

Return type:

Callable

See also

make_only