can pokemon x trade with sun?
Pokemon Sun/Moon and Ultra Sun/Moon are directly compatible with each other, but are not directly compatible with the Generation 6 series of games: Pokemon X and Y; and Pokemon Omega Ruby and Alpha Sapphire. You need a special app called the Pokemon Bank to transfer your Pokemon between the generations.