def METHOD_NAME():
    circuit = Circuit(3)
    circuit.add(gates.CNOT(1, 0))
    circuit.add(gates.CNOT(2, 0))
    circuit.add(gates.CNOT(1, 2))
    qubit_map = np.asarray([2, 1, 0])
    ref_circuit = Circuit(3)
    ref_circuit.add(gates.CNOT(1, 2))
    ref_circuit.add(gates.CNOT(0, 2))
    ref_circuit.add(gates.CNOT(1, 0))
    new_circuit = remap_circuit(circuit, qubit_map)
    for i, gate in enumerate(new_circuit.queue):
        assert gate.qubits == ref_circuit.queue[i].qubits