What is the scale used by the United States Geological Survey to measure the size of earthquakes in terms of the energy released?

What is the scale used by the United States Geological Survey to measure the size of earthquakes in terms of the energy released?