in reply to How implement AMB in perl?

I wonder if Quantum::Superpositions could be used to solve such problems. :-)