GQCP
Loading...
Searching...
No Matches
GSQOneElectronOperator.hpp
Go to the documentation of this file.
1// This file is part of GQCG-GQCP.
2//
3// Copyright (C) 2017-2020 the GQCG developers
4//
5// GQCG-GQCP is free software: you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// GQCG-GQCP is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU Lesser General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with GQCG-GQCP. If not, see <http://www.gnu.org/licenses/>.
17
18#pragma once
19
20
29
30
31namespace GQCP {
32
33
40template <typename _Scalar, typename _Vectorizer>
42 public SimpleSQOneElectronOperator<_Scalar, _Vectorizer, GSQOneElectronOperator<_Scalar, _Vectorizer>> {
43public:
44 // The scalar type used for a single parameter: real or complex.
45 using Scalar = _Scalar;
46
47 // The type of the vectorizer that relates a one-dimensional storage of matrices to the tensor structure of one-electron operators. This allows for a distinction between scalar operators (such as the kinetic energy operator), vector operators (such as the spin operator) and matrix/tensor operators (such as quadrupole and multipole operators).
48 using Vectorizer = _Vectorizer;
49
50 // The spinor tag corresponding to a `GSQOneElectronOperator`.
52
53public:
54 /*
55 * MARK: Constructors
56 */
57
58 // Inherit `SimpleSQOneElectronOperator`'s constructors.
59 using SimpleSQOneElectronOperator<_Scalar, _Vectorizer, GSQOneElectronOperator<_Scalar, _Vectorizer>>::SimpleSQOneElectronOperator;
60
61
62 /*
63 * MARK: Named constructors
64 */
65
72
73 // We can just wrap the one-electron integrals into the correct class.
74 const StorageArray<SquareMatrix<Scalar>, Vectorizer> array {f_component.allParameters(), f_component.vectorizer()};
76 }
77};
78
79
80/*
81 * MARK: Convenience aliases
82 */
83
84// A scalar-like GSQOneElectronOperator, i.e. with scalar-like access.
85template <typename Scalar>
87
88// A vector-like GSQOneElectronOperator, i.e. with vector-like access.
89template <typename Scalar>
91
92// A matrix-like GSQOneElectronOperator, i.e. with matrix-like access.
93template <typename Scalar>
95
96// A tensor-like GSQOneElectronOperator, i.e. with tensor-like access.
97template <typename Scalar, size_t N>
99
100
101/*
102 * MARK: Operator traits
103 */
104
111template <typename Scalar, typename Vectorizer>
112struct OperatorTraits<GSQOneElectronOperator<Scalar, Vectorizer>> {
113
114 // A type that corresponds to the scalar version of the associated general(ized) one-electron operator type.
116
117 // The type of transformation that is naturally associated to a general(ized) one-electron operator.
119
120 // The type of the one-particle density matrix that is naturally associated to a general(ized) one-electron operator.
122
123 // The type of the two-particle density matrix that is naturally associated a restricted one-electron operator.
125
126 // The type used to encapsulate the Mulliken domain.
128};
129
130
131/*
132 * MARK: BasisTransformableTraits
133 */
134
141template <typename Scalar, typename Vectorizer>
143
144 // The type of transformation that is naturally associated to a `GSQOneElectronOperator`.
146};
147
148
149/*
150 * MARK: JacobiRotatableTraits
151 */
152
156template <typename Scalar, typename Vectorizer>
158
159 // The type of Jacobi rotation for which the Jacobi rotation should be defined.
161};
162
163
164} // namespace GQCP
Definition: G1DM.hpp:41
Definition: G2DM.hpp:42
Definition: GMullikenDomain.hpp:35
Definition: GSQOneElectronOperator.hpp:42
_Vectorizer Vectorizer
Definition: GSQOneElectronOperator.hpp:48
_Scalar Scalar
Definition: GSQOneElectronOperator.hpp:45
static GSQOneElectronOperator< Scalar, Vectorizer > FromUnrestrictedComponent(const USQOneElectronOperatorComponent< Scalar, Vectorizer > &f_component)
Definition: GSQOneElectronOperator.hpp:71
Definition: spinor_tags.hpp:47
Definition: JacobiRotation.hpp:33
const std::vector< MatrixRepresentation > & allParameters() const
Definition: SQOperatorStorageBase.hpp:221
const Vectorizer & vectorizer() const
Definition: SQOperatorStorageBase.hpp:282
StorageArray< MatrixRepresentation, Vectorizer > array
Definition: SQOperatorStorageBase.hpp:68
Definition: SimpleSQOneElectronOperator.hpp:43
Definition: StorageArray.hpp:38
Definition: USQOneElectronOperatorComponent.hpp:40
Definition: BaseOneElectronIntegralBuffer.hpp:25
Definition: BasisTransformable.hpp:37
Definition: JacobiRotatable.hpp:37
Definition: OperatorTraits.hpp:28