Matrix-Product Operators and States