Added method to apply swap gates using resonators