Death shouldn't be painful. I think hanging is the most humane. Snap.
Snapping the neck does kill brain function quickly enough. Seriously, opiates are the way to go - at least as a choice for the inmate.