H: The Hadarmard gate

View source: R/sqgate.R

HR Documentation

The Hadarmard gate

Description

The Hadarmard gate

Usage

H(bit)

Arguments

bit

integer. The bit to which to apply the gate

Value

An S4 class 'sqgate' object is returned

Examples

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


qsimulatR documentation built on Oct. 16, 2023, 5:06 p.m.