Oded Schramm Created 2026-10-14 Updated 2026-11-05
Oded Schramm coauthored Every decision tree has an influential variable by Ryan O'Donnell and others. The paper connects the variance of a Boolean function to the influences of its input coordinates and the probabilities that a decision tree examines them. This makes the observations performed by an algorithm constrain the structure of the function it computes.[ref]
A Boolean function satisfying the displayed condition. Composition of one-preserving Boolean functions is one-preserving, since each inner output is one on an all-one input. Consequently structural induction shows that a variable-built propositional formula using only one-preserving logical connectives, such as , is true under the all-one Boolean valuation.
An unrestricted Boolean function on inputs cannot be classified as constant or nonconstant with certainty using a single phase oracle query, even with quantum ancillas. Write a purified query input as with and . The zero constant function leaves it unchanged; the function supported only at produces a vector with inner product with it. Perfect discrimination of pure states requires orthogonality, forcing for all and thus , a contradiction. This is an exact quantum query complexity obstruction for all nonconstant inputs, rather than the restricted promise used by the Deutsch-Jozsa algorithm.
Ordered binary decision diagram Created 2026-10-31 Updated 2026-11-05
An ordered binary decision diagram is a binary decision diagram using one fixed variable ordering of a binary decision diagram along every root-to-terminal branch. Tests may be omitted, but no branch may test a later variable before an earlier one. For the order , a branch testing is permitted; a branch testing is not. Sharing equal residual Boolean functions can compress the diagram. Applying the reduction rules gives a reduced ordered binary decision diagram, canonical for the chosen order; a different order can have a dramatically different size.
For three bits, the Boolean function outputs one when is odd, where denotes exclusive or. Unlike the three-bit majority decision tree, an exact decision tree computing parity must inspect all three bits on every input. If any coordinate is unread, two completions differing only at that coordinate follow the same observed graph path but have opposite parity. A single leaf cannot correctly label both.
The same argument works for bits: parity needs all queries on every input, whatever their order. Thus its decision-tree depth is , its expected query cost is for every input probability distribution, and each coordinate revealment is one. The algorithm remains required to be correct on the whole Boolean cube, even if the chosen probability distribution assigns some inputs zero probability; a promise restricting permitted inputs would be a different computational problem.
Splitting the Boolean function according to the first tested Boolean variable gives
The identity follows by considering and . Using it and distributing Boolean conjunction over Boolean disjunction,
The first two terms combine to because . This also explains the truth table: always makes the output one, while with the output is one exactly when both and are one.
Choose the variable ordering of a binary decision diagram . The Boolean cofactor with is the constant one, while the Boolean cofactor with is . Consequently the right panel in part (d) has the following arrows:
Here an entry such as denotes the zero arrow to the decision node. There are vertices: three decision nodes and two terminal nodes, saving one decision node relative to either of the previous orderings. Testing first is effective because its one branch settles the entire Boolean function immediately. The ordering works equally well.
This is also minimal among ordinary binary decision diagrams for this Boolean function. Each Boolean variable is essential: setting leaves ; setting leaves ; and setting leaves . If a Boolean variable were never tested, the represented Boolean function could not depend on it. Thus at least three decision nodes are necessary, and the construction attains that bound.
We prove the one-query constancy obstruction for phase oracles while allowing arbitrary quantum ancillas. By purification of a density operator, the quantum state immediately before the sole query can be taken as
The ancilla vectors need not be normalized or orthogonal. Classical randomness and earlier quantum measurements can be included in additional ancillas; allowing access to these systems only gives the proposed algorithm more power.
For the zero constant function, the phase oracle is , leaving unchanged. For each , consider the Boolean function that is one at and zero elsewhere. Since , it is nonconstant, and its phase oracle produces
Any later fixed unitary transformation preserves these inner products. An arbitrary final quantum measurement cannot distinguish the constant output from each nonconstant output with certainty unless they are orthogonal, by perfect discrimination of pure states requires orthogonality. Explicitly, an accepting POVM effect would satisfy and , forcing .
Therefore exact classification requires for every . Summing gives
which contradicts . Thus one query cannot decide constancy with certainty. The other constant function gives , differing only by a global phase, so it does not change the argument. For comparison, permits ; the impossibility arises from demanding the test work for every nonconstant Boolean function.
For one input bit, a Boolean function is specified by the pair , and counts its satisfying assignments. In the ordered computational basis , the supplied phase oracle convention gives
Here is exclusive or: the oracle changes the sign of the inputs with . With the identity matrix and the Pauli Z gate, all four cases are
The two middle cases are balanced Boolean functions; the others are constant functions. The specified zero-state sign change and the Hadamard gate are
Use the top qubit as the first tensor product factor. Write the controlled unitary gate as . Reading the bracketed quantum circuit from left to right, its four operations are , , , . Thus the target operation in its control-one branch is
where the rightmost matrix acts first. The control-zero branch is the identity operator. The Hadamard conjugation of a controlled gate identity gives
Indeed, on control zero the replacement applies to the target, while on control one both sides apply . By linearity, the identity holds on every quantum superposition and therefore in every repetition of the bracket. This replaces the two internal controlled Hadamard gates as a pair.
The global phase of a controlled quantum gate must be preserved: , whereas . Consequently the minus signs in and the special phase oracles cannot be discarded as an unobservable global phase of the complete quantum circuit.
Allow clean workspace bits, as in standard reversible computation. Boolean algebra expresses any Boolean function as XORs of ANDs and constants. A Toffoli gate maps to , so an initially zero target computes an AND without erasing the inputs. A CNOT gate accumulates XORs, and a NOT gate supplies complemented bits or constants. Intermediate products can be computed into workspace, XORed into an output, and then uncomputed by reversing the workspace computation. This realizes the reversible embedding for any Boolean function and, with reversible clean-up, universal reversible classical computation.
The Fredkin transformation has control and targets . A network of three gates, shown in i, is
where the sequence is executed left to right. After the first gate ; after the second ; and the last gives . If , ; if , . Thus the circuit is exactly a Fredkin gate.
The workspace qualification matters for the unrestricted universality claim. On four or more wires, every embedded NOT, CNOT and Toffoli gate is an even permutation of all computational states. Without ancillary wires they cannot implement, for example, a permutation swapping just and while fixing the other four-bit strings. Clean ancillas remove this obstruction on the designated input subspace.
There are four one-bit Boolean functions, fully specified by the ordered pair :
  • : , constant.
  • : , constant.
  • : , balanced.
  • : , balanced.
Writing and gives . Constant functions have and balanced functions have .
A collection of logical connectives is functionally complete, or adequate, if every Boolean function of finitely many propositional variables is represented by a logical formula using only those logical connectives. More explicitly, for every and every there is a logical formula whose truth value under each Boolean valuation is . Constant functions with Boolean values may use an otherwise irrelevant logical variable, for example for truth and for falsity.
Translate logical formulas recursively, leaving propositional variables unchanged and translating negation by applying negation to the translation. For the other two logical connectives set
The first logical implication is false exactly when both original inputs are false; the second displayed logical formula is true exactly when both inputs are true. Hence each clause preserves truth values. Structural induction gives for every Boolean valuation and every logical formula in the larger language.
By the assumed functional completeness of negation, logical conjunction and logical disjunction, any finite Boolean function has such a logical formula . Its translation uses only negation and logical implication and represents the same function. Thus is adequate.
There are sixteen binary Boolean functions, one for each four-bit truth table. Exactly eight give an adequate basis together with negation.
The eight affine functions are . Each is affine over the field with two elements, and composition with other affine functions or negation remains affine. Since conjunction is not affine, none of these eight bases is adequate.
Each remaining truth table has either one true row or three true rows. In the latter case negate its output to obtain a function with one true row. Negate selected inputs to move that row to : the resulting function is conjunction. Conjunction together with negation expresses every disjunctive normal form, proving adequacy of all remaining eight. They are AND, NAND, OR, NOR, the two directed implications, and the two asymmetric conjunctions , . The count treats the binary connective by its truth function rather than by arbitrary choices of its printed symbol.
A collection of logical connectives is adequate, or has functional completeness, if every Boolean function of finitely many propositional variables can be expressed by a formula using those connectives and variables, with the usual convention for nullary truth constants stated if those are included.
An adequate example is . An inadequate example is : formulas using logical implication alone preserve truth when every input is true, so cannot express negation. These examples concern truth functions, rather than mere syntactic formation of formulas.
The Walsh-Hadamard transform is the tensor product of one Hadamard gate on each qubit. Indeed,
The network therefore consists of parallel Hadamard gates, with no interaction between wires. Applied to an all-zero quantum register, it produces the uniform quantum superposition of all input strings. This lets a Boolean quantum oracle act coherently on all those inputs; a subsequent operation can turn their relative phases into useful interference. It does not permit reading all oracle values from a single measurement in quantum mechanics.
Figure 1.
Parallel Hadamard gates and the one-query Bernstein-Vazirani network
. Details.
For the supplied linear-phase input, the amplitude on output is
Each factor is obtained by summing over the independent bit . This directly proves the relevant orthogonality of the binary Fourier phases, and yields the output state exactly.
For exact classical identification, query the Boolean function at the standard unit vectors: . Hence oracle calls suffice. They are also necessary in the worst case, even with adaptive queries: every answer supplies one binary linear equation in the unknown string. With fewer than queries, their coefficient matrix has matrix rank at most the number of queries, so its null space contains a nonzero string . The strings and give identical answers along that adaptive transcript and cannot both be identified correctly. Equivalently, a depth- binary decision tree has at most leaves and must distinguish possibilities. Thus the exact classical query count is . This concerns exact recovery, rather than allowing an arbitrary error probability.
The quantum network in the lower panel starts its data quantum register in and its answer ancilla qubit in , which can be prepared as . Apply Hadamard gates to the data wires, make one Boolean quantum oracle call, then apply Hadamard gates again to all data wires. Quantum phase kickback produces
A computational-basis measurement of the data wires gives all bits of with certainty. This is Bernstein-Vazirani phase kickback: one quantum query, data Hadamard gates, and one answer-state preparation suffice. The answer ancilla qubit stays separate from the data at the output.
A Boolean function takes each vector of bits to either zero or one. Use independent uniform input bits; the influence of a variable is the probability that flipping that bit changes the value. A quite fair Boolean function has . All logarithms in the estimates below are natural, except where a base is explicitly written.
Here is a balanced tribes construction with unused coordinates valid for every . For each put , and choose the largest with . Partition of the bits into blocks of size . Let be one when at least one block is all ones, and ignore the other bits. This is a tribes function. With , its zero probability is .
For the function is a single bit and has mean . For , and . The elementary inequalities give
Thus both output probabilities are between one quarter and three quarters.
A used bit is pivotal exactly when the other bits of its block are one and every other block fails. Hence its influence is ; unused bits have zero influence. Maximality of gives . Also for : this is immediate for , while for one has . Therefore
This proves the requested existence with room in the constant. The dimension-one boundary case cannot satisfy the printed logarithmic bound: a quite fair function of one bit is nonconstant and has influence one, whereas . Thus the statement requires the usual nontrivial range (or its intended large- interpretation).
We prove the following precise form of the Friedgut-Kalai sharp threshold theorem. There is an absolute such that, for a nontrivial transitive increasing event , , and , its success probability increases from to over an interval of length at most
In particular, and , with , imply . Here denotes independent bits equal to one with probability . Symmetry means invariance under a permutation group acting transitively on the coordinates, not necessarily invariance under all coordinate permutations.
Use the allowed weighted-cube influence theorem in this exact form: an absolute exists such that, for every , , and zero-one Boolean function of mean under , some coordinate has pivotal probability at least . A coordinate's pivotal event is determined by the other coordinates and means that the two possible values of that coordinate give different outputs. This uniform form is a consequence of the weighted Kahn-Kalai-Linial theorem; it applies to nonsymmetric functions as well.
Write . Differentiating the finite product expression for , one coordinate at a time, gives
The last equality uses monotonicity, so each summand is the pivotal probability. This derives the Margulis–Russo formula in the normalization being used. Transitivity makes all the influences equal; applying the weighted influence theorem therefore yields
Nontriviality ensures throughout . Dividing and integrating the derivative of the log odds gives
At the two specified quantiles the left side is . Taking proves the window bound and, with a strict starting inequality, the asserted strict final inequality. This is the sharp threshold conclusion, rather than an assumption about a discontinuous finite- probability curve.
Use for addition modulo two, or exclusive or. The key is to write the known Boolean function as an XOR of products of locally computable bits. An explicit separated Boolean decomposition avoids any need to assume a particular circuit for the function. For every possible Alice input , put
Alice can compute the first bit from her actual input and the public label ; Bob can compute the second bit from his own input because and the full function are public. Exactly one of the indicators is one, namely the one with . Hence
For each label , invoke one independent Popescu–Rohrlich box with inputs and . Denote its outputs by and . By the given correlation, . Alice locally forms , and Bob locally forms . Taking the XOR of all box constraints yields
Thus the protocol is
It succeeds exactly for every input and every allowed sequence of box outputs. Randomness of the individual outputs introduces no error because each parity relation is exact. All box calls can be made before the message, with no extra classical communication. This proves one-bit computation using Popescu–Rohrlich boxes.
The truth-table construction uses PR boxes. If Bob's input is shorter, use the equally valid decomposition . Alice computes the first factor, Bob the indicator, and Alice still sends her output parity. Therefore at most boxes are enough. This is a bound on box use, not on local computational work; the communication complexity remains one bit.
Another standard route is the algebraic normal form over the two-element field:
The empty products are one. For completeness, this representation follows by induction on the number of bits from , which adds a new variable only to its corresponding coefficients. Each nonzero monomial supplies one local product to each party and can be evaluated in distributed parity form by one PR box. Terms depending on only one party can instead be included directly in that party's final parity; the constant may be assigned to either side. For example, a single cross-product needs one box, whereas needs no boxes and just the one-bit message .
Finally, the scheme does not make the boxes themselves signalling devices. At any fixed box inputs, the two allowed output pairs give each party an individually uniform bit, independent of the distant input. Independence across box calls makes Bob's entire uncommunicated output string uniform, for any Alice input. Without he generally cannot identify the answer. The communicated parity combines with the nonlocal correlations to reveal it; it does not contradict the uniform local marginals of these no-signalling boxes.
A classical query with known answer bit reveals exactly the one bit , since it returns . For the four promised Boolean functions, the value table is
Every possible first query splits the four alternatives into one class of size one and another of size three. On the branch with three remaining alternatives, a second binary answer can separate at most two classes. At least two alternatives therefore still agree on that branch, regardless of how the second query was chosen adaptively. This decision tree argument proves that a procedure guaranteed to identify every alternative needs at least three queries in the worst case.
For sufficiency, query . The three-bit answer strings for are respectively , which are all distinct. Hence the exact classical worst-case query requirement is three. Some individual branches can terminate sooner; the lower bound does not assert that every oracle requires three queries.