1: \begin{abstract}
2:
3: We propose a duality analysis for obtaining the critical manifold of
4: two-dimensional spin glasses. Our method is based on the computation
5: of quenched free energies with periodic and twisted periodic boundary conditions on a
6: finite basis. The precision can be systematically improved by increasing the size of the basis,
7: leading to very fast convergence towards the thermodynamic limit. We apply the method to
8: obtain the phase diagrams of the random-bond Ising model and $q$-state Potts gauge
9: glasses. In the Ising case, the Nishimori point is found at $p_N = 0.10929 \pm 0.00002$,
10: in agreement with and improving on the precision of existing numerical estimations.
11: Similar precision is found throughout the high-temperature part of the phase diagram.
12: Finite-size effects are larger in the low-temperature region, but our results are in qualitative
13: agreement with the known features of the phase diagram. In particular we show analytically
14: that the critical point in the ground state is located at finite $p_0$.
15:
16: \end{abstract}
17: