Constructing an entangled state in the Heisenberg picture for inflationary cosmology