Constructors

The class provides different constructors for Basis class as a template parameter and for the State class as a template parameter:

Warning

The length of the system has to be smaller or equal than the MaxSites of the State class.

danceq::internal::Operator::Operator(const uint64_t L_, const uint64_t n_)

Constructor with T as a Basis and given system size and particle number.

Initiates an Operator with an instance of the BasisU1 with system size L_ and particle number n_ using the Basis constructor without defining the number of subsystems. Template T has to refer to the Basis_class otherwise the constructor can not be used.

It calls add_default_operators() to add the default operators to available operators. It sets delete_basisptr to true such that the created basisptr is deleted.

Parameters:
  • L_ – System size

  • n_ – Particle number

danceq::internal::Operator::Operator(const uint64_t L_)

Constructor with T as State class.

Initiates an Operator for a given length L_. Template T has to refer to State class otherwise the constructor can not be used.

It calls add_default_operators() to add the default operators to available operators.

Parameters:

L_ – System size

danceq::internal::Operator::Operator(const T &basis)

Constructor with T as a Basis.

Initiates an Operator from a given Basis_class. Template T has to refer to the Basis_class otherwise the constructor can not be used.

It calls add_default_operators() to add the default operators to available operators. It sets delete_basisptr to false such that the created basisptr is not deleted.

Parameters:

basis – Reference to the basis

danceq::internal::Operator::~Operator()

Deconstructor.

Deletes the basisptr if delete_basisptr is true.