An optical modulator comprises an electrode 21 which applies to an optical
waveguides 12 of a Mach-Zehnder type optical interference system a first
electric signal based on an alternating current signal S1 and a direct
current bias V1, an electrode 22 which applies to an optical waveguide 13
of the Mach-Zehnder type optical interference system a second electric
signal based on an alternating current signal S2 and a direct current
bias V2, and a bias setting section 41 which sets average direct current
levels of the first and second electric signals based on signal frequency
information D1 which indicates a magnitude relation between a maximum
frequency of the alternating current signal S1 and a maximum frequency of
the alternating current signal S2.