CRAN
QuantumOps 2.5.2
Performs Common Linear Algebra Operations Used in Quantum Computing and Implements Quantum Algorithms
Released May 6, 2019 by Salonik Resch
Contains basic structures and operations used frequently in quantum computing. Intended to be a convenient tool to help in practicing the linear algebra involved in quantum operations. Has functionality for the creation of arbitrarily sized kets, bras, matrices and implements quantum gates, inner products, and tensor products. Contains all commonly used quantum gates, creates arbitrarily controlled versions of all gates, and can simulate complete or partial measurements of kets. Implements modular arithmetic commonly found in quantum algorithms and can convert functions into equivalent quantum gates. It can also simulate larger applications, including Steane error correction
Installation
Maven
This package can be included as a dependency from a Java or Scala project by including
the following your project's pom.xml
file.
Read more
about embedding Renjin in JVM-based projects.
<dependencies> <dependency> <groupId>org.renjin.cran</groupId> <artifactId>QuantumOps</artifactId> <version>2.5.2-b1</version> </dependency> </dependencies> <repositories> <repository> <id>bedatadriven</id> <name>bedatadriven public repo</name> <url>https://nexus.bedatadriven.com/content/groups/public/</url> </repository> </repositories>
Renjin CLI
If you're using Renjin from the command line, you load this library by invoking:
library('org.renjin.cran:QuantumOps')
Test Results
This package was last tested against Renjin 0.9.2726 on May 7, 2019.
- BELL-examples
- CFA-examples
- CX-examples
- CY-examples
- CZ-examples
- G-examples
- GroverDiffusion-examples
- GroverOracle-examples
- GroversAlgorithm-examples
- H-examples
- I-examples
- QAOA-examples
- QAOA_maxcut-examples
- QFT-examples
- R-examples
- Rx-examples
- Ry-examples
- Rz-examples
- S-examples
- SWAP-examples
- Shor-examples
- Steane-examples
- T-examples
- TOFFOLI-examples
- U-examples
- Uf-examples
- X-examples
- Y-examples
- Z-examples
- addmod2-examples
- adjoint-examples
- bra-examples
- checkCases-examples
- cntrld-examples
- colv-examples
- compareQuantumState-examples
- controlled-examples
- convert_bin2dec-examples
- convert_dec2bin-examples
- dirac-examples
- dist-examples
- dotmod2-examples
- exponentialMod-examples
- hermitian-examples
- inner-examples
- intket-examples
- ket-examples
- many-examples
- measure-examples
- mm-examples
- norm-examples
- plotprobs-examples
- pp-examples
- probs-examples
- randomConnectionMatrix-examples
- reduceMeasure-examples
- single-examples
- singleSWAP-examples
- swapTest-examples
- teleport-examples
- tensor-examples
- unitary-examples