One can only start with half-pass when the exercises shoulder-in and hindquarter-in are properly taught to the horse. It is first taught in hand, and then in riding.
At the beginning, a few steps should be enough.
When the horse gets stronger, this can be built up towards an entire diagonal.
The exercise can be done in walk, trot and finally also in collected canter.