If you are in a Fish-In Cycling Situation, the optimal pH is whatever your tap water pH is, assuming that is reasonable for what your fish are used to, you are pretty much confined to basing your thinking on the fish.
If you are Fishless Cycling, you have much more leeway to to concoct the "optimal bacterial growing soup" per whatever latest tips we poor hobbyists have been able to dig up from a scientific world that sees little money or health return from doing science on these particular beasts, lol.
For better or worse, my current favorite recipe is pH of 8.0 to 8.4 (based on comments from Tim Hovanec, a guy who did his PhD on these bacteria) and a temp of 29C/84F with attention to there being some calcium hardness and some Iron(Fe) available in the water (they use this things in some of the cell structures, but of course they mainly use lots of fresh oxygen and ammonia for their daily existence.) This kind of detail is mostly way,way overkill and as the guys say above, pH stats in the 7's will work fine, as seen in most cases.
~~waterdrop~~