Package: qvirus 0.0.3

Juan Pablo Acuña González

qvirus: Quantum Computing for Analyzing CD4 Lymphocytes and Antiretroviral Therapy

Resources, tutorials, and code snippets dedicated to exploring the intersection of quantum computing and artificial intelligence (AI) in the context of analyzing Cluster of Differentiation 4 (CD4) lymphocytes and optimizing antiretroviral therapy (ART) for human immunodeficiency virus (HIV). With the emergence of quantum artificial intelligence and the development of small-scale quantum computers, there's an unprecedented opportunity to revolutionize the understanding of HIV dynamics and treatment strategies. This project leverages the R package 'qsimulatR' (Ostmeyer and Urbach, 2023, <https://CRAN.R-project.org/package=qsimulatR>), a quantum computer simulator, to explore these applications in quantum computing techniques, addressing the challenges in studying CD4 lymphocytes and enhancing ART efficacy.

Authors:Juan Pablo Acuña González [aut, cre, cph]

qvirus_0.0.3.tar.gz
qvirus_0.0.3.tar.gz(r-4.5-noble)qvirus_0.0.3.tar.gz(r-4.4-noble)
qvirus_0.0.3.tgz(r-4.4-emscripten)qvirus_0.0.3.tgz(r-4.3-emscripten)
qvirus.pdf |qvirus.html
qvirus/json (API)
NEWS

# Install 'qvirus' in R:
install.packages('qvirus', repos = 'https://cloud.r-project.org')

Bug tracker:https://github.com/juanv66x/qvirus/issues0 issues

Datasets:
  • cd_3 - Longitudinal CD4 Lymphocyte Counts for HIV Patients
  • vl_3 - Longitudinal Viral Load Values for HIV Patients

On CRAN:

Conda:

3.48 score 461 downloads 14 exports 114 dependencies

Last updated 5 months agofrom:56b2adcc18. Checks:2 OK, 1 NOTE. Indexed: no.

TargetResultLatest binary
Doc / VignettesOKMar 26 2025
R-4.5-linuxNOTEMar 26 2025
R-4.4-linuxOKMar 26 2025

Exports:complex_checkconjugate_transposecreate_interactionsestimate_payoffsInteractionClassificationmsenearest_payoffnormalize_checkpayoffs_listphen_hivpure_qubit1pure_qubit2simulate_entanglementsix_state

Dependencies:abindbackportsbase64encbootbroombslibcachemcarcarDatacliclustercolorspacecorrplotcowplotcpp11crosstalkdendextendDerivdigestdoBydplyrDTellipseemmeansestimabilityevaluatefactoextraFactoMineRfansifarverfastmapflashClustfontawesomeFormulafsgenericsggplot2ggpubrggrepelggsciggsignifgluegridExtragtablehighrhtmltoolshtmlwidgetshttpuvisobandjquerylibjsonliteknitrlabelinglaterlatticelazyevalleapslifecyclelme4magrittrMASSMatrixMatrixModelsmemoisemgcvmicrobenchmarkmimeminqamodelrmultcompViewmunsellmvtnormnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigplyrpolynompromisespurrrquantregR6rappdirsrbibutilsRColorBrewerRcppRcppEigenRdpackreformulasreshape2rlangrmarkdownrstatixsassscalesscatterplot3dSparseMstringistringrsurvivaltibbletidyrtidyselecttinytexutf8vctrsviridisviridisLitewithrxfunyaml

Applications

Rendered fromApplications.Rmdusingknitr::rmarkdownon Mar 26 2025.

Last update: 2024-08-27
Started: 2024-08-27

Entanglement

Rendered fromEntanglement.Rmdusingknitr::rmarkdownon Mar 26 2025.

Last update: 2024-08-27
Started: 2024-08-27

Introduction

Rendered fromIntroduction.Rmdusingknitr::rmarkdownon Mar 26 2025.

Last update: 2024-08-27
Started: 2024-08-27

Citation

To cite package ‘qvirus’ in publications use:

Acuña González J (2024). qvirus: Quantum Computing for Analyzing CD4 Lymphocytes and Antiretroviral Therapy. R package version 0.0.3, https://CRAN.R-project.org/package=qvirus.

Corresponding BibTeX entry:

  @Manual{,
    title = {qvirus: Quantum Computing for Analyzing CD4 Lymphocytes
      and Antiretroviral Therapy},
    author = {Juan Pablo {Acuña González}},
    year = {2024},
    note = {R package version 0.0.3},
    url = {https://CRAN.R-project.org/package=qvirus},
  }

Readme and manuals

qvirus

The goal of qvirus is to provide resources, tutorials, and code snippets dedicated to exploring the intersection of quantum computing and artificial intelligence (AI) in the context of HIV drug design.

Installation

You can install the development version of qvirus from GitHub with:

# install.packages("devtools")
devtools::install_github("juanv66x/qvirus")

Example

This is a basic example which shows you how to solve a common problem in quantum computing.

library(qvirus)
## basic example code

Creating a Hadamard gate: H(1).

#> An object of class "sqgate"
#> Slot "bit":
#> [1] 1
#> 
#> Slot "M":
#>              [,1]          [,2]
#> [1,] 0.7071068+0i  0.7071068+0i
#> [2,] 0.7071068+0i -0.7071068+0i
#> 
#> Slot "type":
#> [1] "H"

Applying a gate to a quantum state.

library(qsimulatR)
H(1)*six_state(1)[[1]]
#>    ( 0.7071068 ) * |0> 
#>  + ( 0.7071068 ) * |1>

Help Manual

Help pageTopics
Longitudinal CD4 Lymphocyte Counts for HIV Patients (2018-2024)cd_3
Check if Coefficients of a Qubit State Object are Complex Numberscomplex_check
Calculate the Conjugate Transpose of a Quantum Stateconjugate_transpose
Create Interactions from CD4 and Viral Load Datacreate_interactions
Estimate Payoff Parameters for HIV Phenotype Interactionsestimate_payoffs
Interaction Classification for Viral Load and CD4 DifferencesInteractionClassification
Mean Squared Errors for Interaction Classificationmse
Mean Squared Errors method for the InteractionClassification classmse.InteractionClassification
Find Nearest Payoffnearest_payoff
Normalize Check Function for qstate Class Objectnormalize_check
Generate Payoff List Based on Quantum Gates and Parameterspayoffs_list
Calculate Final State and Payoffs in Quantum Gamephen_hiv
Plot Interaction Differencesplot.interaction
Plot InteractionClassification Clustersplot.InteractionClassification
Print Summary of CD4 and Viral Load Differencesprint.interaction
Print Method for InteractionClassification Objectsprint.InteractionClassification
Create a normalized pure quantum state for a 1-qubit system.pure_qubit1
Create a normalized pure quantum state for a 2-qubit system.pure_qubit2
Simulate Entanglement Evolutionsimulate_entanglement
Create Six Important States on the Bloch Spheresix_state
Summary Method for Interaction Class Objectssummary.interaction
Summarize Interaction Classification Resultssummary.InteractionClassification
Summarize Payoffssummary.payoffs
Longitudinal Viral Load Values for HIV Patients (2018-2024)vl_3