HolographicAlgorithms Beyond Matchgates Heng Guo (joint work with - - PowerPoint PPT Presentation

holographicalgorithms beyond matchgates
SMART_READER_LITE
LIVE PREVIEW

HolographicAlgorithms Beyond Matchgates Heng Guo (joint work with - - PowerPoint PPT Presentation

HolographicAlgorithms Beyond Matchgates Heng Guo (joint work with Jin-Yi Cai and Tyson Williams ) University of Wisconsin-Madison Kbenhavn July 11th 2014 Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 1 / 22 Counting


slide-1
SLIDE 1

HolographicAlgorithms Beyond Matchgates

Heng Guo

(joint work with Jin-Yi Cai and Tyson Williams )

University of Wisconsin-Madison

København July 11th 2014

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 1 / 22

slide-2
SLIDE 2

Counting Perfect Matchings

Perfect Matchings

f1 f2 f1 f3 f1 f3 f4 f2 Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 2 / 22

slide-3
SLIDE 3

Counting Perfect Matchings

Perfect Matchings

f1 f2 f1 f3 f1 f3 f4 f2 Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 2 / 22

slide-4
SLIDE 4

Counting Perfect Matchings

Perfect Matchings

f1 f2 f1 f3 f1 f3 f4 f2 Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 2 / 22

slide-5
SLIDE 5

FKT Algorithm

Counting Perfect Matchings is #P-hard [Valiant 79] in general graphs. However, for planar graphs, there is a polynomial time algorithm [Kastelyn 61 & 67, Temperley and Fisher 61] . The FKT algorithm is based on Pfaffian orientations of planar graphs.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 3 / 22

slide-6
SLIDE 6

FKT Algorithm

Counting Perfect Matchings is #P-hard [Valiant 79] in general graphs. However, for planar graphs, there is a polynomial time algorithm [Kastelyn 61 & 67, Temperley and Fisher 61] . The FKT algorithm is based on Pfaffian orientations of planar graphs.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 3 / 22

slide-7
SLIDE 7

FKT Algorithm

Counting Perfect Matchings is #P-hard [Valiant 79] in general graphs. However, for planar graphs, there is a polynomial time algorithm [Kastelyn 61 & 67, Temperley and Fisher 61] . The FKT algorithm is based on Pfaffian orientations of planar graphs.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 3 / 22

slide-8
SLIDE 8

Counting Perfect Matchings Revisited

A systematic way to view #PM. Put functions Exact-One (EO) on nodes and make edges variables. #PM is just the partition function: PM

E 0 1 v V

EOd

E v

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 4 / 22

slide-9
SLIDE 9

Counting Perfect Matchings Revisited

A systematic way to view #PM. Put functions Exact-One (EO) on nodes and make edges variables. #PM is just the partition function: PM

E 0 1 v V

EOd

E v

EO3 EO4 EO3 EO4 EO3 EO4 EO3 EO3 Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 4 / 22

slide-10
SLIDE 10

Counting Perfect Matchings Revisited

A systematic way to view #PM. Put functions Exact-One (EO) on nodes and make edges variables. #PM is just the partition function: PM

E 0 1 v V

EOd

E v

EO3 EO4 EO3 EO4 EO3 EO4 EO3 EO4 Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 4 / 22

slide-11
SLIDE 11

Counting Perfect Matchings Revisited

A systematic way to view #PM. Put functions Exact-One (EO) on nodes and make edges variables. #PM is just the partition function: #PM = ∑

σ:E→{0,1}

v∈V

EOd(σ |E(v)).

EO3 EO4 EO3 EO4 EO3 EO4 EO3 EO4 Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 4 / 22

slide-12
SLIDE 12

Holant Problems

The (Boolean) Holant problem on instance Ω is to evaluate HolantΩ = ∑

σ:E→{0,1}

v∈V

fv(σ |E(v)), a sum over all edge assignments σ : E → {0, 1}. It is parameterized by a function set with fv .

Also known as: Read-Twice #CSP , Tensor Networks, Graphical Models…

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 5 / 22

slide-13
SLIDE 13

Holant Problems

The (Boolean) Holant problem on instance Ω is to evaluate HolantΩ = ∑

σ:E→{0,1}

v∈V

fv(σ |E(v)), a sum over all edge assignments σ : E → {0, 1}. It is parameterized by a function set F with fv ∈ F.

Also known as: Read-Twice #CSP , Tensor Networks, Graphical Models…

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 5 / 22

slide-14
SLIDE 14

Holant Problems

The (Boolean) Holant problem on instance Ω is to evaluate HolantΩ = ∑

σ:E→{0,1}

v∈V

fv(σ |E(v)), a sum over all edge assignments σ : E → {0, 1}. It is parameterized by a function set F with fv ∈ F.

Also known as: Read-Twice #CSP , Tensor Networks, Graphical Models…

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 5 / 22

slide-15
SLIDE 15

Holant Problems

The (Boolean) Holant problem on instance Ω is to evaluate HolantΩ = ∑

σ:E→{0,1}

v∈V

fv(σ |E(v)), a sum over all edge assignments σ : E → {0, 1}. It is parameterized by a function set F with fv ∈ F.

Also known as: Read-Twice #CSP , Tensor Networks, Graphical Models…

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 5 / 22

slide-16
SLIDE 16

Holant Problems

The (Boolean) Holant problem on instance Ω is to evaluate HolantΩ = ∑

σ:E→{0,1}

v∈V

fv(σ |E(v)), a sum over all edge assignments σ : E → {0, 1}. It is parameterized by a function set F with fv ∈ F.

Also known as: Read-Twice #CSP , Tensor Networks, Graphical Models…

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 5 / 22

slide-17
SLIDE 17

Functions Expressible by Perfect Matchings

View some functions together as a new one. The function f on the right is (2,0,0,1).

f

EO3 EO3 x1 x2 y1 y2

This is also called tensor contraction. Given functions f1, f2, and a partition x1 and x2 of variables x, the contraction g is: g x

y

f1 x1 y f2 x2 y If a set of functions is tractable, then any function expressible by is also tractable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 6 / 22

slide-18
SLIDE 18

Functions Expressible by Perfect Matchings

View some functions together as a new one. The function f on the right is (2,0,0,1).

f

EO3 EO3 x1 x2 y1 y2

This is also called tensor contraction. Given functions f1, f2, and a partition x1 and x2 of variables x, the contraction g is: g x

y

f1 x1 y f2 x2 y If a set of functions is tractable, then any function expressible by is also tractable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 6 / 22

slide-19
SLIDE 19

Functions Expressible by Perfect Matchings

View some functions together as a new one. The function f on the right is (2,0,0,1).

f

EO3 EO3 x1 x2 y1 y2

This is also called tensor contraction. Given functions f1, f2, and a partition x1 and x2 of variables x, the contraction g is: g x

y

f1 x1 y f2 x2 y If a set of functions is tractable, then any function expressible by is also tractable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 6 / 22

slide-20
SLIDE 20

Functions Expressible by Perfect Matchings

View some functions together as a new one. The function f on the right is (2,0,0,1).

f

EO3 EO3 x1 x2 y1 y2

This is also called tensor contraction. Given functions f1, f2, and a partition x1 and x2 of variables x, the contraction g is: g x

y

f1 x1 y f2 x2 y If a set of functions is tractable, then any function expressible by is also tractable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 6 / 22

slide-21
SLIDE 21

Functions Expressible by Perfect Matchings

View some functions together as a new one. The function f on the right is (2,0,0,1).

f

EO3 EO3 x1 x2 y1 y2

This is also called tensor contraction. Given functions f1, f2, and a partition x1 and x2 of variables x, the contraction g is: g x

y

f1 x1 y f2 x2 y If a set of functions is tractable, then any function expressible by is also tractable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 6 / 22

slide-22
SLIDE 22

Functions Expressible by Perfect Matchings

View some functions together as a new one. The function f on the right is (2,0,0,1).

f

EO3 EO3 x1 x2 y1 y2

This is also called tensor contraction. Given functions f1, f2, and a partition x1 and x2 of variables x, the contraction g is: g x

y

f1 x1 y f2 x2 y If a set of functions is tractable, then any function expressible by is also tractable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 6 / 22

slide-23
SLIDE 23

Functions Expressible by Perfect Matchings

View some functions together as a new one. The function f on the right is (2,0,0,1).

f

EO3 EO3 x1 x2 y1 y2

This is also called tensor contraction. Given functions f1, f2, and a partition x1 and x2 of variables x, the contraction g is: g x

y

f1 x1 y f2 x2 y If a set of functions is tractable, then any function expressible by is also tractable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 6 / 22

slide-24
SLIDE 24

Functions Expressible by Perfect Matchings

View some functions together as a new one. The function f on the right is (2,0,0,1).

f

EO3 EO3 x1 x2 y1 y2

This is also called tensor contraction. Given functions f1, f2, and a partition x1 and x2 of variables x, the contraction g is: g x

y

f1 x1 y f2 x2 y If a set of functions is tractable, then any function expressible by is also tractable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 6 / 22

slide-25
SLIDE 25

Functions Expressible by Perfect Matchings

View some functions together as a new one. The function f on the right is (2,0,0,1).

f

EO3 EO3 x1 x2 y1 y2

This is also called tensor contraction. Given functions f1, f2, and a partition x1 and x2 of variables x, the contraction g is: g x

y

f1 x1 y f2 x2 y If a set of functions is tractable, then any function expressible by is also tractable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 6 / 22

slide-26
SLIDE 26

Functions Expressible by Perfect Matchings

View some functions together as a new one. The function f on the right is (2,0,0,1).

f

EO3 EO3 x1 x2 y1 y2

This is also called tensor contraction. Given functions f1, f2, and a partition x1 and x2 of variables x, the contraction g is: g(x) = ∑

y

f1(x1, y)f2(x2, y). If a set of functions is tractable, then any function expressible by is also tractable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 6 / 22

slide-27
SLIDE 27

Functions Expressible by Perfect Matchings

View some functions together as a new one. The function f on the right is (2,0,0,1).

f

EO3 EO3 x1 x2 y1 y2

This is also called tensor contraction. Given functions f1, f2, and a partition x1 and x2 of variables x, the contraction g is: g(x) = ∑

y

f1(x1, y)f2(x2, y). If a set of functions F is tractable, then any function expressible by F is also tractable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 6 / 22

slide-28
SLIDE 28

Holographic Transformations

Let Holant(f | g) be the problem when input graphs are bipartite and f and g are assigned on the two sides. For a 2-by-2 nonsingular matrix T, two functions f and g of arities m and n respectively, Valiant's Holant theorem [Valiant 04] states Holant f g Holant fT

m

T

1 ng

Note that Holant f Holant f

2 .

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 7 / 22

slide-29
SLIDE 29

Holographic Transformations

Let Holant(f | g) be the problem when input graphs are bipartite and f and g are assigned on the two sides. For a 2-by-2 nonsingular matrix T, two functions f and g of arities m and n respectively, Valiant's Holant theorem [Valiant 04] states Holant(f | g) ≡ Holant(fT⊗m | (T−1)⊗ng). Note that Holant f Holant f

2 .

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 7 / 22

slide-30
SLIDE 30

Holographic Transformations

Let Holant(f | g) be the problem when input graphs are bipartite and f and g are assigned on the two sides. For a 2-by-2 nonsingular matrix T, two functions f and g of arities m and n respectively, Valiant's Holant theorem [Valiant 04] states Holant(f | g) ≡ Holant(fT⊗m | (T−1)⊗ng). Note that Holant(f) ≡ Holant(f |=2).

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 7 / 22

slide-31
SLIDE 31

Holographic Algorithms Based on Matchgates

Holographic algorithm based on matchgates [Valiant 04] :

Matchgates: functions expressible by perfect matchings. Holographic Transformation: Holant f g Holant fT

m

T

1 ng

A series of work (see e.g. [Cai and Lu 07] ) characterizes what problems can be solved by holographic algorithms based on matchgates. Question : how about replacing matchgates by other tractable functions? This work provides some answer to the question.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 8 / 22

slide-32
SLIDE 32

Holographic Algorithms Based on Matchgates

Holographic algorithm based on matchgates [Valiant 04] :

Matchgates: functions expressible by perfect matchings. Holographic Transformation: Holant f g Holant fT

m

T

1 ng

A series of work (see e.g. [Cai and Lu 07] ) characterizes what problems can be solved by holographic algorithms based on matchgates. Question : how about replacing matchgates by other tractable functions? This work provides some answer to the question.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 8 / 22

slide-33
SLIDE 33

Holographic Algorithms Based on Matchgates

Holographic algorithm based on matchgates [Valiant 04] :

Matchgates: functions expressible by perfect matchings. Holographic Transformation: Holant(f | g) ⇒ Holant(fT⊗m | (T−1)⊗ng).

A series of work (see e.g. [Cai and Lu 07] ) characterizes what problems can be solved by holographic algorithms based on matchgates. Question : how about replacing matchgates by other tractable functions? This work provides some answer to the question.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 8 / 22

slide-34
SLIDE 34

Holographic Algorithms Based on Matchgates

Holographic algorithm based on matchgates [Valiant 04] :

Matchgates: functions expressible by perfect matchings. Holographic Transformation: Holant(f | g) ⇒ Holant(fT⊗m | (T−1)⊗ng).

A series of work (see e.g. [Cai and Lu 07] ) characterizes what problems can be solved by holographic algorithms based on matchgates. Question : how about replacing matchgates by other tractable functions? This work provides some answer to the question.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 8 / 22

slide-35
SLIDE 35

Holographic Algorithms Based on Matchgates

Holographic algorithm based on matchgates [Valiant 04] :

Matchgates: functions expressible by perfect matchings. Holographic Transformation: Holant(f | g) ⇒ Holant(fT⊗m | (T−1)⊗ng).

A series of work (see e.g. [Cai and Lu 07] ) characterizes what problems can be solved by holographic algorithms based on matchgates. Question : how about replacing matchgates by other tractable functions? This work provides some answer to the question.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 8 / 22

slide-36
SLIDE 36

Holographic Algorithms Based on Matchgates

Holographic algorithm based on matchgates [Valiant 04] :

Matchgates: functions expressible by perfect matchings. Holographic Transformation: Holant(f | g) ⇒ Holant(fT⊗m | (T−1)⊗ng).

A series of work (see e.g. [Cai and Lu 07] ) characterizes what problems can be solved by holographic algorithms based on matchgates. Question : how about replacing matchgates by other tractable functions? This work provides some answer to the question.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 8 / 22

slide-37
SLIDE 37

Symmetric Functions

HolantΩ = ∑

σ

v∈V

fv(σ |E(v)), When the function is Exact-One, the Holant counts perfect matchings.

Such a function is symmetric. The output only depends on the Hamming weight of the input. List f by Hamming weights of its inputs: f0 f1 fn . E.g. Exact-One is 0 1 0 0 . This is called the succinct expression. Functions expressible by symmetric functions are not necessarily symmetric.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 9 / 22

slide-38
SLIDE 38

Symmetric Functions

HolantΩ = ∑

σ

v∈V

fv(σ |E(v)), When the function is Exact-One, the Holant counts perfect matchings.

Such a function is symmetric. The output only depends on the Hamming weight of the input. List f by Hamming weights of its inputs: f0 f1 fn . E.g. Exact-One is 0 1 0 0 . This is called the succinct expression. Functions expressible by symmetric functions are not necessarily symmetric.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 9 / 22

slide-39
SLIDE 39

Symmetric Functions

HolantΩ = ∑

σ

v∈V

fv(σ |E(v)), When the function is Exact-One, the Holant counts perfect matchings.

Such a function is symmetric. The output only depends on the Hamming weight of the input. List f by Hamming weights of its inputs: [f0, f1, . . . , fn]. E.g. Exact-One is [0, 1, 0, . . . , 0]. This is called the succinct expression. Functions expressible by symmetric functions are not necessarily symmetric.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 9 / 22

slide-40
SLIDE 40

Symmetric Functions

HolantΩ = ∑

σ

v∈V

fv(σ |E(v)), When the function is Exact-One, the Holant counts perfect matchings.

Such a function is symmetric. The output only depends on the Hamming weight of the input. List f by Hamming weights of its inputs: [f0, f1, . . . , fn]. E.g. Exact-One is [0, 1, 0, . . . , 0]. This is called the succinct expression. Functions expressible by symmetric functions are not necessarily symmetric.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 9 / 22

slide-41
SLIDE 41

Symmetric Functions

HolantΩ = ∑

σ

v∈V

fv(σ |E(v)), When the function is Exact-One, the Holant counts perfect matchings.

Such a function is symmetric. The output only depends on the Hamming weight of the input. List f by Hamming weights of its inputs: [f0, f1, . . . , fn]. E.g. Exact-One is [0, 1, 0, . . . , 0]. This is called the succinct expression. Functions expressible by symmetric functions are not necessarily symmetric.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 9 / 22

slide-42
SLIDE 42

Holographic Transformations - an Example

Consider the problem Holant([3, 0, 1, 0, 3]). Under the transformation

1 1 i i ,

Holant 3 0 1 0 3

2

Holant 0 0 1 0 0

2 2 imposes an orientation and 0 0 1 0 0 requires it to be Eulerian.

Holant 3 0 1 0 3 in fact counts the number of Eulerian orientations on 4-regular graphs (up to an easy to compute factor).

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 10 / 22

slide-43
SLIDE 43

Holographic Transformations - an Example

Consider the problem Holant([3, 0, 1, 0, 3]). Under the transformation [ 1 1

i −i

] , Holant([3, 0, 1, 0, 3] | =2) ≡ Holant([0, 0, 1, 0, 0] | ̸=2).

2 imposes an orientation and 0 0 1 0 0 requires it to be Eulerian.

Holant 3 0 1 0 3 in fact counts the number of Eulerian orientations on 4-regular graphs (up to an easy to compute factor).

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 10 / 22

slide-44
SLIDE 44

Holographic Transformations - an Example

Consider the problem Holant([3, 0, 1, 0, 3]). Under the transformation [ 1 1

i −i

] , Holant([3, 0, 1, 0, 3] | =2) ≡ Holant([0, 0, 1, 0, 0] | ̸=2). ̸=2 imposes an orientation and [0, 0, 1, 0, 0] requires it to be Eulerian. Holant 3 0 1 0 3 in fact counts the number of Eulerian orientations on 4-regular graphs (up to an easy to compute factor).

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 10 / 22

slide-45
SLIDE 45

Holographic Transformations - an Example

Consider the problem Holant([3, 0, 1, 0, 3]). Under the transformation [ 1 1

i −i

] , Holant([3, 0, 1, 0, 3] | =2) ≡ Holant([0, 0, 1, 0, 0] | ̸=2). ̸=2 imposes an orientation and [0, 0, 1, 0, 0] requires it to be Eulerian. Holant([3, 0, 1, 0, 3]) in fact counts the number of Eulerian orientations on 4-regular graphs (up to an easy to compute factor).

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 10 / 22

slide-46
SLIDE 46

General Tractable Functions

The two non-trivial tractable families of functions in general graphs.

Product type, denoted : functions that are products of binary equalities, binary dis-equalities, and unary functions. The algorithm is a simple propagation. Affine type, denoted . Parity functions define an affine system and the number of solutions is easy to compute via computing the rank. The family generalizes such functions.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 11 / 22

slide-47
SLIDE 47

General Tractable Functions

The two non-trivial tractable families of functions in general graphs.

Product type, denoted P: functions that are products of binary equalities, binary dis-equalities, and unary functions. The algorithm is a simple propagation. Affine type, denoted . Parity functions define an affine system and the number of solutions is easy to compute via computing the rank. The family generalizes such functions.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 11 / 22

slide-48
SLIDE 48

General Tractable Functions

The two non-trivial tractable families of functions in general graphs.

Product type, denoted P: functions that are products of binary equalities, binary dis-equalities, and unary functions. The algorithm is a simple propagation. Affine type, denoted . Parity functions define an affine system and the number of solutions is easy to compute via computing the rank. The family generalizes such functions.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 11 / 22

slide-49
SLIDE 49

General Tractable Functions

The two non-trivial tractable families of functions in general graphs.

Product type, denoted P: functions that are products of binary equalities, binary dis-equalities, and unary functions. The algorithm is a simple propagation. Affine type, denoted . Parity functions define an affine system and the number of solutions is easy to compute via computing the rank. The family generalizes such functions.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 11 / 22

slide-50
SLIDE 50

General Tractable Functions

The two non-trivial tractable families of functions in general graphs.

Product type, denoted P: functions that are products of binary equalities, binary dis-equalities, and unary functions. The algorithm is a simple propagation. Affine type, denoted . Parity functions define an affine system and the number of solutions is easy to compute via computing the rank. The family generalizes such functions.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 11 / 22

slide-51
SLIDE 51

General Tractable Functions

The two non-trivial tractable families of functions in general graphs.

Product type, denoted P: functions that are products of binary equalities, binary dis-equalities, and unary functions.

▶ The algorithm is a simple propagation.

Affine type, denoted . Parity functions define an affine system and the number of solutions is easy to compute via computing the rank. The family generalizes such functions.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 11 / 22

slide-52
SLIDE 52

General Tractable Functions

The two non-trivial tractable families of functions in general graphs.

Product type, denoted P: functions that are products of binary equalities, binary dis-equalities, and unary functions.

▶ The algorithm is a simple propagation.

Affine type, denoted A . Parity functions define an affine system and the number of solutions is easy to compute via computing the rank. The family generalizes such functions.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 11 / 22

slide-53
SLIDE 53

General Tractable Functions

The two non-trivial tractable families of functions in general graphs.

Product type, denoted P: functions that are products of binary equalities, binary dis-equalities, and unary functions.

▶ The algorithm is a simple propagation.

Affine type, denoted A .

▶ Parity functions define an affine system and the number of solutions is easy to

compute via computing the rank. The family A generalizes such functions.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 11 / 22

slide-54
SLIDE 54

Complex Affine Functions

Let f ∈ A . Then f is of the form: χxA=0 · √ −1

xBxT

, where x x1 x2 xk 1 , A is a matrix over

2,

is a 0-1 indicator function such that

Ax 0 is 1 iff Ax

0, and B is a symmetric integer matrix. The contraction of any two functions in is still in and easy to compute [Cai, Lu, Xia 09] . In particular, this family contains Clifford gates in quantum computation as a special case.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 12 / 22

slide-55
SLIDE 55

Complex Affine Functions

Let f ∈ A . Then f is of the form: χxA=0 · √ −1

xBxT

, where x = (x1, x2, . . . , xk, 1), A is a matrix over F2, χ is a 0-1 indicator function such that χAx=0 is 1 iff Ax = 0, and B is a symmetric integer matrix. The contraction of any two functions in is still in and easy to compute [Cai, Lu, Xia 09] . In particular, this family contains Clifford gates in quantum computation as a special case.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 12 / 22

slide-56
SLIDE 56

Complex Affine Functions

Let f ∈ A . Then f is of the form: χxA=0 · √ −1

xBxT

, where x = (x1, x2, . . . , xk, 1), A is a matrix over F2, χ is a 0-1 indicator function such that χAx=0 is 1 iff Ax = 0, and B is a symmetric integer matrix. The contraction of any two functions in is still in and easy to compute [Cai, Lu, Xia 09] . In particular, this family contains Clifford gates in quantum computation as a special case.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 12 / 22

slide-57
SLIDE 57

Complex Affine Functions

Let f ∈ A . Then f is of the form: χxA=0 · √ −1

xBxT

, where x = (x1, x2, . . . , xk, 1), A is a matrix over F2, χ is a 0-1 indicator function such that χAx=0 is 1 iff Ax = 0, and B is a symmetric integer matrix. The contraction of any two functions in A is still in A and easy to compute [Cai, Lu, Xia 09] . In particular, this family contains Clifford gates in quantum computation as a special case.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 12 / 22

slide-58
SLIDE 58

Complex Affine Functions

Let f ∈ A . Then f is of the form: χxA=0 · √ −1

xBxT

, where x = (x1, x2, . . . , xk, 1), A is a matrix over F2, χ is a 0-1 indicator function such that χAx=0 is 1 iff Ax = 0, and B is a symmetric integer matrix. The contraction of any two functions in A is still in A and easy to compute [Cai, Lu, Xia 09] . In particular, this family contains Clifford gates in quantum computation as a special case.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 12 / 22

slide-59
SLIDE 59

A - and P-transformable Functions

Holant(f) ≡ Holant(f |=2) ≡ Holant(fT⊗n | (T−1)⊗2 =2) Say f is

  • transformable if there exists T such that fT

n

T

1 2 2

. If defines a tractable Holant problem, then any

  • transformable is also

tractable. Both

  • and
  • transformable functions are tractable.

(or )-transformable is a proper super set of (or ). Fibonnaci gates [Cai, Lu, Xia 08] are in fact

  • transformable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 13 / 22

slide-60
SLIDE 60

A - and P-transformable Functions

Holant(f) ≡ Holant(f |=2) ≡ Holant(fT⊗n | (T−1)⊗2 =2) Say f is F-transformable if there exists T such that {fT⊗n, (T−1)⊗2 =2} ⊂ F. If defines a tractable Holant problem, then any

  • transformable is also

tractable. Both

  • and
  • transformable functions are tractable.

(or )-transformable is a proper super set of (or ). Fibonnaci gates [Cai, Lu, Xia 08] are in fact

  • transformable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 13 / 22

slide-61
SLIDE 61

A - and P-transformable Functions

Holant(f) ≡ Holant(f |=2) ≡ Holant(fT⊗n | (T−1)⊗2 =2) Say f is F-transformable if there exists T such that {fT⊗n, (T−1)⊗2 =2} ⊂ F. If F defines a tractable Holant problem, then any F-transformable is also tractable. Both

  • and
  • transformable functions are tractable.

(or )-transformable is a proper super set of (or ). Fibonnaci gates [Cai, Lu, Xia 08] are in fact

  • transformable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 13 / 22

slide-62
SLIDE 62

A - and P-transformable Functions

Holant(f) ≡ Holant(f |=2) ≡ Holant(fT⊗n | (T−1)⊗2 =2) Say f is F-transformable if there exists T such that {fT⊗n, (T−1)⊗2 =2} ⊂ F. If F defines a tractable Holant problem, then any F-transformable is also tractable. Both A - and P-transformable functions are tractable. (or )-transformable is a proper super set of (or ). Fibonnaci gates [Cai, Lu, Xia 08] are in fact

  • transformable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 13 / 22

slide-63
SLIDE 63

A - and P-transformable Functions

Holant(f) ≡ Holant(f |=2) ≡ Holant(fT⊗n | (T−1)⊗2 =2) Say f is F-transformable if there exists T such that {fT⊗n, (T−1)⊗2 =2} ⊂ F. If F defines a tractable Holant problem, then any F-transformable is also tractable. Both A - and P-transformable functions are tractable. A (or P)-transformable is a proper super set of A (or P). Fibonnaci gates [Cai, Lu, Xia 08] are in fact

  • transformable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 13 / 22

slide-64
SLIDE 64

A - and P-transformable Functions

Holant(f) ≡ Holant(f |=2) ≡ Holant(fT⊗n | (T−1)⊗2 =2) Say f is F-transformable if there exists T such that {fT⊗n, (T−1)⊗2 =2} ⊂ F. If F defines a tractable Holant problem, then any F-transformable is also tractable. Both A - and P-transformable functions are tractable. A (or P)-transformable is a proper super set of A (or P). Fibonnaci gates [Cai, Lu, Xia 08] are in fact P-transformable.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 13 / 22

slide-65
SLIDE 65

Holant Dichotomy for General Graphs

Theorem (Cai, G., Williams 13)

  • Letfbeasymmetricfunction. Holant(f)is#P-hardunlessfis

1

degenerateorbinary,

2

vanishing,

3

A -transformable,or

4

P-transformable. whicharecomputableinpolynomialtime. This dichotomy also generalizes to a set of functions.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 14 / 22

slide-66
SLIDE 66

Holant Dichotomy for General Graphs

Theorem (Cai, G., Williams 13)

  • Letfbeasymmetricfunction. Holant(f)is#P-hardunlessfis

1

degenerateorbinary,

2

vanishing,

3

A -transformable,or

4

P-transformable. whicharecomputableinpolynomialtime. This dichotomy also generalizes to a set of functions.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 14 / 22

slide-67
SLIDE 67

Holant Dichotomy for General Graphs

Theorem (Cai, G., Williams 13)

  • Letfbeasymmetricfunction. Holant(f)is#P-hardunlessfis

1

degenerateorbinary,

2

vanishing,

3

A -transformable,or

4

P-transformable. whicharecomputableinpolynomialtime. This dichotomy also generalizes to a set of functions.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 14 / 22

slide-68
SLIDE 68

Main Results

Theorem

ThereisapolynomialtimealgorithmtodecidewhetherafinitesetoffunctionsF isA -or P-transformable.

Theorem

Thereisapolynomialtimealgorithmtodecidewhetherafinitesetofsymmetricfunctions given insuccinctexpressionsis

  • or
  • transformable.

Corollary

ThedichotomytheoremforsymmetricHolantproblemsisdecidableinpolynomialtime.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 15 / 22

slide-69
SLIDE 69

Main Results

Theorem

ThereisapolynomialtimealgorithmtodecidewhetherafinitesetoffunctionsF isA -or P-transformable.

Theorem

ThereisapolynomialtimealgorithmtodecidewhetherafinitesetofsymmetricfunctionsF given insuccinctexpressionsisA -orP-transformable.

Corollary

ThedichotomytheoremforsymmetricHolantproblemsisdecidableinpolynomialtime.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 15 / 22

slide-70
SLIDE 70

Main Results

Theorem

ThereisapolynomialtimealgorithmtodecidewhetherafinitesetoffunctionsF isA -or P-transformable.

Theorem

ThereisapolynomialtimealgorithmtodecidewhetherafinitesetofsymmetricfunctionsF given insuccinctexpressionsisA -orP-transformable.

Corollary

ThedichotomytheoremforsymmetricHolantproblemsisdecidableinpolynomialtime.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 15 / 22

slide-71
SLIDE 71

Deciding General A Functions

Recall that for f ∈ A , f(x) = χxA=0 · √ −1

xBxT

. For a fixed arity n, there are 2O(n2) distinct functions in A . First check whether the support S of f is an affine subspace: Build a basis inductively. If so, decide B by solving entries one at a time. Then check if it is consistent with f.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 16 / 22

slide-72
SLIDE 72

Deciding General A Functions

Recall that for f ∈ A , f(x) = χxA=0 · √ −1

xBxT

. For a fixed arity n, there are 2O(n2) distinct functions in A . First check whether the support S of f is an affine subspace: Build a basis inductively. If so, decide B by solving entries one at a time. Then check if it is consistent with f.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 16 / 22

slide-73
SLIDE 73

Deciding General A Functions

Recall that for f ∈ A , f(x) = χxA=0 · √ −1

xBxT

. For a fixed arity n, there are 2O(n2) distinct functions in A . First check whether the support S of f is an affine subspace: Build a basis inductively. If so, decide B by solving entries one at a time. Then check if it is consistent with f.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 16 / 22

slide-74
SLIDE 74

Deciding General A -transformable

We want to decide whether there exists T ∈ GL2(C) such that fT⊗n ∈ A (or P), with the additional restriction ((T−1)⊗2 =2) ∈ A (or P). Consider the stabilizer group of : Stab T GL2 T In fact, Stab is generated by matrices

1 0 0 i and 1 1 1 1 up to a constant.

Normalize a valid transformation T using matrices in Stab such that either T SO2

  • r

1 0 e

i 4

T SO2 .

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 17 / 22

slide-75
SLIDE 75

Deciding General A -transformable

We want to decide whether there exists T ∈ GL2(C) such that fT⊗n ∈ A (or P), with the additional restriction ((T−1)⊗2 =2) ∈ A (or P). Consider the stabilizer group of A : Stab(A ) := {T ∈ GL2(C)|TA ⊆ A }. In fact, Stab(A ) is generated by matrices [ 1 0

0 i ] and [ 1 1 1 −1 ] up to a constant.

Normalize a valid transformation T using matrices in Stab such that either T SO2

  • r

1 0 e

i 4

T SO2 .

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 17 / 22

slide-76
SLIDE 76

Deciding General A -transformable

We want to decide whether there exists T ∈ GL2(C) such that fT⊗n ∈ A (or P), with the additional restriction ((T−1)⊗2 =2) ∈ A (or P). Consider the stabilizer group of A : Stab(A ) := {T ∈ GL2(C)|TA ⊆ A }. In fact, Stab(A ) is generated by matrices [ 1 0

0 i ] and [ 1 1 1 −1 ] up to a constant.

Normalize a valid transformation T using matrices in Stab(A ) such that either T ∈ SO2(C) or [

1 0 e

πi 4

] T ∈ SO2(C).

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 17 / 22

slide-77
SLIDE 77

Deciding General A -transformable (cont.)

T ∈ SO2(C) ⇔ T = [ a

b −b a

] where a2 + b2 = 1. Key observation:

1 i 1 i a b b a a bi a bi 1 i 1 i

Then g T

nf iff 1 i 1 i n g

Diagonal transformations are easy to check.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 18 / 22

slide-78
SLIDE 78

Deciding General A -transformable (cont.)

T ∈ SO2(C) ⇔ T = [ a

b −b a

] where a2 + b2 = 1. Key observation: [ 1

i 1 −i

] [ a

b −b a

] = [ a−bi

a+bi

] [ 1

i 1 −i

] . Then g = T⊗nf iff [ 1

i 1 −i

]⊗n g = [ 1

i 1 −i

]⊗n [ a

b −b a

]⊗n f. Diagonal transformations are easy to check.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 18 / 22

slide-79
SLIDE 79

Deciding General A -transformable (cont.)

T ∈ SO2(C) ⇔ T = [ a

b −b a

] where a2 + b2 = 1. Key observation: [ 1

i 1 −i

] [ a

b −b a

] = [ a−bi

a+bi

] [ 1

i 1 −i

] . Then g = T⊗nf iff [ 1

i 1 −i

]⊗n g = ([ 1

i 1 −i

] [ a

b −b a

])⊗n f. Diagonal transformations are easy to check.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 18 / 22

slide-80
SLIDE 80

Deciding General A -transformable (cont.)

T ∈ SO2(C) ⇔ T = [ a

b −b a

] where a2 + b2 = 1. Key observation: [ 1

i 1 −i

] [ a

b −b a

] = [ a−bi

a+bi

] [ 1

i 1 −i

] . Then g = T⊗nf iff [ 1

i 1 −i

]⊗n g = ([ a−bi

a+bi

] [ 1

i 1 −i

])⊗n f. Diagonal transformations are easy to check.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 18 / 22

slide-81
SLIDE 81

Deciding General A -transformable (cont.)

T ∈ SO2(C) ⇔ T = [ a

b −b a

] where a2 + b2 = 1. Key observation: [ 1

i 1 −i

] [ a

b −b a

] = [ a−bi

a+bi

] [ 1

i 1 −i

] . Then g = T⊗nf iff [ 1

i 1 −i

]⊗n g = [ a−bi

a+bi

]⊗n ([ 1

i 1 −i

]⊗n f ) . Diagonal transformations are easy to check.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 18 / 22

slide-82
SLIDE 82

Deciding General A -transformable (cont.)

T ∈ SO2(C) ⇔ T = [ a

b −b a

] where a2 + b2 = 1. Key observation: [ 1

i 1 −i

] [ a

b −b a

] = [ a−bi

a+bi

] [ 1

i 1 −i

] . Then g = T⊗nf iff [ 1

i 1 −i

]⊗n g = [ a−bi

a+bi

]⊗n ([ 1

i 1 −i

]⊗n f ) . Diagonal transformations are easy to check.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 18 / 22

slide-83
SLIDE 83

Deciding General A -transformable (cont.)

T ∈ SO2(C) ⇔ T = [ a

b −b a

] where a2 + b2 = 1. Key observation: [ 1

i 1 −i

] [ a

b −b a

] = [ a−bi

a+bi

] [ 1

i 1 −i

] . Then g = T⊗nf iff [ 1

i 1 −i

]⊗n g = [ a−bi

a+bi

]⊗n ([ 1

i 1 −i

]⊗n f ) . Diagonal transformations are easy to check.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 18 / 22

slide-84
SLIDE 84

Deciding Symmetric A -transformable

Challenge: exponentially succinct. Any

  • transformable function has to be in the form of v

n

v

n 1

. The (symmetric) tensor rank is 2 and preserved by any holographic transformation. Let v0

a0 b0 and v1 a1 b1 . Define

v0 v1 a0a1 b0b1 a1b0 a0b1

2

Then v0 v1 is invariant under orthogonal transformations.

  • transformable

v0 v1 0, 1 or

1 2.

When all these are satisfied, valid transformations are restricted to polynomially many.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 19 / 22

slide-85
SLIDE 85

Deciding Symmetric A -transformable

Challenge: exponentially succinct. Any A -transformable function has to be in the form of ( v⊗n + v⊗n

1

) . The (symmetric) tensor rank is 2 and preserved by any holographic transformation. Let v0

a0 b0 and v1 a1 b1 . Define

v0 v1 a0a1 b0b1 a1b0 a0b1

2

Then v0 v1 is invariant under orthogonal transformations.

  • transformable

v0 v1 0, 1 or

1 2.

When all these are satisfied, valid transformations are restricted to polynomially many.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 19 / 22

slide-86
SLIDE 86

Deciding Symmetric A -transformable

Challenge: exponentially succinct. Any A -transformable function has to be in the form of ( v⊗n + v⊗n

1

) . The (symmetric) tensor rank is 2 and preserved by any holographic transformation. Let v0 = [ a0

b0

] and v1 = [ a1

b1

] . Define θ(v0, v1) := (a0a1 + b0b1 a1b0 − a0b1 )2 . Then θ(v0, v1) is invariant under orthogonal transformations.

  • transformable

v0 v1 0, 1 or

1 2.

When all these are satisfied, valid transformations are restricted to polynomially many.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 19 / 22

slide-87
SLIDE 87

Deciding Symmetric A -transformable

Challenge: exponentially succinct. Any A -transformable function has to be in the form of ( v⊗n + v⊗n

1

) . The (symmetric) tensor rank is 2 and preserved by any holographic transformation. Let v0 = [ a0

b0

] and v1 = [ a1

b1

] . Define θ(v0, v1) := (a0a1 + b0b1 a1b0 − a0b1 )2 . Then θ(v0, v1) is invariant under orthogonal transformations. A -transformable ⇒ θ(v0, v1) = 0, −1 or − 1

2.

When all these are satisfied, valid transformations are restricted to polynomially many.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 19 / 22

slide-88
SLIDE 88

Deciding Symmetric A -transformable

Challenge: exponentially succinct. Any A -transformable function has to be in the form of ( v⊗n + v⊗n

1

) . The (symmetric) tensor rank is 2 and preserved by any holographic transformation. Let v0 = [ a0

b0

] and v1 = [ a1

b1

] . Define θ(v0, v1) := (a0a1 + b0b1 a1b0 − a0b1 )2 . Then θ(v0, v1) is invariant under orthogonal transformations. A -transformable ⇒ θ(v0, v1) = 0, −1 or − 1

2.

When all these are satisfied, valid transformations are restricted to polynomially many.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 19 / 22

slide-89
SLIDE 89

Deciding P Functions

Recall that P contains function products of binary equalities, binary dis-equalities, and unary functions.

Lemma (Uniqueness of tensor factorizations)

Letf x

i fi xi where xi isapartition.

Thenfi'sareuniqueuptopermutationsandcanbecomputedinpolynomialtime. Function product factorizations are not unique, that is, fi's are not unique if some xi and xj overlap. Deciding membership of is straightforward.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 20 / 22

slide-90
SLIDE 90

Deciding P Functions

Recall that P contains function products of binary equalities, binary dis-equalities, and unary functions.

Lemma (Uniqueness of tensor factorizations)

Letf(x) = ∏

i fi(xi)where{xi}isapartition.

Thenfi'sareuniqueuptopermutationsandcanbecomputedinpolynomialtime. Function product factorizations are not unique, that is, fi's are not unique if some xi and xj overlap. Deciding membership of is straightforward.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 20 / 22

slide-91
SLIDE 91

Deciding P Functions

Recall that P contains function products of binary equalities, binary dis-equalities, and unary functions.

Lemma (Uniqueness of tensor factorizations)

Letf(x) = ∏

i fi(xi)where{xi}isapartition.

Thenfi'sareuniqueuptopermutationsandcanbecomputedinpolynomialtime. Function product factorizations are not unique, that is, fi's are not unique if some xi and xj overlap. Deciding membership of P is straightforward.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 20 / 22

slide-92
SLIDE 92

Deciding P-transformable

For general functions, using ideas similar to A -transformable, we can restrict to orthogonal and related transformations. Then check them in the [ 1

i 1 −i

] basis. For symmetric functions, the procedure is also similar to deciding symmetric

  • transformable functions. We can check if f is a sum of two tensor powers

and then check v0 v1 . When both checks pass, the number of valid transformations are restricted.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 21 / 22

slide-93
SLIDE 93

Deciding P-transformable

For general functions, using ideas similar to A -transformable, we can restrict to orthogonal and related transformations. Then check them in the [ 1

i 1 −i

] basis. For symmetric functions, the procedure is also similar to deciding symmetric A -transformable functions. We can check if f is a sum of two tensor powers and then check θ(v0, v1). When both checks pass, the number of valid transformations are restricted.

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 21 / 22

slide-94
SLIDE 94

Thank you!

Papers are available on my homepage: pages.cs.wisc.edu/~hguo/

Heng Guo (CS, UW-Madison) General Holographic Algorithms ICALP 2014 22 / 22