The addition and subtraction of quantum matrix based on GNEQR
The efficient quantum circuits of arithmetic operations are important to perform quantum algorithms. To implement efficient matrix operations, we first modify the generalized model of the novel enhanced quantum representation of digital images (GNEQR) to store unsigned and signed integer matrices. Next, we design the circuits of the circuits of quantum addition, quantum modulo addition, quantum subtraction, and quantum modulo subtraction, these operations all keeping two operands unchanged. Then, we propose the circuits of quantum matrix addition, quantum matrix modulo addition, quantum matrix subtraction, and quantum matrix modulo subtraction for the first time. Furthermore, we present a simulation method to verify the correctness of the proposed arithmetic operations of matrix. The results of simulation experiment show that the propose arithmetic operations of matrix are efficient and correct.