Green’s Dictionary of Slang

p and q n.

[abbr. peace and quiet]

(US prison) solitary confinement.

[US]Bentley & Corbett Prison Sl. 11: P & Q stands for ‘Peace and Quiet’ and refers to an inmate being placed in solitary confinement.