code: def reversal_circuit(qubits: Qubits) -> Circuit:
      
      N = len(qubits)
      circ = Circuit()
      for n in range(N // 2):
          circ += SWAP(qubits[n], qubits[N-1-n])
      return circ
docs: Returns a circuit to reverse qubits