make_remove
make_remove#
- make_remove(func)[source]#
Remove all pathways for which
funcis True.- Parameters
func (Callable) – Callable taking
KetBrainstance and returning True or False.- Returns
Function taking a root of
KetBraexcitation tree and removing all branches for whichfuncreturns True when called on the leaf.- Return type
Callable
See also