ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
trotter_gate< Matrix, SymmGroup > Struct Template Reference

#include <tevol_nn_sim.h>

Public Types

typedef std::vector< long > idx_t
 
typedef std::vector
< block_matrix< Matrix,
SymmGroup > > 
vgates_t
 

Public Member Functions

 trotter_gate (std::size_t L)
 
void add_term (std::size_t p, block_matrix< Matrix, SymmGroup > const &block)
 
void clear ()
 

Public Attributes

std::size_t pfirst
 
idx_t idx
 
vgates_t vgates
 

Detailed Description

template<class Matrix, class SymmGroup>
struct trotter_gate< Matrix, SymmGroup >

Definition at line 40 of file tevol_nn_sim.h.

Member Typedef Documentation

template<class Matrix , class SymmGroup >
typedef std::vector<long> trotter_gate< Matrix, SymmGroup >::idx_t

Definition at line 41 of file tevol_nn_sim.h.

template<class Matrix , class SymmGroup >
typedef std::vector<block_matrix<Matrix, SymmGroup> > trotter_gate< Matrix, SymmGroup >::vgates_t

Definition at line 42 of file tevol_nn_sim.h.

Constructor & Destructor Documentation

template<class Matrix , class SymmGroup >
trotter_gate< Matrix, SymmGroup >::trotter_gate ( std::size_t  L)
inline

Definition at line 48 of file tevol_nn_sim.h.

48 : idx(L, -1) { }

Member Function Documentation

template<class Matrix , class SymmGroup >
void trotter_gate< Matrix, SymmGroup >::add_term ( std::size_t  p,
block_matrix< Matrix, SymmGroup > const &  block 
)
inline

Definition at line 50 of file tevol_nn_sim.h.

51  {
52  assert(idx[p] == -1);
53  vgates.push_back(block);
54  idx[p] = vgates.size()-1;
55  }
vgates_t vgates
Definition: tevol_nn_sim.h:46
template<class Matrix , class SymmGroup >
void trotter_gate< Matrix, SymmGroup >::clear ( )
inline

Definition at line 57 of file tevol_nn_sim.h.

58  {
59  vgates.clear();
60  idx = idx_t(idx.size(), -1);
61  pfirst = 0;
62  }
vgates_t vgates
Definition: tevol_nn_sim.h:46
std::size_t pfirst
Definition: tevol_nn_sim.h:44
std::vector< long > idx_t
Definition: tevol_nn_sim.h:41

Member Data Documentation

template<class Matrix , class SymmGroup >
idx_t trotter_gate< Matrix, SymmGroup >::idx

Definition at line 45 of file tevol_nn_sim.h.

template<class Matrix , class SymmGroup >
std::size_t trotter_gate< Matrix, SymmGroup >::pfirst

Definition at line 44 of file tevol_nn_sim.h.

template<class Matrix , class SymmGroup >
vgates_t trotter_gate< Matrix, SymmGroup >::vgates

Definition at line 46 of file tevol_nn_sim.h.


The documentation for this struct was generated from the following file: