The quantum query complexity of composition with a relation
The negative weight adversary method, ADV±(g), is known to characterize the bounded-error quantum query complexity of any Boolean function g, and also obeys a perfect composition theorem ADV±(f∘gn)=ADV±(f)ADV±(g). Belovs gave a modified version of the negative weight adversary method, ADVrel±(f), that characterizes the bounded-error quantum query complexity of a relation f⊆{0,1}n×[K], provided the relation is efficiently verifiable. A relation is efficiently verifiable if ADV±(fa)=o(ADVrel±(f)) for every a∈[K], where fa is the Boolean function defined as fa(x)=1 if and only if (x,a)∈f. In this note we show a perfect composition theorem for the composition of a relation f with a Boolean function g ADVrel±(f∘gn)=ADVrel±(f)ADV±(g). For an efficiently verifiable relation f this means Q(f∘gn)=Θ(ADVrel±(f)ADV±(g)).