As a noun zolpidem
is a certain fast-acting hypnotic (sleep-inducing drug) used for the short-term treatment of insomnia, and marketed under several different trade names.
As a proper noun ambien is
trade name of zolpidem, a medication most widely known as a treatment for insomnia.