get_classical_truth_table#
View source on GitHub
|
Get a ‘truth table’ for a classical-reversible bloq.
qualtran.simulation.classical_sim.get_classical_truth_table(
bloq: 'Bloq'
) -> Tuple[List[str], List[str], List[Tuple[Sequence[Any], Sequence[Any]]]]
Args
Returns
in_namesThe names of the left, input registers to serve as truth table headings for the input side of the truth table.
out_namesThe names of the right, output registers to serve as truth table headings for the output side of the truth table.
truth_tableA list of table entries. Each entry is a tuple of (in_vals, out_vals). The vals sequences are ordered according to the
in_namesandout_namesreturn values.
View source on GitHub