CUNQA
Contents:
Getting Started
Clone repository
Installation
QMIO
Finisterrae III (FT3)
Run your first distributed program
1.
qraise
command
2. Python Program Example
3.
qdrop
command
CUNQA module
cunqa.backend
cunqa.backend.Backend
cunqa.backend.BackendData
cunqa.circuit
Building circuits
Circuits by json
dict
format
cunqa.circuit.CunqaCircuit
cunqa.circuit.CunqaCircuitError
cunqa.converters
cunqa.converters.convert
cunqa.converters.ConvertersError
cunqa.mappers
Submitting circuits with classical or quantum communications
Mapping circuits to virtual QPUs in optimization problems
cunqa.mappers.run_distributed
cunqa.mappers.QJobMapper
cunqa.mappers.QPUCircuitMapper
cunqa.qjob
cunqa.qjob.gather
cunqa.qjob.QJob
cunqa.qjob.QJobError
cunqa.qpu
Virtual QPUs
Connecting to virtual QPUs
Interacting with virtual QPUs
cunqa.qpu.QPU
cunqa.qutils
Connecting to virtual QPUs
Q-raising and Q-dropping at pyhton
Obtaining information about virtual QPUs
cunqa.qutils.are_QPUs_raised
cunqa.qutils.get_QPUs
cunqa.qutils.info_QPUs
cunqa.qutils.nodes_with_QPUs
cunqa.qutils.qdrop
cunqa.qutils.qraise
cunqa.qutils.QRaiseError
cunqa.result
cunqa.result.Result
cunqa.result.ResultError
cunqa.transpile
cunqa.transpile.transpiler
cunqa.transpile.TranspileError
Examples gallery
Example for execution of multiple circuits in QPUs
Importing and adding paths to
sys.path
Let’s get the QPUs that we q-raised!
Let’s create a circuit to run in our QPUs!
Execution time! Let’s do it sequentially
Cool isn’t it? But this circuit is too simple, let’s try with a more complex one!
This circuit has 15 qubits and 10 intermidiate measurements, let’s run it in AerSimulator
Takes much longer … let’s parallelize n executions in n different QPUs
Examples for optimizations
Simply using the
QPU.run()
method
Using
QJob.upgrade_parameters()
Paralelization for gradient-free optimizers: Differential Evolution
QJobMapper
QPUCircuitMapper
Paralelization of expectation value terms
Paralelization for gradient optimizers
cloud_example
example_qraise
hpc_example
CUNQA
Index
Index
_
|
A
|
B
|
C
|
E
|
F
|
G
|
H
|
I
|
K
|
M
|
N
|
P
|
Q
|
R
|
S
|
T
|
U
|
V
|
X
|
Y
|
Z
_
__call__() (cunqa.mappers.QJobMapper method)
(cunqa.mappers.QPUCircuitMapper method)
__init__() (cunqa.backend.Backend method)
(cunqa.backend.BackendData method)
(cunqa.circuit.CunqaCircuit method)
(cunqa.mappers.QJobMapper method)
(cunqa.mappers.QPUCircuitMapper method)
(cunqa.qjob.QJob method)
(cunqa.qpu.QPU method)
(cunqa.result.Result method)
A
are_QPUs_raised() (in module cunqa.qutils)
assign_parameters() (cunqa.circuit.CunqaCircuit method)
B
Backend (class in cunqa.backend)
BackendData (class in cunqa.backend)
C
c_if() (cunqa.circuit.CunqaCircuit method)
ccx() (cunqa.circuit.CunqaCircuit method)
ccy() (cunqa.circuit.CunqaCircuit method)
ccz() (cunqa.circuit.CunqaCircuit method)
clear() (cunqa.backend.BackendData method)
convert() (in module cunqa.converters)
ConvertersError
copy() (cunqa.backend.BackendData method)
cp() (cunqa.circuit.CunqaCircuit method)
crx() (cunqa.circuit.CunqaCircuit method)
cry() (cunqa.circuit.CunqaCircuit method)
crz() (cunqa.circuit.CunqaCircuit method)
cswap() (cunqa.circuit.CunqaCircuit method)
csx() (cunqa.circuit.CunqaCircuit method)
cu() (cunqa.circuit.CunqaCircuit method)
cu1() (cunqa.circuit.CunqaCircuit method)
cu3() (cunqa.circuit.CunqaCircuit method)
cunqa.backend
module
cunqa.circuit
module
cunqa.converters
module
cunqa.mappers
module
cunqa.qjob
module
cunqa.qpu
module
cunqa.qutils
module
cunqa.result
module
cunqa.transpile
module
,
[1]
CunqaCircuit (class in cunqa.circuit)
CunqaCircuitError
cx() (cunqa.circuit.CunqaCircuit method)
cy() (cunqa.circuit.CunqaCircuit method)
cz() (cunqa.circuit.CunqaCircuit method)
E
ecr() (cunqa.circuit.CunqaCircuit method)
F
from_instructions() (cunqa.circuit.CunqaCircuit method)
fromkeys() (cunqa.backend.BackendData method)
G
gather() (in module cunqa.qjob)
get() (cunqa.backend.BackendData method)
get_QPUs() (in module cunqa.qutils)
H
h() (cunqa.circuit.CunqaCircuit method)
I
id() (cunqa.circuit.CunqaCircuit method)
info() (cunqa.backend.Backend method)
info_QPUs() (in module cunqa.qutils)
items() (cunqa.backend.BackendData method)
K
keys() (cunqa.backend.BackendData method)
M
measure() (cunqa.circuit.CunqaCircuit method)
measure_all() (cunqa.circuit.CunqaCircuit method)
measure_and_send() (cunqa.circuit.CunqaCircuit method)
module
cunqa.backend
cunqa.circuit
cunqa.converters
cunqa.mappers
cunqa.qjob
cunqa.qpu
cunqa.qutils
cunqa.result
cunqa.transpile
,
[1]
N
nodes_with_QPUs() (in module cunqa.qutils)
P
p() (cunqa.circuit.CunqaCircuit method)
pop() (cunqa.backend.BackendData method)
popitem() (cunqa.backend.BackendData method)
Q
qdrop() (in module cunqa.qutils)
QJob (class in cunqa.qjob)
QJobError
QJobMapper (class in cunqa.mappers)
QPU (class in cunqa.qpu)
QPUCircuitMapper (class in cunqa.mappers)
qraise() (in module cunqa.qutils)
QRaiseError
qrecv() (cunqa.circuit.CunqaCircuit method)
qsend() (cunqa.circuit.CunqaCircuit method)
R
r() (cunqa.circuit.CunqaCircuit method)
remote_c_if() (cunqa.circuit.CunqaCircuit method)
reset() (cunqa.circuit.CunqaCircuit method)
Result (class in cunqa.result)
result() (cunqa.qjob.QJob method)
ResultError
run() (cunqa.qpu.QPU method)
run_distributed() (in module cunqa.mappers)
rx() (cunqa.circuit.CunqaCircuit method)
rxx() (cunqa.circuit.CunqaCircuit method)
ry() (cunqa.circuit.CunqaCircuit method)
ryy() (cunqa.circuit.CunqaCircuit method)
rz() (cunqa.circuit.CunqaCircuit method)
rzx() (cunqa.circuit.CunqaCircuit method)
rzz() (cunqa.circuit.CunqaCircuit method)
S
s() (cunqa.circuit.CunqaCircuit method)
sdg() (cunqa.circuit.CunqaCircuit method)
setdefault() (cunqa.backend.BackendData method)
submit() (cunqa.qjob.QJob method)
swap() (cunqa.circuit.CunqaCircuit method)
sx() (cunqa.circuit.CunqaCircuit method)
sxdg() (cunqa.circuit.CunqaCircuit method)
T
t() (cunqa.circuit.CunqaCircuit method)
tdg() (cunqa.circuit.CunqaCircuit method)
TranspileError
transpiler() (in module cunqa.transpile)
U
u() (cunqa.circuit.CunqaCircuit method)
u1() (cunqa.circuit.CunqaCircuit method)
u2() (cunqa.circuit.CunqaCircuit method)
u3() (cunqa.circuit.CunqaCircuit method)
unitary() (cunqa.circuit.CunqaCircuit method)
update() (cunqa.backend.BackendData method)
upgrade_parameters() (cunqa.qjob.QJob method)
V
values() (cunqa.backend.BackendData method)
X
x() (cunqa.circuit.CunqaCircuit method)
Y
y() (cunqa.circuit.CunqaCircuit method)
Z
z() (cunqa.circuit.CunqaCircuit method)