1460697448-d3f63413-3483-4edd-83f2-48f1ca18ee39

A method for manufacturing a thermally-assisted magnetic recording head is provided, in which a light source unit including a light source and a slider including an optical system are bonded. A transformation function is then obtained based on the number of states to advance the PN code sequence. These optical switches use a phase spatial light modulators that include an array of phase shifting elements preferably of Gires-Tournois interferometers. A gas is blown in the same direction as the scanning direction on a substrate just after a droplet is landed, by providing a blowing means in the pattern-forming apparatus, and a heater is provided in a gas-flow path for local baking.