Checks that the state_vector is stabilized by the given stabilizer.

The stabilizer should not modify the value of the state_vector, up to the global phase.

state_vector An input state vector. Is not mutated by this function.
stabilizer A potential stabilizer of the above state_vector as a DensePauliString.

Whether the stabilizer stabilizes the supplied state.