Description Usage Arguments Value Examples
Strings together output from FullAdder function to create multi-(qu)bit addition. It assumes the input operands are laid out as in <DOI:10.1049/el:20020949>. From left to right (top to bottom) the order is C0, a1, b1, C1, a2, b2, C2, .... bn-1, Cn. There must be 3n+1 qubits in order to perform n-(qu)bit addition.
1 | nBitAddition(n)
|
n |
Length of input (qu)bit strings. |
A list containing the quantum circuit (each elemented is one cycle of the circuit) performing n-bit addition.
1 2 3 4 | ## Not run:
nBitAddition(2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.