function 1: or
or:
description:
or(ket1, ket2)
returns |yes> if ket1 or ket2 are |yes>, |no> otherwise.
now implemented as: ( ket1 || ket2 )
examples:
or(|yes>, |yes>)
|yes>
or(|yes>, |no>)
|yes>
or(|no>, |no>)
|no>
see also:
and, xor
or:
description:
or(ket) input-seq
applies or(ket, x) for each x in input-seq
as such, it preserves input-seq structure
but, because it preserves input-seq structure, it is slower than the above version.
examples:
or(|yes>) (|no> . |yes>)
|yes> . |yes>
or(|no>) (|no> . |yes>)
|no> . |yes>
see also:
and, xor
Home