-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclassSinusoidState.html
454 lines (448 loc) · 44.6 KB
/
classSinusoidState.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Massively Parallel Trotter-Suzuki Solver: SinusoidState Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="vortex.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Massively Parallel Trotter-Suzuki Solver
 <span id="projectnumber">1.6.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="md_download.html"><span>Download and Installation</span></a></li>
<li><a href="md_tutorial.html"><span>Tutorial</span></a></li>
<li><a href="md_TSapproximation.html"><span>Mathematical Details</span></a></li>
<li><a href="md_examples.html"><span>Examples</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="md_changes.html"><span>Revision History</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pri-methods">Private Member Functions</a> |
<a href="#pri-attribs">Private Attributes</a> |
<a href="classSinusoidState-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">SinusoidState Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>This class defines a quantum state with sinusoidal like wave function.
<a href="classSinusoidState.html#details">More...</a></p>
<p><code>#include <<a class="el" href="trottersuzuki_8h_source.html">trottersuzuki.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for SinusoidState:</div>
<div class="dyncontent">
<div class="center">
<img src="classSinusoidState.png" usemap="#SinusoidState_map" alt=""/>
<map id="SinusoidState_map" name="SinusoidState_map">
<area href="classState.html" title="This class defines the quantum state. " alt="State" shape="rect" coords="0,0,88,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa7bcbef964e336cb3aa7a45369db5020"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSinusoidState.html#aa7bcbef964e336cb3aa7a45369db5020">SinusoidState</a> (<a class="el" href="classLattice1D.html">Lattice1D</a> *<a class="el" href="classState.html#a05cc240880b62480836b735c128a46d2">grid</a>, int n_x=1, double norm=1, double <a class="el" href="classSinusoidState.html#a38177991dd0b7fbaff89fbc8113730aa">phase</a>=0, double *<a class="el" href="classState.html#aa136418a4aeb94dd43f36abdfc6d601b">p_real</a>=0, double *<a class="el" href="classState.html#aed69f02d92f9853d8c195c3041ac765f">p_imag</a>=0)</td></tr>
<tr class="separator:aa7bcbef964e336cb3aa7a45369db5020"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4ffa76763d11b7b40722c1a331c82d87"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classSinusoidState.html#a4ffa76763d11b7b40722c1a331c82d87">SinusoidState</a> (<a class="el" href="classLattice2D.html">Lattice2D</a> *<a class="el" href="classState.html#a05cc240880b62480836b735c128a46d2">grid</a>, int n_x=1, int <a class="el" href="classSinusoidState.html#a2d15cbf89eb65711e0cbe751f9a074bf">n_y</a>=1, double norm=1, double <a class="el" href="classSinusoidState.html#a38177991dd0b7fbaff89fbc8113730aa">phase</a>=0, double *<a class="el" href="classState.html#aa136418a4aeb94dd43f36abdfc6d601b">p_real</a>=0, double *<a class="el" href="classState.html#aed69f02d92f9853d8c195c3041ac765f">p_imag</a>=0)</td></tr>
<tr class="separator:a4ffa76763d11b7b40722c1a331c82d87"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classState"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classState')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classState.html">State</a></td></tr>
<tr class="memitem:aa31ba550fd06d5408a69e9e69b6f2e60 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#aa31ba550fd06d5408a69e9e69b6f2e60">State</a> (Lattice *<a class="el" href="classState.html#a05cc240880b62480836b735c128a46d2">grid</a>, int <a class="el" href="classState.html#a25d1401ca844b5a831ab1a96948b967b">angular_momentum</a>=0, double *<a class="el" href="classState.html#aa136418a4aeb94dd43f36abdfc6d601b">p_real</a>=0, double *<a class="el" href="classState.html#aed69f02d92f9853d8c195c3041ac765f">p_imag</a>=0)</td></tr>
<tr class="separator:aa31ba550fd06d5408a69e9e69b6f2e60 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a96b36bab7c989a747c1fed7886bf8dcf inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a96b36bab7c989a747c1fed7886bf8dcf">State</a> (const <a class="el" href="classState.html">State</a> &obj)</td></tr>
<tr class="memdesc:a96b36bab7c989a747c1fed7886bf8dcf inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Copy constructor: copy the state object. <a href="#a96b36bab7c989a747c1fed7886bf8dcf">More...</a><br /></td></tr>
<tr class="separator:a96b36bab7c989a747c1fed7886bf8dcf inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afab438d92b90dc18d194dbd9c9c8bab3 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afab438d92b90dc18d194dbd9c9c8bab3"></a>
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#afab438d92b90dc18d194dbd9c9c8bab3">~State</a> ()</td></tr>
<tr class="memdesc:afab438d92b90dc18d194dbd9c9c8bab3 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:afab438d92b90dc18d194dbd9c9c8bab3 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a685e1eac2dda9546271d3bb4dbb4dbea inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a685e1eac2dda9546271d3bb4dbb4dbea">init_state</a> (complex< double >(*ini_state)(double x))</td></tr>
<tr class="memdesc:a685e1eac2dda9546271d3bb4dbb4dbea inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Write the wave function from a C++ function to p_real and p_imag matrices in 1D. <a href="#a685e1eac2dda9546271d3bb4dbb4dbea">More...</a><br /></td></tr>
<tr class="separator:a685e1eac2dda9546271d3bb4dbb4dbea inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae657c1127bda113649b4295949958494 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#ae657c1127bda113649b4295949958494">init_state</a> (complex< double >(*ini_state)(double x, double y))</td></tr>
<tr class="memdesc:ae657c1127bda113649b4295949958494 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Write the wave function from a C++ function to p_real and p_imag matrices in 2D. <a href="#ae657c1127bda113649b4295949958494">More...</a><br /></td></tr>
<tr class="separator:ae657c1127bda113649b4295949958494 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a183e4d8b7cd185d12450dc2b9b0900fe inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a183e4d8b7cd185d12450dc2b9b0900fe"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a183e4d8b7cd185d12450dc2b9b0900fe">loadtxt</a> (char *file_name)</td></tr>
<tr class="memdesc:a183e4d8b7cd185d12450dc2b9b0900fe inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Load the wave function from a file to p_real and p_imag matrices. <br /></td></tr>
<tr class="separator:a183e4d8b7cd185d12450dc2b9b0900fe inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a689fb03056006f79b38053335e2687f2 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a689fb03056006f79b38053335e2687f2">imprint</a> (complex< double >(*function)(double x))</td></tr>
<tr class="memdesc:a689fb03056006f79b38053335e2687f2 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Multiply the wave function of the state by the function provided in 1D. <a href="#a689fb03056006f79b38053335e2687f2">More...</a><br /></td></tr>
<tr class="separator:a689fb03056006f79b38053335e2687f2 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a40eaea1a8718d3b42a9b98f9cad3cdc0 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a40eaea1a8718d3b42a9b98f9cad3cdc0">imprint</a> (complex< double >(*function)(double x, double y))</td></tr>
<tr class="memdesc:a40eaea1a8718d3b42a9b98f9cad3cdc0 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Multiply the wave function of the state by the function provided in 2D. <a href="#a40eaea1a8718d3b42a9b98f9cad3cdc0">More...</a><br /></td></tr>
<tr class="separator:a40eaea1a8718d3b42a9b98f9cad3cdc0 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a20ee575c84eafccbc6bbf693dfa354f2 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top">double * </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a20ee575c84eafccbc6bbf693dfa354f2">get_particle_density</a> (double *density=0)</td></tr>
<tr class="memdesc:a20ee575c84eafccbc6bbf693dfa354f2 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Return a matrix storing the squared norm of the wave function. <a href="#a20ee575c84eafccbc6bbf693dfa354f2">More...</a><br /></td></tr>
<tr class="separator:a20ee575c84eafccbc6bbf693dfa354f2 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a10f04c1b82f9501114aa9f40197c107b inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top">double * </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a10f04c1b82f9501114aa9f40197c107b">get_phase</a> (double *phase=0)</td></tr>
<tr class="memdesc:a10f04c1b82f9501114aa9f40197c107b inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Return a matrix storing the phase of the wave function. <a href="#a10f04c1b82f9501114aa9f40197c107b">More...</a><br /></td></tr>
<tr class="separator:a10f04c1b82f9501114aa9f40197c107b inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7f49e50d416da6e4078535bfe85a17c4 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7f49e50d416da6e4078535bfe85a17c4"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a7f49e50d416da6e4078535bfe85a17c4">get_expected_value</a> (string _operator)</td></tr>
<tr class="memdesc:a7f49e50d416da6e4078535bfe85a17c4 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Return the expected value of the operator, given as argument. <br /></td></tr>
<tr class="separator:a7f49e50d416da6e4078535bfe85a17c4 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab6fa535c87cbe175354448b9fade65d9 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab6fa535c87cbe175354448b9fade65d9"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#ab6fa535c87cbe175354448b9fade65d9">get_squared_norm</a> (void)</td></tr>
<tr class="memdesc:ab6fa535c87cbe175354448b9fade65d9 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Return the squared norm of the quantum state. <br /></td></tr>
<tr class="separator:ab6fa535c87cbe175354448b9fade65d9 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7998338167ee44f627ffae1ac8ce7011 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7998338167ee44f627ffae1ac8ce7011"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a7998338167ee44f627ffae1ac8ce7011">get_mean_x</a> (void)</td></tr>
<tr class="memdesc:a7998338167ee44f627ffae1ac8ce7011 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Return the expected value of the X operator. <br /></td></tr>
<tr class="separator:a7998338167ee44f627ffae1ac8ce7011 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7d3409b73a3f2d6a1ae0fc15f7258b50 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7d3409b73a3f2d6a1ae0fc15f7258b50"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a7d3409b73a3f2d6a1ae0fc15f7258b50">get_mean_xx</a> (void)</td></tr>
<tr class="memdesc:a7d3409b73a3f2d6a1ae0fc15f7258b50 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Return the expected value of the X^2 operator. <br /></td></tr>
<tr class="separator:a7d3409b73a3f2d6a1ae0fc15f7258b50 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a439626a4522a1216ad16140afd4ca24d inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a439626a4522a1216ad16140afd4ca24d"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a439626a4522a1216ad16140afd4ca24d">get_mean_y</a> (void)</td></tr>
<tr class="memdesc:a439626a4522a1216ad16140afd4ca24d inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Return the expected value of the Y operator. <br /></td></tr>
<tr class="separator:a439626a4522a1216ad16140afd4ca24d inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0e3fde73b7ba4a46cfede5cb63d23858 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0e3fde73b7ba4a46cfede5cb63d23858"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a0e3fde73b7ba4a46cfede5cb63d23858">get_mean_yy</a> (void)</td></tr>
<tr class="memdesc:a0e3fde73b7ba4a46cfede5cb63d23858 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Return the expected value of the Y^2 operator. <br /></td></tr>
<tr class="separator:a0e3fde73b7ba4a46cfede5cb63d23858 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad7e9cca37f7c8260f92fdfcd6b2b31b3 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad7e9cca37f7c8260f92fdfcd6b2b31b3"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#ad7e9cca37f7c8260f92fdfcd6b2b31b3">get_mean_px</a> (void)</td></tr>
<tr class="memdesc:ad7e9cca37f7c8260f92fdfcd6b2b31b3 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Return the expected value of the P_x operator. <br /></td></tr>
<tr class="separator:ad7e9cca37f7c8260f92fdfcd6b2b31b3 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8ecfa9af58d99b56d98598ea0c326ce1 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8ecfa9af58d99b56d98598ea0c326ce1"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a8ecfa9af58d99b56d98598ea0c326ce1">get_mean_pxpx</a> (void)</td></tr>
<tr class="memdesc:a8ecfa9af58d99b56d98598ea0c326ce1 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Return the expected value of the P_x^2 operator. <br /></td></tr>
<tr class="separator:a8ecfa9af58d99b56d98598ea0c326ce1 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9929760745da0dfd612d69dceaa6ca7b inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9929760745da0dfd612d69dceaa6ca7b"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a9929760745da0dfd612d69dceaa6ca7b">get_mean_py</a> (void)</td></tr>
<tr class="memdesc:a9929760745da0dfd612d69dceaa6ca7b inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Return the expected value of the P_y operator. <br /></td></tr>
<tr class="separator:a9929760745da0dfd612d69dceaa6ca7b inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2eb250225bb18632608909222acbba73 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2eb250225bb18632608909222acbba73"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a2eb250225bb18632608909222acbba73">get_mean_pypy</a> (void)</td></tr>
<tr class="memdesc:a2eb250225bb18632608909222acbba73 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Return the expected value of the P_y^2 operator. <br /></td></tr>
<tr class="separator:a2eb250225bb18632608909222acbba73 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6378bc21834d31ec926dfddb0f70ff8b inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6378bc21834d31ec926dfddb0f70ff8b"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a6378bc21834d31ec926dfddb0f70ff8b">get_mean_angular_momentum</a> (void)</td></tr>
<tr class="memdesc:a6378bc21834d31ec926dfddb0f70ff8b inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Return the expected value of the L_z operator. <br /></td></tr>
<tr class="separator:a6378bc21834d31ec926dfddb0f70ff8b inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a30ef4054140d4add7904c2e75b879b2d inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a30ef4054140d4add7904c2e75b879b2d">write_to_file</a> (string fileprefix)</td></tr>
<tr class="memdesc:a30ef4054140d4add7904c2e75b879b2d inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Write to a file the wave function. <a href="#a30ef4054140d4add7904c2e75b879b2d">More...</a><br /></td></tr>
<tr class="separator:a30ef4054140d4add7904c2e75b879b2d inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a27f7fee2862e69626961721c8b99f6b8 inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a27f7fee2862e69626961721c8b99f6b8">write_particle_density</a> (string fileprefix)</td></tr>
<tr class="memdesc:a27f7fee2862e69626961721c8b99f6b8 inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Write to a file the squared norm of the wave function. <a href="#a27f7fee2862e69626961721c8b99f6b8">More...</a><br /></td></tr>
<tr class="separator:a27f7fee2862e69626961721c8b99f6b8 inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a53650338770697ddfc73ff4db8f4a55f inherit pub_methods_classState"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a53650338770697ddfc73ff4db8f4a55f">write_phase</a> (string fileprefix)</td></tr>
<tr class="memdesc:a53650338770697ddfc73ff4db8f4a55f inherit pub_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Write to a file the phase of the wave function. <a href="#a53650338770697ddfc73ff4db8f4a55f">More...</a><br /></td></tr>
<tr class="separator:a53650338770697ddfc73ff4db8f4a55f inherit pub_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a54c05ca4697a3e47692001b458abbd45"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a54c05ca4697a3e47692001b458abbd45"></a>
complex< double > </td><td class="memItemRight" valign="bottom"><a class="el" href="classSinusoidState.html#a54c05ca4697a3e47692001b458abbd45">sinusoid_state</a> (double x, double y)</td></tr>
<tr class="memdesc:a54c05ca4697a3e47692001b458abbd45"><td class="mdescLeft"> </td><td class="mdescRight">Sinusoidal function. <br /></td></tr>
<tr class="separator:a54c05ca4697a3e47692001b458abbd45"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a9ebfc3336d5290aaf3788a57020fea04"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ebfc3336d5290aaf3788a57020fea04"></a>
int </td><td class="memItemRight" valign="bottom"><b>n_x</b></td></tr>
<tr class="separator:a9ebfc3336d5290aaf3788a57020fea04"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2d15cbf89eb65711e0cbe751f9a074bf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2d15cbf89eb65711e0cbe751f9a074bf"></a>
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classSinusoidState.html#a2d15cbf89eb65711e0cbe751f9a074bf">n_y</a></td></tr>
<tr class="memdesc:a2d15cbf89eb65711e0cbe751f9a074bf"><td class="mdescLeft"> </td><td class="mdescRight">First and second quantum number. <br /></td></tr>
<tr class="separator:a2d15cbf89eb65711e0cbe751f9a074bf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a958a7ecd63a6e247beaa86d44eccbd03"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a958a7ecd63a6e247beaa86d44eccbd03"></a>
double </td><td class="memItemRight" valign="bottom"><b>norm</b></td></tr>
<tr class="separator:a958a7ecd63a6e247beaa86d44eccbd03"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a38177991dd0b7fbaff89fbc8113730aa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a38177991dd0b7fbaff89fbc8113730aa"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classSinusoidState.html#a38177991dd0b7fbaff89fbc8113730aa">phase</a></td></tr>
<tr class="memdesc:a38177991dd0b7fbaff89fbc8113730aa"><td class="mdescLeft"> </td><td class="mdescRight">Norm and phase of the state. <br /></td></tr>
<tr class="separator:a38177991dd0b7fbaff89fbc8113730aa"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_attribs_classState"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classState')"><img src="closed.png" alt="-"/> Public Attributes inherited from <a class="el" href="classState.html">State</a></td></tr>
<tr class="memitem:aa136418a4aeb94dd43f36abdfc6d601b inherit pub_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa136418a4aeb94dd43f36abdfc6d601b"></a>
double * </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#aa136418a4aeb94dd43f36abdfc6d601b">p_real</a></td></tr>
<tr class="memdesc:aa136418a4aeb94dd43f36abdfc6d601b inherit pub_attribs_classState"><td class="mdescLeft"> </td><td class="mdescRight">Real part of the wave function. <br /></td></tr>
<tr class="separator:aa136418a4aeb94dd43f36abdfc6d601b inherit pub_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aed69f02d92f9853d8c195c3041ac765f inherit pub_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed69f02d92f9853d8c195c3041ac765f"></a>
double * </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#aed69f02d92f9853d8c195c3041ac765f">p_imag</a></td></tr>
<tr class="memdesc:aed69f02d92f9853d8c195c3041ac765f inherit pub_attribs_classState"><td class="mdescLeft"> </td><td class="mdescRight">Imaginary part of the wave function. <br /></td></tr>
<tr class="separator:aed69f02d92f9853d8c195c3041ac765f inherit pub_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a05cc240880b62480836b735c128a46d2 inherit pub_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a05cc240880b62480836b735c128a46d2"></a>
Lattice * </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a05cc240880b62480836b735c128a46d2">grid</a></td></tr>
<tr class="memdesc:a05cc240880b62480836b735c128a46d2 inherit pub_attribs_classState"><td class="mdescLeft"> </td><td class="mdescRight">Object that defines the lattice structure. <br /></td></tr>
<tr class="separator:a05cc240880b62480836b735c128a46d2 inherit pub_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a25d1401ca844b5a831ab1a96948b967b inherit pub_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a25d1401ca844b5a831ab1a96948b967b"></a>
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a25d1401ca844b5a831ab1a96948b967b">angular_momentum</a></td></tr>
<tr class="memdesc:a25d1401ca844b5a831ab1a96948b967b inherit pub_attribs_classState"><td class="mdescLeft"> </td><td class="mdescRight">Angular momentum when cylindrical coordinates are used. <br /></td></tr>
<tr class="separator:a25d1401ca844b5a831ab1a96948b967b inherit pub_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a30a90a18e6065bfce9663f894c2fa13b inherit pub_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a30a90a18e6065bfce9663f894c2fa13b"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a30a90a18e6065bfce9663f894c2fa13b">expected_values_updated</a></td></tr>
<tr class="memdesc:a30a90a18e6065bfce9663f894c2fa13b inherit pub_attribs_classState"><td class="mdescLeft"> </td><td class="mdescRight">Whether the expected values of the state object are updated with respect to the last evolution. <br /></td></tr>
<tr class="separator:a30a90a18e6065bfce9663f894c2fa13b inherit pub_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pro_methods_classState"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classState')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classState.html">State</a></td></tr>
<tr class="memitem:a438d6d21d08ce71467b2a5772e79a967 inherit pro_methods_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a438d6d21d08ce71467b2a5772e79a967"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a438d6d21d08ce71467b2a5772e79a967">calculate_expected_values</a> (void)</td></tr>
<tr class="memdesc:a438d6d21d08ce71467b2a5772e79a967 inherit pro_methods_classState"><td class="mdescLeft"> </td><td class="mdescRight">Calculate squared norm and expected values. <br /></td></tr>
<tr class="separator:a438d6d21d08ce71467b2a5772e79a967 inherit pro_methods_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pro_attribs_classState"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classState')"><img src="closed.png" alt="-"/> Protected Attributes inherited from <a class="el" href="classState.html">State</a></td></tr>
<tr class="memitem:a5517200f76f2551e7315e98a1980fb20 inherit pro_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5517200f76f2551e7315e98a1980fb20"></a>
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a5517200f76f2551e7315e98a1980fb20">self_init</a></td></tr>
<tr class="memdesc:a5517200f76f2551e7315e98a1980fb20 inherit pro_attribs_classState"><td class="mdescLeft"> </td><td class="mdescRight">Whether the p_real and p_imag matrices have been initialized from the <a class="el" href="classState.html" title="This class defines the quantum state. ">State</a> constructor or not. <br /></td></tr>
<tr class="separator:a5517200f76f2551e7315e98a1980fb20 inherit pro_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6dba4c68df7ff7a2697dbf79be069a21 inherit pro_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6dba4c68df7ff7a2697dbf79be069a21"></a>
double </td><td class="memItemRight" valign="bottom"><b>mean_X</b></td></tr>
<tr class="separator:a6dba4c68df7ff7a2697dbf79be069a21 inherit pro_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8defbbd6529fb5b6665f00f2a6271b28 inherit pro_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8defbbd6529fb5b6665f00f2a6271b28"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a8defbbd6529fb5b6665f00f2a6271b28">mean_XX</a></td></tr>
<tr class="memdesc:a8defbbd6529fb5b6665f00f2a6271b28 inherit pro_attribs_classState"><td class="mdescLeft"> </td><td class="mdescRight">Expected values of the X and X^2 operators. <br /></td></tr>
<tr class="separator:a8defbbd6529fb5b6665f00f2a6271b28 inherit pro_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad11a4062eee435426a0d500609754dc6 inherit pro_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad11a4062eee435426a0d500609754dc6"></a>
double </td><td class="memItemRight" valign="bottom"><b>mean_Y</b></td></tr>
<tr class="separator:ad11a4062eee435426a0d500609754dc6 inherit pro_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:affa31b0edc363365d52e5b36575ece66 inherit pro_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="affa31b0edc363365d52e5b36575ece66"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#affa31b0edc363365d52e5b36575ece66">mean_YY</a></td></tr>
<tr class="memdesc:affa31b0edc363365d52e5b36575ece66 inherit pro_attribs_classState"><td class="mdescLeft"> </td><td class="mdescRight">Expected values of the Y and Y^2 operators. <br /></td></tr>
<tr class="separator:affa31b0edc363365d52e5b36575ece66 inherit pro_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a196355a572285f76a2efe04b7da2fcf7 inherit pro_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a196355a572285f76a2efe04b7da2fcf7"></a>
double </td><td class="memItemRight" valign="bottom"><b>mean_Px</b></td></tr>
<tr class="separator:a196355a572285f76a2efe04b7da2fcf7 inherit pro_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad6ea4dd8e3a97962343a92eb9b586758 inherit pro_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad6ea4dd8e3a97962343a92eb9b586758"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#ad6ea4dd8e3a97962343a92eb9b586758">mean_PxPx</a></td></tr>
<tr class="memdesc:ad6ea4dd8e3a97962343a92eb9b586758 inherit pro_attribs_classState"><td class="mdescLeft"> </td><td class="mdescRight">Expected values of the P_x and P_x^2 operators. <br /></td></tr>
<tr class="separator:ad6ea4dd8e3a97962343a92eb9b586758 inherit pro_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af9228404ed5fe2731001b950af3c4fde inherit pro_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af9228404ed5fe2731001b950af3c4fde"></a>
double </td><td class="memItemRight" valign="bottom"><b>mean_Py</b></td></tr>
<tr class="separator:af9228404ed5fe2731001b950af3c4fde inherit pro_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abbbf0b418ef3256d32a82df9f41c0a70 inherit pro_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abbbf0b418ef3256d32a82df9f41c0a70"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#abbbf0b418ef3256d32a82df9f41c0a70">mean_PyPy</a></td></tr>
<tr class="memdesc:abbbf0b418ef3256d32a82df9f41c0a70 inherit pro_attribs_classState"><td class="mdescLeft"> </td><td class="mdescRight">Expected values of the P_y and P_y^2 operators. <br /></td></tr>
<tr class="separator:abbbf0b418ef3256d32a82df9f41c0a70 inherit pro_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0443bdad5f2d7d07c1246d871906328f inherit pro_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0443bdad5f2d7d07c1246d871906328f"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a0443bdad5f2d7d07c1246d871906328f">mean_angular_momentum</a></td></tr>
<tr class="memdesc:a0443bdad5f2d7d07c1246d871906328f inherit pro_attribs_classState"><td class="mdescLeft"> </td><td class="mdescRight">Expected value of the L_z operator. <br /></td></tr>
<tr class="separator:a0443bdad5f2d7d07c1246d871906328f inherit pro_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a547f367dd2ac6437ff2f1a979f59309c inherit pro_attribs_classState"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a547f367dd2ac6437ff2f1a979f59309c"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classState.html#a547f367dd2ac6437ff2f1a979f59309c">norm2</a></td></tr>
<tr class="memdesc:a547f367dd2ac6437ff2f1a979f59309c inherit pro_attribs_classState"><td class="mdescLeft"> </td><td class="mdescRight">Squared norm of the state. <br /></td></tr>
<tr class="separator:a547f367dd2ac6437ff2f1a979f59309c inherit pro_attribs_classState"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class defines a quantum state with sinusoidal like wave function. </p>
<p>This class is a child of <a class="el" href="classState.html" title="This class defines the quantum state. ">State</a> class. </p>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a class="anchor" id="aa7bcbef964e336cb3aa7a45369db5020"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">SinusoidState::SinusoidState </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classLattice1D.html">Lattice1D</a> * </td>
<td class="paramname"><em>grid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>n_x</em> = <code>1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>norm</em> = <code>1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>phase</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>p_real</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>p_imag</em> = <code>0</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Construct the quantum state with sinusoidal like wave function.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">grid</td><td>Lattice object. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">n_x</td><td>First quantum number. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">norm</td><td>Squared norm of the quantum state. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">phase</td><td>Relative phase of the wave function. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">p_real</td><td>Pointer to the real part of the wave function. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">p_imag</td><td>Pointer to the imaginary part of the wave function. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a4ffa76763d11b7b40722c1a331c82d87"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">SinusoidState::SinusoidState </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classLattice2D.html">Lattice2D</a> * </td>
<td class="paramname"><em>grid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>n_x</em> = <code>1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>n_y</em> = <code>1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>norm</em> = <code>1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>phase</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>p_real</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double * </td>
<td class="paramname"><em>p_imag</em> = <code>0</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Construct the quantum state with sinusoidal like wave function.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">grid</td><td>Lattice object. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">n_x</td><td>First quantum number. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">n_y</td><td>Second quantum number. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">norm</td><td>Squared norm of the quantum state. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">phase</td><td>Relative phase of the wave function. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">p_real</td><td>Pointer to the real part of the wave function. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">p_imag</td><td>Pointer to the imaginary part of the wave function. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/pwittek/trotter-suzuki-mpi/src/<a class="el" href="trottersuzuki_8h_source.html">trottersuzuki.h</a></li>
<li>/home/pwittek/trotter-suzuki-mpi/src/model.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>