My opinion on Soma Yajña is that the ritual is a form of controlled laboratory experiment to perform astronomical calculations. The amount of the juice extracted in the ritual is a measure of some celestial motion.
Perhaps an entheogen is used for bringing clarity to the mind for calculations, but that is secondary.