Don’t know if it would work on those ants, but it worked on their relative, the yellow jacket... I poured a gallon of ammonia into their hole followed by a gallon of bleach and covered up the exit.
I hope you weren’t anywhere near the area after he poured in the bleach. Clear ammonia and chlorine bleach together make chlorine gas, which can ruin your whole day.
In what proportions? One cup of each or what?
Gophers annihilated by vegetable garden and your idea sounds like something to try.
You end up with straight chlorine gas by mixing the two. When that mixes with with water in the air (or in your lungs) you get HCl. Strong Hydrochloric acid.
I have treated several people over the years with burned lungs from mixing this.