pure_qubit2 {qvirus}R Documentation

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

Description

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

Usage

pure_qubit2(theta1, theta2, phi1, phi2)

Arguments

theta1

The parameter theta1 in radians for the first qubit.

theta2

The parameter theta2 in radians for the second qubit.

phi1

The phase parameter phi1 in radians for the first qubit.

phi2

The phase parameter phi2 in radians for the second qubit.

Value

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

Examples

#' 
# Quantum simulator
library(qsimulatR)
# Define the parameters
theta1 <- pi/3
theta2 <- pi/4
phi1 <- pi/6
phi2 <- pi/5

# Create the quantum state
psi_qubit2 <- pure_qubit2(theta1, theta2, phi1, phi2)
psi_qubit2

[Package qvirus version 0.0.3 Index]