Using weak nonlinearity under decoherence for macroscopic entanglement generation and quantum computation | Synapse