Adiabatic Entangling Gate of Bose-Einstein Condensates Based on the Minimum Function