qraise
Raise one or more vQPUs with a well defined configuration.
The qraise command is used to deploy a set of virtual QPUs with a given configuration,
including computational resources, backend selection, and communication capabilities.
The raised vQPUs can subsequently be used to execute quantum circuits within the CUNQA
framework.
Synopsis
qraise [OPTIONS]
Options
General deployment options
-n, --num-qpus <int>Mandatory. Number of QPUs to be raised.
-t, --time <string>Mandatory. Time during which the QPUs will remain active.
-c, --cores-per-qpu <int>Number of CPU cores assigned to each QPU. Default:
2-p, --partition <string>Partition requested for the QPUs.
--mem, --mem-per-qpu <size>Amount of memory assigned to each QPU. Accepts a unit suffix
K,M,GorT(optionally followed byB) and decimal values, e.g.512M,1.5Gor2GB. A value without suffix is read as GB. The memory is computed in MB and rounded up; the minimum is256M. Default:15G-N, --n-nodes <int>Number of compute nodes used to deploy the QPUs. Default:
1--nodelist <string>List of nodes where the QPUs will be deployed. Multiple nodes can be specified at a time.
--qpuN, --qpus-per-node <int>Number of QPUs deployed on each node.
Backend and simulation options
Grouping and communication options
--family <string>Name used to identify the group of QPUs that were raised together. Default:
default--co-locatedEnable co-located mode. If set, the vQPU can be accesed from any node. Otherwise, the user can only access it from the node it is deployed on.
--classical_commEnable classical communications between QPUs.
--quantum_commEnable quantum communications between QPUs.
--executor-cores <int>Only with
--quantum_comm. Number of cores of the shared simulator process. Default:n * (cores-per-qpu - 1).
GPU execution
--gpuEnable GPU execution. The quantum simulation will be performed on GPU.
--gpu-name <string>Name (type) of the GPU to request for the execution (e.g.
a100,t4).
Real QPU
--qmioDeploys the real quantum computer QMIO located at CESGA’s installations, allowing hybrid DQC infrastructures.
Basic usage
Command that deploys 2 vQPUs with classical communications, for 10 minutes and accessible from any node:
qraise -n 2 -t 00:10:00 --classical_comm --co-located
Resources with quantum communications
With --quantum_comm the family runs on a single node as n lightweight vQPU servers plus
one shared simulator process, and the job reserves exactly what these two parts need:
Cores: one per server plus
--executor-coresfor the simulator. By default this isn * cores-per-qpu, so--cores-per-qpumust be at least2unless--executor-coresis given.Memory:
n * mem-per-qpu. Each server takes a quarter of--mem-per-qpu(between128Mand1G) and the simulator gets the rest.
For small vQPUs the footprint can be reduced a lot. This deploys 3 vQPUs with 4 cores and 1.5 GB in total:
qraise -n 3 -t 01:00:00 --quantum_comm --co-located --mem-per-qpu=512M --executor-cores=1