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

This package can be loaded by Renjin but 2 out 62 tests failed.

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 , the Quantum Fourier Transform developed by Shor (1999), Shor's algorithm which factors numbers up to 21, Grover's algorithm (1996), the Quantum Approximation Optimization Algorithm (QAOA) (Farhi, Goldstone, and Gutmann 2014) , and the training of a quantum neural network developed by Schuld (2018) which can classify the MNIST dataset.

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>

View build log

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.

Source

R

View GitHub Mirror

Release History