Get state vector for given expression
expr (str) – State string representation
feature_dict (dict) – Dictionary mapping feature names to values
state_dim (int) – Max length of state vector
np.ndarray – State vector array