Learn R Programming

QuantumOps (version 3.0.1)

hermitian: hermitian

Description

Determines whether an operation (matrix) is hermitian by comparing it to its adjoint

Usage

hermitian(m)

Arguments

m

gate operation (gate) that is to be checked

Value

boolean indicating whether matrix is hermitian or not

Examples

Run this code
# NOT RUN {
 hermitian(matrix(c(0,1,1,0),nrow=2))
# }

Run the code above in your browser using DataLab