GO:0016603: glutaminyl-peptide cyclotransferase activity
Catalysis of the reaction: L-glutaminyl-peptide = 5-oxoprolyl-peptide + NH3.