“Cannabis is legally and medically a narcotic because narcotics are defined as any substance that is illegal and induces sleep. It is complex chemically and not yet fully understood, but it does not scientifically function like a typical narcotic. Like alcohol, cannabis can act as both a stimulant and a depressant.
…
“Concerning cannabis use, research has indicated that cannabis intoxication definitely hinders attention, long-term memory storage, and psychomotor skills. As a psychoactive drug, cannabis alters mental functioning in some fashion.”
https://www.veriheal.com/blog/is-cannabis-classified-as-a-hallucinogen-stimulant-or-depressant/
https://nida.nih.gov/publications/drugfacts/hallucinogens\