R/sphericalket.R

Defines functions sphericalket

#' @export
sphericalket <- function(theta,phi){
	i <- complex(1,0,1)
	ket(cos(theta/2),exp(i*phi)*sin(theta/2))		#generate ket from spherical coordinates
}

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.