qat.qpus.DLinAlg
- class qat.qpus.DLinAlg(*args, **kwargs)
DLinAlg simulator: start a subprocess calling the DLinAlg executable with the passed options
- Parameters:
nb_processes (int, optional) – number of MPI processes or number of nodes if a slurm environment is available
nb_processes_per_node (int, optional) – number of MPI processes per node if a slurm environment is available (default: 1)
nb_threads (int, optional) – number of threads per MPI process
filename (str, optional) – Set the name of the generated .batch and .res files if passed, else temporary files will be generated
state_vector_dump (str, optional) – Dump the state vector into a binary file with the string as name if passed
single_precision (bool, optional) – if True, the simulation will be done with single precision, else the simulation is done with double precision Default: False
skip_optimize (bool, optional) – if True, no optimization will be done for diagonal, permutation and SWAP operations Default: False
time (bool, optional) – if True, circuit simulation time information will be added for benchmark Default: False
use_GPU (bool, optional) – if True, the simulation will be done using GPUs Default: False
temp_dir (str, optional) – The directory of a temporary folder where a .batch file and a .res file can be written
mpi_args (list, optional) – Additional arguments to be passed to mpirun command
srun_args (list, optional) – Additional arguments to be passed to srun command
plugins (list<AbstractPlugin>) – plugins to be attached to the QPU instance
fusion (bool, optional) – if True, compile jobs with FusionPlugin before execution Default: True
localize (bool, optional) – if True, compile jobs with Localizer before execution Default: True
seed (int, optional) – if set, use the seed for the random number generator in sampling
chunk_size (int, optional) – chunk size for MPI communications