Matrix quantum mechanics from qubits