It certainly seems like it meets the definition. However, it seems excessive to charge espionage as a capital crime.
Per Wikipedia:
> Treason is the crime of attacking a state authority to which one owes allegiance.[1] This typically includes acts such as participating in a war against one's native country, attempting to overthrow its government, spying on its military, its diplomats, or its secret services for a hostile and foreign power, or attempting to kill its head of state. A person who commits treason is known in law as a traitor.