Starting in 1924, the United States has used hydrogen cyanide in gas chambers to execute prisoners who were given the death penalty. Most states now use other ways of executing people. However, execution by hydrogen cyanide is still legal in six states.