Learn R Programming

QCSimulator

This R package simulates a 5 qubit Quantum Computer QCSimulator can simulate the following quantum gates

1.Pauli X,Y,Z, S,S’, T, T’ gates 2. Rotation , Hadamard,CSWAP,Toffoli gates 3. 2,3,4,5 qubit CNOT gates e.g CNOT2_01,CNOT3_20,CNOT4_13 etc 4. Toffoli State,SWAPQ0Q1

For moe details on how to use QCSimulator see Introducing QCSimulator: A 5-qubit quantum computing simulator in R

Copy Link

Version

Install

install.packages('QCSimulator')

Monthly Downloads

164

Version

0.0.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Tinniam Ganesh

Last Published

July 2nd, 2016

Functions in QCSimulator (0.0.1)

CNOT2_10

2 qubit CNOT gate (control-1,target-0)
CNOT3_20

3 qubit CNOT gate (control-2,target-0)
CNOT3_12

3 qubit CNOT gate (control-1,target-2)
CNOT2_01

2 qubit CNOT gate (control-0,target-1)
CNOT3_01

3 qubit CNOT gate (control-0,target-1)
CNOT3_02

3 qubit CNOT gate (control-0,target-2)
CNOT3_21

3 qubit CNOT gate (control-2,target-1)
CNOT3_10

3 qubit CNOT gate (control-1,target-0)
CHadamard

controlled Hadamard Gate
CNOT4_01

4 qubit CNOT gate (control-0,target-1)
CNOT4_12

4 qubit CNOT gate (control-1,target-2)
CNOT4_20

4 qubit CNOT gate (control-2,target-0)
CNOT4_03

4 qubit CNOT gate (control-0,target-3)
CNOT4_31

4 qubit CNOT gate (control-3,target-1)
CNOT4_23

4 qubit CNOT gate (control-2,target-3)
CNOT4_13

4 qubit CNOT gate (control-1,target-3)
CNOT4_21

4 qubit CNOT gate (control-2,target-1)
CNOT4_10

4 qubit CNOT gate (control-1,target-0)
CNOT4_30

4 qubit CNOT gate (control-3,target-0)
CNOT4_02

4 qubit CNOT gate (control-0,target-2)
CNOT4_32

4 qubit CNOT gate (control-3,target-2)
CNOT5_12

5 qubit CNOT gate (control-1,target-2)
CNOT5_20

5 qubit CNOT gate (control-2,target-0)
CNOT5_02

5 qubit CNOT gate (control-0,target-2)
CNOT5_13

5 qubit CNOT gate (control-1,target-3)
CNOT5_03

5 qubit CNOT gate (control-0,target-3)
CNOT5_04

5 qubit CNOT gate (control-0,target-4)
CNOT5_01

5 qubit CNOT gate (control-0,target-1)
CNOT5_14

5 qubit CNOT gate (control-1,target-4)
CNOT5_10

5 qubit CNOT gate (control-1,target-0)
CNOT5_31

5 qubit CNOT gate (control-3,target-1)
CNOT5_42

5 qubit CNOT gate (control-4,target-2)
CNOT5_21

5 qubit CNOT gate (control-2,target-1)
CNOT5_24

5 qubit CNOT gate (control-2,target-4)
CNOT5_23

5 qubit CNOT gate (control-2,target-3)
CNOT5_41

5 qubit CNOT gate (control-4,target-1)
CNOT5_34

5 qubit CNOT gate (control-3,target-4)
CNOT5_30

5 qubit CNOT gate (control-3,target-0)
CNOT5_40

5 qubit CNOT gate (control-4,target-0)
CNOT5_32

5 qubit CNOT gate (control-3,target-2)
CNOT5_43

5 qubit CNOT gate (control-4,target-3)
CPauliX

Controlled Pauli X gate
init

Initialization
DotProduct

Dot product of 2 vectors
CPauliY

Controlled Pauli Y gate
CPauliZ

Controlled Pauli Z gate
innerProduct

Inner product of 2 vectors and computes the angle between vectors
GateDagger

Gate dagger of a vector
CSWAP

Controlled SWAP gate
Hadamard

Hadamard gate
RotationGate

This fucntion applies the rotation gate
plotMeasurement

This function plots the result of a measurement
S1Gate

Controlled S1Gate
Toffoli

Apply a Toffoli gate
SGate

Apply a SGate
ToffoliState

Apply a Toffoli state
PauliX

Controlled Pauli X gate
measurement

Computes the square of the modulus
TensorProd

Tensor product of 2 vectors
TGate

Apply a TGate
PauliZ

Controlled Pauli Z gate
PauliY

Controlled Pauli Y gate
T1Gate

Apply a T1Gate
SWAPQ0Q1

SWAP Q0 Q1