The geometry of parallelism: Classical, probabilistic, and quantum effects