Fix converting VectorStateFn
to a CircuitStateFn
#8405
Merged
VectorStateFn
to a CircuitStateFn
#8405