qat.qpus.LinAlg

class qat.qpus.LinAlg(gpu_group_size=11, gpu_buffer_size=9, group_size=4, feynman_factor=0, plugins=None, use_GPU=False, precision=2, extract_causal_cones=False, density_matrix=False, sparse=None, gpu_index=0, fusion=True)

LinearAlgebra simulator

Parameters
  • sparse (bool) – whether to try and return a sparse result object

  • use_GPU (bool, optional) – execute the code on a GPU. Default to False

  • gpu_index (int, optional) – index of the GPU to use (ignored if resource manager is enabled - resource manager will select automatically the GPU index)

  • group_size (int, optional) – size of gate groups. Default to 4

  • feynman_factor (int, optional) – number of initial gates to be handled by qat.feynman. Default to 0

  • fusion (bool, optional) – if True, compile circuits with FusionPlugin before execution. Compilation is only performed for circuits of at least 20 qubits for CPU simulations and circuits of at least 23 qubits for GPU simulations. Default to True