Efficient Optimization Accelerator Framework for Multistate Ising Problems