Depending on your needs regarding communication (calls, texts, internet, international calls, and how often you use them) you can opt for either a mobile contract or prepaid.
To get a mobile phone contract, you must present a residency card (which you receive from the OCPM when your visa has been approved and the card has been processed and sent). The contract can be signed for one or two years with or without the purchase of a telephone.
Here are some of the current offers for both prepaid & contracts (August 2016)
If you want to continue to use your foreign phone in Switzerland, make sure that the bandwidth is compatible (especially for North American phones). You can find this information with a quick Google search with the name of your phone and “European compatibility.” Many older smartphones are not compatible. Also, make sure that it is unlocked prior to coming to Switzerland, as the task can be complicated to accomplish here.