What anesthetics are used to put patients to sleep for surgical operations?

Depends. General anesthesia for a healthy patient undergoing a routine surgery usually consists of Propofol for induction of anesthesia and volatile anesthetics("gas") and opioids for maintenance of anesthesia.