Learn R Programming

QuantumOps (version 3.0.1)

Performs Common Linear Algebra Operations Used in Quantum Computing and Implements Quantum Algorithms

Description

Contains basic structures and operations used frequently in quantum computing. Intended to be a convenient tool to help learn quantum mechanics and algorithms. Can create arbitrarily sized kets and bras and implements quantum gates, inner products, and tensor products. Creates arbitrarily controlled versions of all gates and can simulate complete or partial measurements of kets. Has functionality to convert functions into equivalent quantum gates and model quantum noise. Includes larger applications, such as Steane error correction , Quantum Fourier Transform and Shor's algorithm (Shor 1999), Grover's algorithm (1996), Quantum Approximation Optimization Algorithm (QAOA) (Farhi, Goldstone, and Gutmann 2014) , and a variational quantum classifier (Schuld 2018) . Can be used with the gridsynth algorithm to perform decomposition into the Clifford+T set.

Copy Link

Version

Install

install.packages('QuantumOps')

Monthly Downloads

210

Version

3.0.1

License

GPL-3

Maintainer

Salonik Resch

Last Published

February 3rd, 2020

Functions in QuantumOps (3.0.1)

CY

CY
S

S
SWAP

SWAP
Shor

Shor
bra

bra
checkCases

checkCases
convert_bin2dec

convert_bin2dec
convert_dec2bin

convert_dec2bin
nBitAddition

nBitAddition
norm

norm
pp

pp
probs

probs
CFA

CFA
CX

CX
PauliNoise

PauliNoise
QAOA_maxcut

QAOA_maxcut
I

I
Steane

Steane
QFT

QFT
SteaneCorrect

SteaneCorrect
convert_ket2DM

convert_ket2DM
inner

inner
adjoint

adjoint
addmod2

addmod2
dirac

dirac
AmplitudeDamping

AmplitudeDamping
BELL

BELL
QAOA

QAOA
H

H
RandomizeCompile

RandomizeCompile
CoherentNoise

CoherentNoise
GroversAlgorithm

GroversAlgorithm
DecomposeGate

DecomposeGate
SynthesizeCircuit

SynthesizeCircuit
R

R
G

G
FullAdder

FullAdder
GroverOracle

GroverOracle
intket

intket
QAOA_example

QAOA_example
Ry

Ry
Rx

Rx
GroverDiffusion

GroverDiffusion
QuantumClassifier

QuantumClassifier
QuantumMNIST256Classifier

QuantumMNIST256Classifier
Uf

Uf
repeatTensor

repeatTensor
cntrld

cntrld
reduceMeasure

reduceMeasure
T

T
dist

dist
X

X
colv

colv
dotmod2

dotmod2
U

U
TOFFOLI

TOFFOLI
compareQuantumState

compareQuantumState
controlled

controlled
exponentialMod

exponentialMod
swapTest

swapTest
opDM

opDM
extractMNIST

extractMNIST
plotprobs

plotprobs
teleport

teleport
Y

Y
hermitian

hermitian
Z

Z
gcd

gcd
ket

ket
measure

measure
single

single
many

many
testGate

testGate
mm

mm
randomConnectionMatrix

randomConnectionMatrix
unitary

unitary
tensor

tensor
ranket

ranket
singleSWAP

singleSWAP
CZ

CZ
Rz

Rz
PauliOperators

PauliOperators
PhaseDamping

PhaseDamping