It's not recommended to mix the two.
That said, I do it all the time. Plenty of people are prescribed both. You just shouldn't take them together.
I honestly think that ambien cancels valium out and vice versa. Also, ambien is useless if you've taken opiates as well. It's a weird drug. It really only works when taken alone.
This is all my personal experience. Every One is different.