Are MPS operators rewritten?

Are the operators in the MPS backend rewritten from scratch or taken from libtorch’s MPS backend?