Quantum Algorithm for Linear Non-unitary Dynamics with Near-Optimal Dependence on All Parameters | Synapse