For the unconscious analysis, the researchers had the volunteers watch images of the base and then rapidly choose from lists of positive or negative words.
With lines 1-7 we put the in/out bits into a superposition of four base states with positive amplitudes +0.5 for states where "out=0" and negative amplitudes -0.5 where "out=1."