That’s fine but you did not provide any meaningful explanation how this could happen. I’m not denying your right to believe in whatever you want but also don’t see any reason to share your beliefs without a convincing scenario explaining how Persia of XVIII - mid-XIX can develop the modern, by the standards of times, metallurgy and other technologies needed for a quality jump.
They don't need to develop those, because they already had them. The issue was never technology for any of the gunpowder empires, it always came down to economies of scale and standardization. Iran largely used the same kinds of weapons that Europe did, albeit with a generally heavier focus on light cavalry tactics dictated by the terrain and differences in military culture. Most of the practical differences didn't appear until the mid 19th century, when the industrial revolution allowed Eurpean nations to mass produce weapons and technology on a scale impossible for unindustrialized economies.
But this process can be, and was, replicated by non-western powers. Japan is a famous example, but China, the Ottoman Empire and Egypt were all nations that managed to build for themselves militaries that fell into the same category of a modern fighting force. Even if these powers were then defeated by European armies, their militaries were still playing in the same league as the Westerners, and their defeat was generally more due to economic and political factors than due to "technology" (which is a weird term that most laypeople overestimate in importance).
By the early XVIII this was simply not true. The first successful attempt to create European-style army belongs to the early XIX, to be specific, 1826 when the Janissary were abolished.
The presence of the Janissaries does not preclude the Ottoman army from being a modern, European military. Ottoman forces fought in a very similar manner to Western ones, in regimented structures commandeered by an officer corps and using primarily blackpowder weapons.
How many wars against the Russians did they won between 1730 and 1854? The main Russian problem within that period was logistics of the Balkans and the Caucasus, not the Ottoman armies.
One. That doesn't change the fact that the Ottomans were capable of significantly interferring with Russia's geopolitical interests, which is how I'd define a rival.