Los Angeles prosecutors say a Virginia woman has been sentenced to probation for trespassing at the home of actor Will Smith and refusing to leave.

Ariel Archer pleaded no contest to the misdemeanour during her arraignment Monday in Los Angeles Superior Court in Van Nuys.

Prosecutors say a housekeeper found the 26-year-old Richmond, Virginia, woman in the kitchen of the Calabasas house on March 21.

Smith and his wife, Jada Pinkett Smith, and their children were not home at the time.

Deputy District Attorney Ann Korban says Archer was placed on three probation for three years and ordered to stay 150 yards from the Smith family and their home.