Diode D1 is forward biased, while diode D2 reverse biased.
Hence the resistances of (ideal) diodes D, and D2 can be taken as zero and infinity respectively.
The given circuit can therefore be redrawn shown in the figure.
Current flowing in the 1 Q resistor, is 2 A.