get_classical_truth_table#

Get a ‘truth table’ for a classical-reversible bloq.

bloq

The classical-reversible bloq to create a truth table for.

in_names

The names of the left, input registers to serve as truth table headings for the input side of the truth table.

out_names

The names of the right, output registers to serve as truth table headings for the output side of the truth table.

truth_table

A list of table entries. Each entry is a tuple of (in_vals, out_vals). The vals sequences are ordered according to the in_names and out_names return values.