qat.qpus.DNoisy
- class qat.qpus.DNoisy(*args, fusion=True, localize=True, hardware_model=<qat.hardware.default.DefaultHardwareModel object>, sim_method='deterministic', tol_spam_reconstruction=1e-10, **kwargs)
DNoisy simulator: start a subprocess calling the DLinAlg executable with the passed options for noisy simulation
- 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
hardware_model (
HardwareModel, optional) – The hardware model describing the hardware (gates + noise environment)sim_method (string, optional) – simulation method (only deterministic mode is supported in the current version) Default: “deterministic”.
tol_spam_reconstruction (float, optional) – tolerance on determination of equivalent noise channel for measure/state prep Default: 1e-10
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