wubit implementation