Cubic spin model with competing bilinear and higher‐degree pair interactions on a linear chain in a magnetic field