An Introduction To The Quantum Simulator QCL: Rafael Trapani Possignolo
An Introduction To The Quantum Simulator QCL: Rafael Trapani Possignolo
QCL intro
1 / 30
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
2 / 30
Installation
Table of Contents
1
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
3 / 30
Installation
Installation
QCL intro
4 / 30
Getting Started
Table of Contents
1
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
5 / 30
Getting Started
Simple examples
Table of Contents
1
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
6 / 30
Getting Started
Simple examples
Embedded Examples
QCL intro
7 / 30
Getting Started
Simple examples
Embedded Examples
QCL intro
7 / 30
Getting Started
Simple examples
Embedded Examples
QCL intro
7 / 30
Getting Started
Simulation Limits
Table of Contents
1
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
8 / 30
Getting Started
Simulation Limits
Questions
QCL intro
9 / 30
Getting Started
Simulation Limits
Questions
QCL intro
9 / 30
Getting Started
Simulation Limits
Questions
QCL intro
9 / 30
Getting Started
QCL Code
Table of Contents
1
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
10 / 30
Getting Started
QCL Code
QCL intro
11 / 30
Getting Started
QCL Code
QCL intro
11 / 30
Getting Started
QCL Code
QCL intro
11 / 30
Getting Started
QCL Code
QCL intro
11 / 30
Table of Contents
1
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
12 / 30
First Examples
QCL intro
13 / 30
Measurement
Table of Contents
1
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
14 / 30
Measurement
Measurement
declare qubit a
reset;
measure a;
make a measure on a
QCL intro
15 / 30
Measurement
measure a;
What is the output? Is this deterministic? (try re-typing this three
commands some times).
QCL intro
16 / 30
Entanglement
Table of Contents
1
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
17 / 30
Entanglement
Simple Entanglement
flip b if a is |1i
QCL intro
18 / 30
Entanglement
Bell states
CNot(b,a);
This is the
states?
| i
flip b if a is |1i
QCL intro
19 / 30
Table of Contents
1
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
20 / 30
A simple script
Table of Contents
1
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
21 / 30
A simple script
A simple script
Now save, open the qcl environment, and call include teste.qcl.
QCL intro
22 / 30
A simple script
A simple procedure
Now we will use the procedure feature:
Create a procedure.qcl file, containing:
include shor.qcl;
procedure callShor(int x){
shor(x);
}
Now save, open the qcl environment, and call include procedure.qcl.
You will have to call callShor(15) to run the script.
QCL intro
23 / 30
Toffoli Gate
Table of Contents
1
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
24 / 30
Toffoli Gate
QCL intro
25 / 30
Toffoli Gate
QCL intro
25 / 30
Toffoli Gate
QCL intro
26 / 30
Toffoli Gate
QCL intro
26 / 30
Toffoli Gate
QCL intro
26 / 30
More on syntax
Table of Contents
1
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
27 / 30
More on syntax
Table of Contents
1
Installation
Getting Started
Simple examples
Simulation Limits
QCL Code
More on syntax
Some helpful structures
QCL intro
28 / 30
More on syntax
Conditional:
if a and (b or c) { do something }
else { do something else };
For loop:
for i=1 to N { do something }
While loop:
{ do something } until (some condition);
Do and undo transform:
H(a); !H(a);
Length of qureg a:
#a
Rafael Trapani Possignolo (SEMBEI)
QCL intro
29 / 30
More on syntax
QCL intro
30 / 30