ECF 1.5
Public Member Functions | Public Attributes | List of all members
quantum::KetBra Struct Reference

Public Member Functions

 KetBra (int n)
 
void project ()
 
void print (std::ostream &f)
 
Complex trace (std::vector< Basis > &basis)
 
Complex trace ()
 

Public Attributes

std::vector< int > ket
 
std::vector< int > bra
 
Complex p
 

Detailed Description

Definition at line 62 of file Quantum.h.

Constructor & Destructor Documentation

◆ KetBra() [1/2]

quantum::KetBra::KetBra ( )
inline

Definition at line 64 of file Quantum.h.

◆ KetBra() [2/2]

quantum::KetBra::KetBra ( int  n)
inline

Definition at line 65 of file Quantum.h.

Member Function Documentation

◆ print()

void quantum::KetBra::print ( std::ostream &  f)
inline

Definition at line 85 of file Quantum.h.

◆ project()

void quantum::KetBra::project ( )
inline

Definition at line 77 of file Quantum.h.

◆ trace() [1/2]

Complex quantum::KetBra::trace ( )

Definition at line 96 of file Quantum.cpp.

◆ trace() [2/2]

Complex quantum::KetBra::trace ( std::vector< Basis > &  basis)

Definition at line 54 of file Quantum.cpp.

Member Data Documentation

◆ bra

std::vector<int> quantum::KetBra::bra

Definition at line 99 of file Quantum.h.

◆ ket

std::vector<int> quantum::KetBra::ket

Definition at line 99 of file Quantum.h.

◆ p

Complex quantum::KetBra::p

Definition at line 100 of file Quantum.h.


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