Quantum Computing, Qiskit, Linear Algebra, Mathematics, Python.
adjointed matrix with conjugates of elements from the original matrix for i in range(rows): for j in range(columns): element = a[i][j] adjointed[j][i] = complex(element.real, -element.imag) return adjointed A = [[1+2j, 2+3j], [3+4j, 4+5j]] A_adjointed = adjoint(A) print(A_adjointed) # Output: