Quantum Theory and Application of Contextual Optimal Transport