An apparatus for the separation of a mixture containing hydrogen and carbon monoxide in order to produce gaseous hydrogen, comprising a separation unit, where at least one stage of partial condensation and/or distillation and/or scrubbing is carried out, a heat exchanger, a pressure swing adsorption separation apparatus, a turbine, a means for sending the mixture to be cooled in the heat exchanger down to a temperature below −180° C., a means for sending the cooled mixture to be separated at a temperature below −100° C. by at least one stage of partial condensation and/or by distillation and/or by scrubbing in the separation unit in order to produce a gas enriched in hydrogen and a fluid enriched in carbon monoxide, a means for sending at least a part of the gas enriched in hydrogen to the pressure swing adsorption separation apparatus operating at a temperature above 0° C. in order to produce a gas rich in hydrogen at a pressure of at least 20 bars, a means for sending at least a part of the gas rich in hydrogen to be cooled in the heat exchanger down to a temperature below −100° C., subsequently to be reduced in pressure in the turbine down to a pressure of at least 8 bars and a means for sending the pressure-reduced gas to be reheated in the heat exchanger in order to constitute a product rich in hydrogen at a pressure of at least 8 bars.