A novel general mapping for bosonic and fermionic operators in