Significance
Spin systems are a primary object of study in statistical physics. Computational complexity is the rigorous study of the computational resources required to achieve specified computational goals. We examine the problem of estimating the partition function of a q-state spin system from the point of view of computational complexity. There are just three possible levels of computational difficulty, depending on the interaction strengths between adjacent spins. Every nontrivial q-state spin system, irrespective of the number q of spins, is computationally equivalent to one of two fundamental two-state spin systems. We give a simple characterization of the classification.
Keywords: computational complexity, partition function, spin system
Abstract
We study the computational complexity of approximating the partition function of a q-state spin system with an external field. There are just three possible levels of computational difficulty, depending on the interaction strengths between adjacent spins: (i) efficiently exactly computable, (ii) equivalent to the ferromagnetic Ising model, and (iii) equivalent to the antiferromagnetic Ising model. Thus, every nontrivial q-state spin system, irrespective of the number q of spins, is computationally equivalent to one of two fundamental two-state spin systems.
Let denote a set of spins. A q-state spin system is specified by a nonnegative real symmetric interaction matrix . The entries of A represent “interaction strengths” between spins in Q. An instance of such a spin system is a graph , where V is a set of vertices (sites) and E is a set of edges (bonds) together with a collection of functions, representing the action of an external field. The function represents the effect of the field on vertex w. The partition function of the system is then
| [1] |
a weighted sum over configurations .
The above setting encompasses all spin systems with uniform interactions between pairs of sites and includes many familiar models. For example, the interaction matrices
capture the Ising, independent set (hard-core), three-state Potts, and Widom–Rowlinson models, respectively. In the case of the Ising and Potts models, corresponds to a ferromagnetic system and to an antiferromagnetic one.
The Problem and What Is Known
We study the following computational problem. Fix an interaction matrix A. Given an instance consisting of a graph G and field , approximately evaluate the partition function . An important point to note is that the interaction matrix A does not form part of the problem instance. By fixing A, we fix a particular model, say the hard-core model or the q-state ferromagnetic Potts model. We then ask, for that model, What is the computational complexity of approximately evaluating the partition function given the input pair ? We are interested in determining how that complexity depends on A.
It follows from a general result of Chen et al. (1) that there are only three possibilities that can arise for an interaction matrix A:
Possibility i: The partition function can be evaluated exactly in polynomial time.
Possibility ii: The complexity of approximately evaluating is equivalent to the complexity of approximately evaluating the partition function of the ferromagnetic Ising model.
Possibility iii: Approximating is equivalent to approximating the partition function of the antiferromagnetic Ising model and hence is NP hard.
The purpose of this paper is to map the space of interaction matrices, delineating which case arises for each interaction matrix A. Before stating our result, we fill in some details about the three possibilities above (and approximation complexity in general), we say a little bit more about the result of ref. 1, and we present some matrix preliminaries.
The first possibility, that the partition function can be evaluated exactly in polynomial time, is straightforward. Unfortunately, as we shall see, it rarely arises. Let us turn to the second possibility. It will be helpful to introduce the problem , which plays an important role in the complexity theory of approximate counting problems (2). is the problem of counting the independent sets of a bipartite graph. It is essentially the same as the problem of evaluating for the interaction matrix
in the special case where, for all , is a constant function that assigns equal weight to all spins. A great number of problems have been shown to be equivalent to (and hence to each other) with respect to approximation complexity. We give a formal definition of this equivalence later, after stating our theorem. For now it suffices to know that if two problems are equivalent, then they are roughly equally difficult to approximate. The authors have shown (3) that the problem of evaluating the partition function of is equivalent. (There is no significance in the particular choice of λ, beyond it being greater than 1 and being convenient for the proof.) Thus, for any interaction matrix A for which the second possibility applies, we can conclude that the complexity of approximately evaluating is equivalent to that of approximating the partition function of the two-spin matrix even though A itself may have many more than two spins.
Finally, let us consider the third possibility, that approximating the partition function is NP hard. This means that there is a constant such that even approximating within a factor is as hard as the famous NP-complete problems (which include problems such as determining whether a Boolean formula is satisfiable or determining whether a graph is three-colorable). It follows that the free energy per site, , is NP hard to approximate within .
It is worth mentioning that these partition function evaluation problems have a property called “self-reducibility.” This means (4) that if you cannot efficiently approximate the partition function, then it is also infeasible to sample approximately from the corresponding Gibbs measure.
To gain a better understanding of the result of ref. 1, consider the following method for deriving a new interaction matrix from the initial matrix . Take a graph with three vertices, x, y, and z and edges connecting x to z and x to y. Suppose that satisfies and and that . The total contribution to the partition function from configurations with is 10—the contribution is (2 for each edge) if , and it is if [2 for the edge between x and y and 3 from ]. Similarly, the total contributions of the three other possibilities for spins and are 4, 7, and 14. Thus, we can view the overall effect of this system as being equivalent to a single edge with effective interaction matrix
Note that is not even symmetric, so we have moved outside of the symmetric systems that we started with. Obviously, we can create an infinite collection of new interaction matrices from A by varying the graph with specified vertices x and y (and allowing any possible field functions on the vertices). The result of ref. 1 states the following for any interaction matrix A:
Possibility i occurs for A if every single one of the (infinitely many) matrices that can be constructed from A is singular or is diagonal or off diagonal.
Possibility ii occurs if possibility i does not occur, but every single one of the matrices that can be constructed has a nonnegative determinant or is off diagonal.
Otherwise, possibility iii occurs.
Fortunately, it is not necessary to investigate an infinite collection of matrices to decide which of the three possibilities applies to a particular initial matrix A. In ref. 1 it is shown that distinguishing between the possibilities reduces to deciding whether a certain finite system (based on A) has a property called “balance”—a problem that is known (5) to be decidable—and to deciding whether A has an algebraic invariant called an STP-MJN multimorphism (6). This can be checked by brute force, given A. Nevertheless, the existence of a decision algorithm for determining which of the possibilities applies to A does not tell us much, qualitatively, about how and why the interaction matrices divide between the three possibilities. In fact, there is a nice clean characterization, which we describe in this paper.
Our Result
We start with some basic facts about matrices. We say that matrix A is log-supermodular if every submatrix has a nonnegative determinant. The matrix A is irreducible if, for all , there exists an integer L such that . If A is not irreducible, then it may be transformed, by simultaneous row and column permutations, into block diagonal form, after which the complexity of is determined by the maximum complexity of any block. (We can pick out any desired block by setting , for every vertex , to be the characteristic function of that block.) A stronger condition than irreducibility is primitivity. A matrix A is primitive if there exists a number L with . Irreducibility and primitivity may be understood in terms of the “underlying graph” of A, i.e., the graph with vertex set Q and edge set . Specifically, A is irreducible if and only if (iff) the underlying graph is connected and is primitive iff it is connected and nonbipartite.
The distinction between a primitive and an imprimitive interaction matrix A is important for us. In the imprimitive case, A has the block form
| [2] |
where B is (say) a matrix, with . Thus, the set of spins may be partitioned as , where and , in such a way that spins in can be adjacent only to spins in and vice versa (v.v.).
An example of an imprimitive system is given by the interaction matrix . This matrix has the appropriate block structure where . The imprimitive form of ensures that the partition function evaluates to 0 if the instance G is not bipartite. If G is bipartite, with bipartition , then the only configurations σ that contribute to the partition function are ones in which and or the same with L and R interchanged. Interpreting spins 2 and 4 as meaning “in the independent set” and 1 and 3 as meaning “out of the independent set,” we see that the nonzero terms in ref. 1 correspond to independent sets in G (two terms for each independent set).
In stating the main result, we treat the primitive and imprimitive cases separately. We first state the result and give examples, and then we give the formal definitions that clarify the notion of “equivalence” that is used in the -equivalent case.
Theorem 1.
First, suppose A is primitive.
If A has rank 1, then there is a polynomial-time algorithm for evaluating .
Otherwise, if there is a simultaneous permutation of the rows and columns of A that renders A log-supermodular, then evaluating is equivalent to under approximation-preserving reductions.
Otherwise, there is a constant such that approximating within a factor is NP hard.
Now suppose A is imprimitive. Write A in the form of Eq. 2.
If B has rank 1, then there is a polynomial-time algorithm for evaluating .
Otherwise, if there are independent permutations of the rows and columns of B that render B log-supermodular, then evaluating is equivalent to under approximation-preserving reductions.
Otherwise, there is a constant such that approximating within a factor is hard.
In both primitive and imprimitive cases there are three possibilities. In the first, matrix A (or B, as appropriate) has rank 1, and the partition function factorizes. Thus, it is trivially possible to evaluate exactly in polynomial time. In the second, the matrix A has a particular form, which allows the q-state system with interaction matrix A to be coded up as an instance of and v.v. Because, in particular, is in this class, we see that all these spin systems are computationally equivalent to the ferromagnetic Ising model with an external field. Finally, in the third situation, the antiferromagnetic Ising model can be coded up as an instance of a spin system with interaction matrix A. Because the partition function of the antiferromagnetic Ising model is NP hard to approximate (even finding the ground state is a hard problem), is hard to approximate for all such spin systems also. The striking feature of this result is that q-state spin systems for arbitrary q are computationally equivalent to very familiar two-spin systems.
Example Applications of Theorem 1.
Assuming , the interaction matrix for the Ising model is primitive. Its determinant is positive, zero, or negative according to whether λ is greater than, equal to, or less than 1. Thus, Theorem 1 shows that has a polynomial-time algorithm when , is equivalent to when , and is NP hard to approximate when . Now consider the interaction matrix for the three-state Potts model, which is primitive for all . The matrix is of course invariant under simultaneous row and column permutations. If , then the matrix has rank 1; if , then the submatrix has a negative determinant; and if , then the submatrix has a negative determinant. Thus, Theorem 1 shows that is NP hard to approximate except when , when it is trivial. Theorem 1 also shows that approximating , the partition function of the independent set (hard-core) model on a general graph, is NP hard. Also, approximating , the partition function of the Widom–Rowlinson model, is equivalent to , as its interaction matrix is log-supermodular.
Finally, we consider an imprimitive example. Consider the matrix . Applying Theorem 1 to this matrix shows us what we already knew—namely, that approximating is equivalent to . To apply Theorem 1, write in form [2], so that . Now transpose the rows of B and note that the resulting matrix is log-supermodular.
The Formal Definition of Equivalence.
To prove Theorem 1 we have to give a formal meaning to the phrase “evaluating is equivalent to under approximation-preserving reductions.”
For this we need the notion of a “randomized approximation scheme” [Mitzenmacher and Upfal (ref. 7, definition 10.2)]. A randomized approximation scheme for is a (randomized) algorithm that takes both an input and an accuracy parameter ε and produces an output that is an approximation to . The algorithm is randomized, so with some probability (say at most , to be precise), it may fail, but the requirement is that, with probability at least , the output must satisfy
Thus, with high probability (with probability at least ), the algorithm must give a good approximation (within a factor of of the right answer).
The value “” in the definition is not very important. It may be changed to any value strictly between and 1 without any complexity-theoretic consequences. Essentially, the algorithm can be repeated, taking the median over various runs to decrease the failure probability.
An important kind of randomized approximation scheme is a so-called “fully polynomial” randomized approximation scheme (FPRAS), which is a randomized approximation scheme that runs quickly, as a function both of its input size and of the desired accuracy. In particular, for an n-vertex graph G, the running time must be bounded from above by a polynomial in n and . Thus, the algorithm is allowed more time as the amount of tolerable error ε becomes smaller, but it is allowed only polynomially more time.
By analogy with , a randomized approximation scheme for is a (randomized) algorithm that takes both an input (in this case a bipartite graph H) and an accuracy parameter δ and produces an output that, with probability at least , is within of the number of independent sets of H. It is an FPRAS if the running time is at most a polynomial in and .
Now we need the idea of an approximation-preserving (AP) reduction (2), which is a way of showing that one approximation problem, say the problem of approximating , is at least as easy as another approximation problem, say . Specifically, an AP reduction from to is a randomized algorithm for approximating , using a subroutine called an “oracle” for approximating . The input to is of course an instance together with an accuracy parameter ε. Using these, algorithm computes an approximation to . It is allowed to make subroutine calls to the oracle with inputs of the form , where H is a bipartite graph and is an error bound with , where . The reduction must have the property that is a randomized approximation scheme for whenever the oracle is a randomized approximation scheme for . Also, the run time of must be a polynomial in n and in . The main point is that an AP reduction from to turns an FPRAS for into an FPRAS for .
We say that the problem of approximating is AP reducible to if an AP reduction from to exists. We can similarly define an AP reduction from to . If reductions in both directions exist, then we say that and are equivalent under AP reductions. This is the case for all interaction matrices A in our second category.
The Proof of Theorem 1
The proof of Theorem 1 is in three parts. First, we show how to separate the NP-hard cases from the -equivalent cases. Then we show how to separate the -equivalent cases from the polynomial-time computable cases. The final section puts the pieces together to complete the proof.
The Proof: NP Hardness
In this section, we separate NP-hard spin systems from those that are computationally equivalent to . As usual in the theory of NP completeness, we use carefully designed gadgets, but in this case they have a simple form.
Gadgets.
A gadget is a path of length L together with a set of allowed spins for each vertex that is not an endpoint of the path. Let the vertices of the path be and the set of allowed spins at vertex k be , for all . Note that restricting the spins at k to a set is equivalent to applying the field to the vertex, where is the characteristic function of the set . So a gadget is an instance of a spin system of the kind we are studying. The matrix of effective interaction strengths for is given by
| [3] |
where is the diagonal matrix with 1s at positions and 0s elsewhere. Thus, for all , the entry represents the multiplicative contribution made by the gadget to the partition function when and . If for all , we say that the gadget is free; if for all , we say that the gadget is tight. Note that it does not make sense to restrict a tight gadget further: If any is a singleton, then has rank 1, and there is no correlation between spins and .
Here is some useful notation. is the matrix obtained from a matrix M by deleting all rows except and all columns except . We regard the indexes in the notation as ordered; thus the first row of this matrix comes from row i of M and the second from row .
We are interested in how gadgets interact with (ordered) pairs of spins. We use to denote the set of all ordered pairs of distinct elements of a set Q. Thus, for a primitive matrix A the relevant set of ordered pairs is whereas for imprimitive A the relevant set is . We do not consider mismatched pairs that mix elements of and .
We now give some definitions concerning the properties of gadgets. We say that the gadget is ferromagnetic (respectively, antiferromagnetic, neutral) between ordered pairs of spins and if (respectively, , ). If, in addition, the matrix has at most one zero entry, then we say that is permissive ferromagnetic, permissive antiferromagnetic, or permissive neutral between and . Finally, we say that a pair of spins is antiferromagnetic if there exists a gadget that is antiferromagnetic between and . There is no need to define a similar concept of a ferromagnetic pair of spins, because all pairs of spins are “ferromagnetic” via the gadget of length . However, we say that a pair of spins is permissive ferromagnetic if there exists a gadget that is permissive ferromagnetic between and .
Given a tight gadget , with for all , we may write as the following product of submatrices of A:
| [4] |
Note that the ordering we impose on the elements of each is irrelevant. Then the earlier definitions can be phrased in terms of the determinants of the matrices in product [4]. Thus, is antiferromagnetic between and iff none of the matrices in [4] is singular and an odd number of them have a negative determinant. Furthermore, is permissive antiferromagnetic iff, in addition, at least one of the matrices has at most one zero entry. This observation is useful for avoiding calculation.
Here is an illustrative example based on the interaction matrix of a ferromagnetic three-state Potts model. Recall that A has 2s on the diagonal and 1s elsewhere. Consider the gadget of length with and . Then
So , and the pair is antiferromagnetic. The point to note is that, although we started with a ferromagnetic model, it is possible to use the external field to simulate an edge of an antiferromagnetic two-spin system. By Lemma 3 below, we are able to conclude that approximating the partition function of the ferromagnetic three-state Potts model is intractable (NP hard).
Our strategy in the remainder of this section is to provide a systematic approach to constructing such antiferromagnetic gadgets, which fails only when the interaction matrix A has a special form. In the following section, we indicate how a spin system whose interaction matrix has this special form can be simulated by an instance of or, equivalently, an instance of the ferromagnetic Ising model. We start with some technical lemmas concerning gadgets and their properties. The proofs are included in SI Appendix.
Lemma 1.
If the pair is antiferromagnetic, then there is a tight, permissive gadget that is antiferromagnetic between and .
Lemma 2.
Suppose that the free gadget of odd length L is neutral between and , but that . Then the pair is antiferromagnetic.
Lemma 3.
If there exists an antiferromagnetic pair , then there is a constant such that approximating within a factor is hard.
Lemma 3 gives a sufficient condition for it to be NP hard to approximate . Note that, by Lemma 1, the condition may be tested by dynamic programming in polynomial time. Roughly, the method is as follows. Fix a pair . Let be the set of pairs such that there exists a tight gadget of length less than or equal to L that is antiferromagnetic between and and let be the set of pairs such that there exists a tight gadget of length less than or equal to L that is ferromagnetic between and . We can compute in turn, using as data to compute . (In fact, the set is just the reversal of all pairs in , so technically, it does not need to be explicitly stored.) The sequence is monotonic and must converge before . We now show that if the condition in Lemma 3 fails, then A has a particular form. There are two cases to our analysis, depending on whether or not A is primitive.
The Primitive Case.
A tournament is a complete graph with orientations assigned to the edges. A Hamiltonian path in a tournament is a directed path that visits all of the vertices of the tournament exactly once and respects the orientations of the edges. It is a standard graph theoretic fact that every tournament has a Hamiltonian path (8) (or ref. 9, theorem 2.3).
Lemma 4.
Suppose the matrix A is primitive and that it does not support an antiferromagnetic pair of spins [i.e., there does not exist a pair and a gadget such that ]. Then there is a simultaneous permutation of the rows and columns of A such that the resulting matrix is log-supermodular.
Proof:
Let L be the minimum odd number such that . Note that is the interaction matrix of the free gadget of length L. Consider the graph with vertex set , whose adjacency relation is defined by the condition iff . Note the obvious symmetry iff . Note also that if and are in the same component of , then there is a ferromagnetic gadget between and . To see this, take a shortest path from to in . Each edge in the path corresponds to a ferromagnetic gadget; concatenate these to obtain a ferromagnetic gadget between and . More formally, suppose the path is . Then
from which a gadget of length that is ferromagnetic between and may be read off.
By assumption, for every pair it is the case that and are in different components of . [If they were in the same component, then there would be a ferromagnetic gadget between and , and this would imply that the pair is antiferromagnetic.] Thus, the components of come in symmetric pairs , where contains exactly the reversals of all of the pairs in C. We can then construct a tournament on Q by the following procedure. For each pair of matched components C and , choose one, say C, and add a directed edge from i to for every pair . Note that this procedure runs into no conflicts and determines a direction for every edge in the complete graph on vertex set Q. Let the resulting tournament be T. [The construction of T and the use we are about to make of it are a simplified version of a similar line of proof used in a more general situation by Cohen et al. (10).]
Take any Hamiltonian path in the tournament T and form the linear order on Q such that the vertices/spins along the path appear in increasing order in . By renumbering Q we may assume that ; note that this operation is equivalent to applying a permutation simultaneously to the rows and columns of (and A itself). In this permuted matrix, every submatrix of the form has a nonnegative determinant. [Suppose to the contrary that . Then and hence either and or and , by construction of . Both possibilities contradict the fact that the rows and columns of are ordered by .] Because , this implies [a standard fact about finite Monge matrices (ref. 11, observation 2.2)] that every submatrix with and has nonnegative determinant; i.e., the matrix is log-supermodular. (See the end of the Proof for an illustration of this construction.)
Finally we argue that A itself must be log-supermodular. Assume to the contrary that it is not, i.e., that there are and such that . Then the free gadget of length 1 is antiferromagnetic between and . Recall that the matrix is realized by the free gadget of length L. If , then we immediately obtain a gadget of length that is antiferromagnetic between and , a contradiction. [Explicitly, the gadget is obtained from the free gadget of length by restricting the spin on the second vertex to be in the set .] The only other possibility is that , but this is ruled out by Lemma 2.
An Example to Illustrate the Tournament Construction.
Consider the Widom–Rowlinson interaction matrix, but permute the rows and columns to hide the log-supermodular structure. To obtain matrix A below we transposed rows 1 and 2 and columns 1 and 2. The third power of A (corresponding to ) is strictly positive:
The graph , together with one of the two possible tournaments T arising from it, is depicted in Fig. 1.
Fig. 1.

The graph and one of two tournaments T arising from it.
The (unique) Hamilton path in T is , corresponding to the linear order . This order indicates that we need to transpose rows 1 and 2 and columns 1 and 2; if we do this, then we recover the original log-supermodular matrix . (If we take the other tournament, then the linear order is , but we arrive at the same end result.)
The Imprimitive Case.
Recall that in this case A has the block form [2].
Lemma 5.
Suppose the matrix A is imprimitive and that it does not support an antiferromagnetic pair of spins [i.e., there is no pair and gadget such that ]. Write A in the form [2]. Then there are independent permutations of the rows and columns of B such that the resulting matrix is log-supermodular.
Proof:
Let L be the smallest odd integer such that the matrix
has the property that . [Explicitly, .] We construct a graph on vertex set . The adjacency relation of this graph is defined as follows: iff . [Necessarily and , or v.v.] Note the obvious symmetry iff . Note also that if and are in the same component of then there is a ferromagnetic gadget between and .
As in the primitive case, for every pair it is the case that and are in different components of . Thus, the components of come in symmetric pairs , where contains exactly the reversals of all of the pairs in C. Using the same procedure as before, we may construct two tournaments, on and on .
Also as before, we may use Hamiltonian paths in and to define linear orders on and on . By renumbering and (within themselves) we may assume that and ; note that this operation is equivalent to applying independent permutations to the rows and columns of (and B). In this permuted matrix, every submatrix of the form has a nonnegative determinant. Because , this implies as before that every submatrix with and has a nonnegative determinant; i.e., the matrix is log-supermodular.
The argument that B itself is log-supermodular goes through exactly as in the primitive case.
We have now completed the NP-hardness section. Lemma 3 gave a sufficient condition for it to be NP hard to approximate and we showed (shortly after the statement of Lemma 3) how to use Lemma 1 to test the condition in polynomial time. If the condition fails (so there is no antiferromagnetic pair), then Lemmas 4 and 5 show that there is a permutation of rows and columns such that the resulting matrix is log-supermodular. We will soon see that this means that approximating is easy. First, however, we examine how to identify hardness.
The Proof: Equivalence to #BIS
Lemma 6.
Suppose the interaction matrix A satisfies one of the following two conditions: A is primitive and has rank greater than 1 or A is imprimitive and has rank greater than 2 (equivalently, the matrix B in the block decomposition [2] of A has rank greater than 1). Then there exists a pair of spins such that A supports a gadget that is permissive ferromagnetic between and .
Proof:
In the primitive case, let L be the smallest integer such that . Because A is symmetric and hence diagonalizable, the rank of A is equal to the number of nonzero eigenvalues of A (counted according to multiplicity). The eigenvalues of are just the Lth powers of the eigenvalues of A, and so the rank of is equal to the rank of A, which it is greater than 1 by assumption. We argue that this implies that some principal submatrix of has full rank. Suppose to the contrary that every submatrix has rank 1. Let the diagonal entries of be . Then by considering the submatrix we see that , for all . This gives an explicit expression for as a rank 1 matrix; namely . A submatrix of full rank provides a gadget that is permissive but not neutral between and . If the gadget is antiferromagnetic, we can concatenate it with itself to produce a ferromagnetic one.
In the imprimitive case, let L be the smallest even number such that, for some and , has the form
Arguing as before, A has rank greater than 2, so either or has rank greater than 1. It follows that either or has a principal submatrix of full rank.
The Proof: Putting the Pieces Together
Theorem 1 follows quickly. Consider first the primitive case. If A has rank 1, then the partition function factorizes, giving an easy polynomial-time (exact) algorithm for evaluating . [This is similar to the trivial direction of the dichotomy result of Bulatov and Grohe (12)—the external fields do not cause any added difficulty.] Otherwise, by Lemma 6, there is a gadget that is permissive ferromagnetic, from which it follows (ref. 13,theorem 10.2) that is AP reducible to the evaluation of . If A can be permuted to be log-supermodular, then, by ref. 1, theorem 47, evaluating is AP reducible to . (The reduction and its verification are the essential content of ref. 1, lemma 46.) Finally, if A cannot be so permuted, then there is an antiferromagnetic pair by Lemmas 4 and 5, and evaluating is NP hard to approximate by Lemma 3. The argument in the imprimitive case is identical.
Discussion
We have now seen exactly what causes the approximate evaluation of the partition function to be NP hard—namely, an antiferromagnetic pair that can easily be demonstrated via a tight permissive gadget. If no such gadget exists, then approximating is easy. We have also seen exactly what causes the approximate evaluation of to be hard—namely, the existence of a block with rank greater than 1. Without such a block, can be evaluated exactly in polynomial time.
Another interesting question is the complexity of approximately evaluating when the external field acts in a restricted manner. For example, the algorithm of Jerrum and Sinclair (14) gives an FPRAS for in the ferromagnetic case as long as the field acts in a consistent manner in the sense that the sign of is the same for all vertices (15). In the antiferromagnetic regime it is known that tractability corresponds to the uniqueness threshold when there are just two spins (16). The ferromagnetic regime is not fully understood (17), even with just two spins, and the multispin case is open.
Supplementary Material
Acknowledgments
The research leading to these results has received funding from the European Research Council (ERC) under the European Union’s Seventh Framework Programme (FP7/2007-2013) ERC Grant 334828.
Footnotes
The authors declare no conflict of interest.
This article is a PNAS Direct Submission. J.T.C. is a guest editor invited by the Editorial Board.
This article contains supporting information online at www.pnas.org/lookup/suppl/doi:10.1073/pnas.1505664112/-/DCSupplemental.
References
- 1.Chen X, et al. The complexity of approximating conservative counting CSPs. J Comput Syst Sci. 2015;81(1):311–329. [Google Scholar]
- 2.Dyer M, Goldberg LA, Greenhill C, Jerrum M. The relative complexity of approximate counting problems. Algorithmica. 2004;38(3):471–500. [Google Scholar]
- 3.Goldberg LA, Jerrum M. The complexity of ferromagnetic Ising with local fields. Combin Probab Comput. 2007;16(1):43–61. [Google Scholar]
- 4.Jerrum M, Valiant LG, Vazirani VV. Random generation of combinatorial structures from a uniform distribution. Theor Comput Sci. 1986;43(2-3):169–188. [Google Scholar]
- 5.Cai J, Chen X, Lu P. Proceedings of the 26th Annual IEEE Conference on Computational Complexity. IEEE; New York: 2011. Non-negatively weighted #CSP: An effective complexity dichotomy; pp. 45–54. [Google Scholar]
- 6.Kolmogorov V, Zivny S. The complexity of conservative valued csps. J Assoc Comput Mach. 2013;60(2):10. [Google Scholar]
- 7.Mitzenmacher M, Upfal E. Probability and Computing. Cambridge Univ Press; Cambridge, UK: 2005. [Google Scholar]
- 8.Rédei L. Ein kombinatorischer Satz. Acta Litt. Sci. Szeged. 1934;7:39–43. German. [Google Scholar]
- 9.Bondy JA, Murty USR. Graph Theory, Graduate Texts in Mathematics. Vol 244 Springer; New York: 2008. [Google Scholar]
- 10.Cohen DA, Cooper MC, Jeavons PG. Generalising submodularity and Horn clauses: Tractable optimization problems defined by tournament pair multimorphisms. Theor Comput Sci. 2008;401(1–3):36–51. [Google Scholar]
- 11.Rudolf R, Woeginger GJ. The cone of Monge matrices: Extremal rays and applications. Math Methods Oper Res. 1995;42(2):161–168. [Google Scholar]
- 12.Bulatov A, Grohe M. The complexity of partition functions. Theor Comput Sci. 2005;348(2–3):148–186. [Google Scholar]
- 13.Bulatov AA, Dyer ME, Goldberg LA, Jerrum M, McQuillan C. The expressibility of functions on the Boolean domain, with applications to counting csps. J Assoc Comput Mach. 2013;60(5):32. [Google Scholar]
- 14.Jerrum M, Sinclair A. Polynomial-time approximation algorithms for the Ising model. SIAM J Comput. 1993;22(5):1087–1116. [Google Scholar]
- 15.Goldberg LA, Jerrum M, Paterson M. The computational complexity of two-state spin systems. Random Structures Algorithms. 2003;23(2):133–154. [Google Scholar]
- 16.Li L, Lu P, Yin Y. Proceedings of the Twenty-Fourth Annual ACM-SIAM Symposium on Discrete Algorithms. SIAM; Philadelphia: 2013. Correlation decay up to uniqueness in spin systems; pp. 67–84. [Google Scholar]
- 17.Liu J, Lu P, Zhang C. Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques. Leibniz-Zentrum für Informatik GmbH, Wadern; Germany: 2014. The complexity of ferromagnetic two-spin systems with external fields; pp. 843–856. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
