The terrain of Kashgaria is harsh and passing it is difficult if not impossible without the support of enourmous logistics that Alexander couldn't possibly muster. Kashgaria has been discribed by the 19th century European as impossible to get out once you got in. And these are not taking account the marauding enemy that would harass Alexander's troops. Even if by some miracle Alexander manage to reach China, the kingdom of Qin's power is more than enough to stop Alexander's advance for the simple reason that Alexander's troops that invade couldn't possibily have numbered more than his typical 30,000-50,000 in his campaigns, and these are his elite troops. to travel such a distance, only small size could be mantained, large armies of hundred thousand would require enourmous logistic support which Alexander is not able to maintain thus it would only be a hinderance to his campaign. And add to the fact that he has to worry about rebellion within his own empire, large troops are need to guard his empire. Besides the reserves he could get will only be Persian ones which is of low quality in comparison. Qin on the other hand is on their own ground, has their own numerous cities to defend, inexhuastable resource considering its their own territory, and superior ramped earth walls which inferior Greek siege craft not to mention it could only be light ones since its a distant campaign would not be able to take down. All Qin has to do is wait till Alexander's troops starve and retreat, then attack and rout. A 50,000 Macedonian troop traveling across the Taklamakan desert would not pose any danger to Qin in the slightest way. It would merely be treated as another one of those petty raids made by the Hu and Qiang tribes that are in Qin's border. And the fact that Qin has over half a million standing army is moer than enough to stop a little army of 50,000. And contrast to popular bias, Macedonian troops are not superior in battle than the armies of central plain, in equipment, tactic, organization or discipline. And considering Qin's(as well as the other central plain states) vast resource due to superior agriculture and blast furnace metal production, its resource would not end. Conquering Qin is like conquering Rome during hannibal, even if Qin could be defeated in battles, in would not loose the war. Only Qin's resource is greater than Rome's, and Alexander has to travel through far tougher terrain than Hannibal making Alexander's chance of vicotry virtually zero.
All this is of course assuming Alexander would get to China at all which is extremely doubtful since the tarim basin is a desert with little oasis to support his army.
For some comparison between the armies, the typical tactic of Chinese warfare is very different from that of west, with its more powerful missile, Chinese warfare depend far more on firepower than shock as the ancient classical west had. Most of the time except when one army has the higher ground, the two army would be a great deal distance away in looser formations sometimes digging trenches or hide at slopes until enemy fire lessens then they would charge with their speed infantry, thats how Qin won its battles. This is of course ignoring the other elements to a battle such as skirmish and surprise. But note that the Qin army of this time is somewhat different from that of the terracota army. During this time, chariot is still the dominant weapon, 3rd century is when cavalry actually started to dominate the field. But in contrast to many writers, cavalry already exist before Zhao Wu lin, it was clearly mentioned in the battle of Ma ling in 341 when Pan Juan used his cavalry to pursue Qi.
Qin's armour unlike many other states was not very heavily armoured, their armoured troops did not have full protection and rarely carried shields. Qin sacrified protection for mobility, and from the examination of its armament, it would indicate Qin always took the offensive. From examination of the Qin formation, it has a vanguard force, which was a deadlier version of the Greek archer and peltasts of the front and rear. The vanguard is made up of three rows of crossbow and bowmen, using rotational fire, and could have a pavise for protection. The bolts of their weapon are unmatched in fire power by the Macedonian troops. And they could punch right threw a hoplite shield(The first emperor of China, Cotterell p.48) They are lightly armed for speed, so they could retreat with speed and fire from far away. Their agility and speed along with the light spearmen behind them and those guarding the flanks when utilized correctly would be impossible for an enemy to catch it off balance. They are similar to the role of the Peltasts, but more efficient, for their archer has far stronger fire power. Those behind the vanguard is the chariot and light infantry that accompany it, the chariot are light and used to breakthrough enemy formation with speed while the light infantry and the heavy ones behind it charge to exploit the opening, these troops are heavier armoured than the rest for they have to do hand to hand combat, but the strong part of Qin was its Halberdiers which inflict great damage on nemy. Behind are rear guards which guard Qin's rear.
Qin has a left Wing divison, which was designed to be far more mobile, they wore little armour and carried no shields, they have archers in the front, light chariots and cavalry along with light infantry behind. These are used to attack with great speed on the opponent flanks which is a common tactic.
This organization is as follows:
A vanguard of archers together with unarmoured infantrymen.
A cavalry unit occupying the left flank.
A chariot unit occupying the right flank.
A main unit of cavalry and chariots subdivided into 8 columns occupied the center in a rectangular formation.
A cavalry unit covered the rear.
In general, warring state army were not as strong in shock power, but are far more flexible and mobile, this formation was known in Chinese military lore as `Concentric Deployment', a tactic in which each unit could fight either independently or as part of the whole. The divisions of a typical warring state army is as follows:
The Wu - five-man squad in line astern.
The Dui - 10 Wu in line abreast (5 men deep and 10 across) 50 men
The Bo - Two Dui in line abreast (5 men deep and 20 across) or line astern (a square 10 men deep and 10 across) 100 men
The Qu - Two Bo in line abreast (5 men deep and 40 across) or line astern (20 men deep and 10 across) 200 men
There is never a standard organization in Chinese armies because like the later Byzantine, they do not want the enemy to know how much troops they actually have. These divison could be aranged differently, for example, the standard is a Qu, higher would be the Jun(army) which could range anywhere between 2000-6000).
In another word, each Wu, Dui, Bo Qu, Jun could fight by as separate units and move independently or together. Their different arms in proportion enable greater military movement and orderexecution while the difference enabled fighting as a whole like a phalanx or when the formation is broken fight as individual unit with halberds, Ji, spears and swords. Whereupon the typical phalanx could only move forward and backward, with support light infantry it could fare well, but was still outmaneuvred by the legions due to its rigidness, since the Roman was also flexible it could surround and outflank the Phalanx. This is of course only taking account of the infantry melee, not about the firepower and cavalry role.
The Square - made up of several rows of Qu, with the HeadQuarter in the middle of the rear row. Not necessarily a true square, can be rectangular. A favourite tactic was to place stronger Qu on the flanks, and then lure the enemy to attack the centre and be outflanked.
The Circle - a Qu reformed into a ring, with the Head protected within it. A highly defensive formation.
Dispersed Formation - increasing the distance between individual Qu in a square, so as to mislead the enemy or divide his forces.
Close Formation- decreasing the distance between individual Qu in a square, for strength in close-quarter fighting.
The Awl - A wedge (triangle with one point facing forward), a highly offensive formation. Also known in later history as the Male Formation êò(pin)Õó (you'll see why later).
The Wild-Goose-Flight Formation - A V-formation with two wings for enveloping the enemy and the head in the middle. Or an inverted-V for a defensive formation that can quickly be converted to offensive wedge. The V-formation can also be modified into a flattened U known as the Basket Formation or Female Formation for luring enemy wedges into the centre and then enveloping them.
The Hook Formation - A line abreast with the two ends sloping inwards to avoid being flanked. Probably most suitable for archers or crossbowmen.
To add to these are some unorthodox formations such as the W which has the Wedge in the center with V formation on each sides, and the famous Bagua
Qin emphasized on speed and valour for armour which is one of the reason it was so successful, also Greek military seem to stick to the concept that heavy infantry is always superior to light, thus they never allow the light to engage the combat with the heavy, this is exactly different from China since Chinese manual emphasize the role of light infantry is to outflank the heavy infantry. without through knowledge of Chinese warfare, the Phalanx general could very well be surprised when a light infantry hit its flanks as it was against the general rule.
Crossbow would take heavy tole on the Macedonian phalanx because of the poor defense equippment of the time. According to expert studying the crossbow from the terra cota pit, the bolt could rip straight throw the Greek or Macedonian shield with ease at 200 meters. Greek shields would have been easily shattered by Chinese cross-bows in the bookto "5000 years of Genius - Ancient Chinese Inventions", there explicitly mention that the shield wall would have been easily shattered when it approaches.
The only way that the Phalanx would be successful is if had the ground advantage. But considering they are invading the Qin has the mountainous terrains. Without letting the phalanx getting too close Alexander's tactic of using the Phalanx as a shield and attack with the cavalry would be very difficult to excersice. Manuevres he pulled on the Greek states such as luring the heavy infantry away frwith light ones would have little use since the warring astate military know very well of these tactics. His archers would be outfired, while if he attempt for a surprised campanion charge, it would have been repelled by the Qin vanguard and rear light infantry protection, these units are espcially there to guard against unexpectded attacks preventing the Qin army from ever getting caught off guard. There crossbow bolts would have been deadly against cavalry charges that are not fully armoured, as demonstrated against the Xiongnu cavalry, while those that manage to cross the barrage would have to face the light Qin halberdiers and Ji users especially designed to cut off cavalrymen. So most likely that an initial encouter would have completely caught alexander off guard since he never faced such weaponry and tactics unless he have a through understanding of the ways that Qin faught.