complex_check {qvirus} | R Documentation |
Check if Coefficients of a Qubit State Object are Complex Numbers
Description
This function returns the class of the coefficients of a given qubit state object
Usage
complex_check(qstate_obj)
Arguments
qstate_obj |
A qubit state object created using the qsimulatR package. |
Value
Coefficients class of given qubit state object
Examples
library(qsimulatR)
ket1 <- qstate(nbits = 1, coefs = c(0, 1))
complex_check(ket1)
[Package qvirus version 0.0.2 Index]