When creating matrices and calculating matrix multiplication operations with Matlab, it is important to be aware of the computer'sAvailable memory size(space resources) andCPUperformances(affecting the calculation time used).
For example, let's do the following test: n is the number of qubits, then a matrix Matrix_A=rand(2^n,2^n) can represent either a density matrix of n-qubits (all-real quantum state) or a Missy operation (real matrix example).
Note: Such a matrix Matrix_A is double-precision, to save memory resources, you can use single(Matrix_A) to get a single-precision matrix.
Note: Turning on the Parallel Computing Toolbox in the lower left corner may not result in a significant speedup when doing matrix multiplication.