Expand description
Half- and full-adder circuits.
Functions§
- full_
adder - Construct a single-bit full-adder.
- half_
adder - Construct a single-bit half-adder.
Type Aliases§
- Full
Adder Arrow - A full-adder arrow:
((bool ⊗ bool) ⊗ bool) -> (bool ⊗ bool). Inputs:((a, b), carry_in). Outputs:(sum, carry_out). - Half
Adder Arrow - A half-adder arrow:
(bool ⊗ bool) -> (bool ⊗ bool). Output is(sum, carry)packed as a tensor.