pure_qubit1 {qvirus} | R Documentation |
Create a normalized pure quantum state for a 1-qubit system.
pure_qubit1(theta, phi, spherical = FALSE)
theta |
The parameter theta in radians. |
phi |
The parameter phi in radians. |
spherical |
Whether to return coordinates in spherical form (default is FALSE). |
A qstate object representing the normalized pure quantum state for a 1-qubit system.
# Quantum simulator
library(qsimulatR)
# Define the parameters
theta <- pi/4
phi <- pi/6
# Create the quantum state
psi_qubit1 <- pure_qubit1(theta, phi)
psi_qubit1