Example
Some quantum gates permute basis rows exactly like reversible logic. This is a toy exact table; real quantum algorithms also use complex amplitudes and interference.
highlighted = computed this step
Build the concrete table
Compute the highlighted logic-table value.
X on |0>|1>
Build the concrete table
Compute the highlighted logic-table value.
X on |0>X on |1>|1>|0>
Build the concrete table
Compute the highlighted logic-table value.
X on |0>X on |1>CNOT |00>|1>|0>|00>
Build the concrete table
Compute the highlighted logic-table value.
X on |0>X on |1>CNOT |00>CNOT |01>|1>|0>|00>|01>
Build the concrete table
Compute the highlighted logic-table value.
X on |0>X on |1>CNOT |00>CNOT |01>CNOT |10>|1>|0>|00>|01>|11>
Build the concrete table
Compute the highlighted logic-table value.
X on |0>X on |1>CNOT |00>CNOT |01>CNOT |10>CNOT |11>|1>|0>|00>|01>|11>|10>
logic-computation
Every row is intentionally ordered and pinned to the lesson specification.