Quantum error-correcting codes play an important role in not only quantum communication but also quantum computation.Many good quantum error-correcting codes have been constructed by using classical linear codes,for example,Hamming codes,BCH codes,RS codes and Reed-Muller codes.A new method to obtain quantum codes and asymmetric quantum codes is presented.Based on line graph of the n-cube,infinite families of new quantum codes and asymmetric quantum codes are presented.Moreover,if the length of asymmetric q...