// // BAGEL - Brilliantly Advanced General Electronic Structure Library // Filename: product_modelci.h // Copyright (C) 2014 Toru Shiozaki // // Author: Shane Parker // Maintainer: Shiozaki group // // This file is part of the BAGEL package. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . // #ifndef __BAGEL_ASD_DMRG_PRODUCT_MODELCI_H #define __BAGEL_ASD_DMRG_PRODUCT_MODELCI_H #include #include #include namespace bagel { namespace PCI { struct Basis : public BlockKey { std::bitset alpha; std::bitset beta; int state; Basis(const BlockKey K, const int i, const std::bitset a, const std::bitset b) : BlockKey(K), alpha(a), beta(b), state(i) {} BlockKey key() const { return BlockKey(this->nelea, this->neleb); } }; } class ProductCIHamiltonian : public Matrix { protected: std::vector basis_; std::shared_ptr blockops_; std::shared_ptr jop_; public: ProductCIHamiltonian(std::vector& b, std::shared_ptr blockops, std::shared_ptr jop); }; class ProductCISpin : public Matrix { protected: std::vector basis_; std::shared_ptr left_; public: ProductCISpin(std::vector& b, std::shared_ptr left, const int norb); }; } #endif