Quantum and photonic information processing with non-von Neumann architectures