coerce_Re: coerce_Re

Description Usage Arguments Value Examples

View source: R/coerce_Re.R

Description

coerce_Re

Usage

1

Arguments

frame

A 2 x 2 data frame (such as a pauli or pauli_d object)

Value

A 2 x 2 data frame where with all real entries if Im(frame) == 0 for all cells; or else, a 2 x 2 data frame with complex entries

Examples

1
2
3
#The opop function uses the coerce_Re function on each data frame
pf <- pauli()
pf2 <- opop(pf, function(x)x^2 - 1)

mncube/pauliframes documentation built on Dec. 21, 2021, 8:07 p.m.