swap method

void swap(
  1. int qbit1,
  2. int qbit2
)

Implementation

void swap(int qbit1, int qbit2) {
  gates.add(Swap(qbit1, qbit2));
}