NOT gate in a cis-trans photoisomerization model