Using coupled photonic crystal microcavities to control the quality factor of the microcavity in the time domain, we designed a Q-switched laser with a pulse width of up to 10 picoseconds. This kind of pulsed laser can be applied to on-chip optical interconnection to realize high-speed information transmission between computing cores on multi-core chips.