Quantum field machines