The reliable separation of some gases from others could be highly advantageous for a wide range of applications. For instance, it could help to produce hydrogen (H2) for fuel cells and chemical applications or to capture the carbon dioxide (CO2) emitted by industrial sites.