How to prepare a quantum state?