Just be aware that there's a 24" separation requirement between gas and electric, for reasons that will become obvious to you the first time you need to dig across that trench.

So, if putting both in the same trench, you're going to be digging a mighty wide one, to do it safely and legally.
With so many mini-ex's wearing little 12" buckets these days, it might be easier to just dig two parallel trenches, if doing this over today.
I've never looked into whether it's possible to achieve all or part of the required 24" separation using depth, as in vertical versus horizontal separation. Might be worth researching, for cases where it's easier to go deep than wide.