Added in-place carta Q update and get_states from RuleSet.