1. A hybrid circuit comprising a nitride-based transistor portion and a memristor portion, in which: the transistor includes a source and a drain and a gate for controlling conductance of a channel region between the source and the drain; and the memristor includes a first electrode and a second electrode separated by an active switching region, wherein the source or drain of the transistor forms one of the electrodes of the memristor.