Quantum-tailored machine-learning architectures