mod gates;
mod operators;
mod particles;
mod wavefunctions;
use crate::hub::domain::common::errors::HubResult;
use crate::hub::engine::dispatch::params::Params;
use crate::hub::engine::experience::runner::RunOutput;
pub(super) fn dispatch(func: &str, p: &Params) -> HubResult<RunOutput> {
wavefunctions::dispatch(func, p)
.or_else(|_| gates::dispatch(func, p))
.or_else(|_| operators::dispatch(func, p))
.or_else(|_| particles::dispatch(func, p))
}