Learn R Programming

qsimulatR (version 1.1.1)

H: The Hadarmard gate

Description

The Hadarmard gate

Usage

H(bit)

Value

An S4 class 'sqgate' object is returned

Arguments

bit

integer. The bit to which to apply the gate

Examples

Run this code
x <- qstate(nbits=2)
z <- H(1) * x
z

Run the code above in your browser using DataLab