Extended wavefunctions for the Variational Quantum Eigensolver