Stochastic Entropy Production for Classical and Quantum Dynamical Systems with Restricted Diffusion | Synapse