Text this: Variational quantum algorithm for low-dimensional systems in the Pauli basis