pilot code of LIH based on max cut