Ground state properties of a toroidally trapped Bose-Einstein condensate