infix operators, type 2: ||


 || :
    description:
        ket1 || ket2
        return |yes> if ket1 or ket2 are |yes>, |no> otherwise
        sometimes it is cleaner to use the or() function instead of ||

    examples:
        |yes> || |yes>
            |yes>

        |no> || |yes>
            |yes>

        |no> || |no>
            |no>

        |yes> || |fish>
            |yes>

    see also:
        and, or, && 

Home