Text this: Quantum state preparation for multivariate functions