dotmod2 {QuantumOps}R Documentation

dotmod2

Description

Takes two integers and takes the dot product of their binary representations. Output is the value of the dot product, modulus 2

Usage

dotmod2(x,a)

Arguments

x

integer

a

integer

Value

Binary value resulting from the bit-wise dot product modulus 2

Examples

 dotmod2(5,5)
 dotmod2(1,2)
 dotmod2(0,1)

[Package QuantumOps version 3.0.1 Index]