Skip to content
/ qvirus Public

❗ This is a read-only mirror of the CRAN R package repository. qvirus — Quantum Computing for Analyzing CD4 Lymphocytes and Antiretroviral Therapy. Homepage: https://github.com/juanv66x/qvirus Report bugs for this package: https://github.com/juanv66x/qvirus/issues

License

Notifications You must be signed in to change notification settings

cran/qvirus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

❗ This is a read-only mirror of the CRAN R package repository. qvirus — Quantum Computing for Analyzing CD4 Lymphocytes and Antiretroviral Therapy. Homepage: https://github.com/juanv66x/qvirus Report bugs for this package: https://github.com/juanv66x/qvirus/issues

Resources

License

Stars

Watchers

Forks

Packages

No packages published