R/CZ.R

Defines functions CZ

Documented in CZ

#' @export
CZ <- function(...){
	CZ <- mm(1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,-1)
	ket <- list(...)
	if(length(ket) == 0){
		CZ
	} else {
		CZ %*% ket[[1]]
	}
}

Try the QuantumOps package in your browser

Any scripts or data that you put into this service are public.

QuantumOps documentation built on Feb. 3, 2020, 5:07 p.m.