complex_check {qvirus} | R Documentation |
This function returns the class of the coefficients of a given qubit state object
complex_check(qstate_obj)
qstate_obj |
A qubit state object created using the qsimulatR package. |
Coefficients class of given qubit state object
library(qsimulatR)
ket1 <- qstate(nbits = 1, coefs = c(0, 1))
complex_check(ket1)