def METHOD_NAME(circuit: Circuit, rev_qubits=False, expansion=False) -> Circuit:
    if expansion:
        return _contiguous_expansion(circuit)
    return _contiguous_compression(circuit, rev_qubits=rev_qubits)