There are such things such as restraining orders and there also (civil) laws against stalking:
Art. 28b Civil Code states:
Art. 28b1
b. Violence, threats or harassment
1 To obtain protection from violence, threats or harassment the applicant may request the court in particular to order the offending party to refrain from:
1.approaching the applicant or from entering a defined area around the applicant’s dwelling;2.frequenting specified locations, notably particular streets, squares or districts;3.from making contact with the applicant, especially by telephone, in writing or electronically, or from harassing the applicant in any other way.
2 If the applicant lives in the same dwelling as the offending party, the applicant may ask the court to order the offending party to leave the dwelling for a specified period. This period may be extended on one occasion for good cause.
3 Where justified by the circumstances, the court may:
1.require the applicant to pay reasonable compensation for his or her exclusive use of the dwelling; or2.with the landlord’s consent, transfer the rights and obligations under the lease to the applicant alone.
4 The cantons shall designate an authority which in urgent cases may order the immediate expulsion of the offending party from the joint dwelling and shall enact rules governing the procedure.
In addition several Cantons have additional rules on domestic violence which allow for quick intervention before the court proceedings are initiated: In a nutshell the principle is "wer schloht, da goht" (he or she who hits, leaves), which gives the police the authority to forbid a person who is abusive of returning to the house/apartment of several days. They take away his or her keys, etc. In the meantime the abused person can seek an extension of this order with the civil courts.
Domestic violence is deemed not only to be actual physical harm but also threats of violence and classical stalking (for Zurich see:
Gewaltschutzgesetz).
Anybody who is interested in the topic can have look at the
116 page report commissioned by the office against violence (Fachstelle gegen Gewalt / Violence Protection Service)
www.against-violence.ch
As to the various options available in the different cantons (
Stand der Gesetzgebung).