Ahmose is, generously speaking, a half-trained zeroth-circle wizard without a spellbook. The half he isn't trained in includes spellcraft. He knows how to read and visualize spells, and see if they stabilize and at which circle; he has no idea what they do, or why, or how to make them do something else instead. He's also unfamiliar with most of the standard spells, so it's not as if he could crib the targeting off Teleport even if he wanted to.
With enough focus on the only thing that matters, he can admit to what he doesn't know: he won't get anywhere by thinking about the spellform itself.
But he does know what his spell does. He knows what it means for a portal to exist. He can see what other things could happen instead, and nudge his spell in random ways until he figures out which part does what, and keep going until he happens to nudge it in a way that does what he wants.
Ahmose doesn't know how he knows any of this. The knowledge just sits there, in his head, as intuitive and obvious as gravity pulling things down or light casting shadows.
Usually this is the point where he is distracted by worrying that he a sorcerer and not a wizard - denying that he is a sorcerer - hating himself for being a sorcerer - trying to understand his spell the way he imagines a wizard would, and failing, and hating himself even more, and just circling pointlessly round and round -
Ahmose can't be distracted anymore. It would be an effort even to remember what he usually worries about, and he isn't trying. He just focuses on the spell, methodically perturbs it in every way he can, and observes the results.