Problem Statement
Implement the operation of swapping two qubit states on a quantum circuit with qubits.
More precisely, implement the operation defined as
where represents arbitrary probability amplitudes.
Constraints
- You cannnot use Qiskit's SwapGate in this problem.
- Changes in the global phase are ignored.
- The submitted code must follow the specified format: