Learn R Programming

QuantumOps (version 3.0.1)

H: H

Description

If no argument is supplied, returns the matrix of H gate. If ket given as input, applies an H gate to the input ket and returns the resulting ket

Usage

H(...)

Arguments

...

No argument, or ket (column vector) that is input to the gate

Value

Matix of the H gate or ket after a Hgate is applied

Examples

Run this code
# NOT RUN {
 H(ket(1,0))
 H()
# }

Run the code above in your browser using DataLab