Added 'typeOfInnerProduct' support to ensure the correct type is returned from the matrix product operator.