pure_qubit1 {qvirus}R Documentation

Create a normalized pure quantum state for a 1-qubit system.

Description

Create a normalized pure quantum state for a 1-qubit system.

Usage

pure_qubit1(theta, phi, spherical = FALSE)

Arguments

theta

The parameter theta in radians.

phi

The parameter phi in radians.

spherical

Whether to return coordinates in spherical form (default is FALSE).

Value

A qstate object representing the normalized pure quantum state for a 1-qubit system.

Examples

# 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

[Package qvirus version 0.0.2 Index]