If you want to move to Sweden to live with someone you need to make an application for a residence permit at the Swedish Migration Board. Read about the process here.