implement the cubature operator.