A man who used a samurai sword to virtually decapitate the mother of their child outside her San Carlos home in front of horrified onlookers was sentenced to 26 years to life in prison Tuesday.