<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Dear Giuseppe,</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thank you very much for your insight.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Unfortunately, I'd like to output the all-electron <i>wave functions</i> instead of the charge density. Hoping to find a way to output the wave function, I also checked out the source code for pp.x, although I haven't figured out how to get the AE wave function
yet.</div>
<div class="elementToProof" id="Signature">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Sincerely,</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Michael Toriyama</div>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> users <users-bounces@lists.quantum-espresso.org> on behalf of giuseppe.mattioli@mlib.ism.cnr.it <giuseppe.mattioli@mlib.ism.cnr.it><br>
<b>Sent:</b> Tuesday, November 4, 2025 3:12 AM<br>
<b>To:</b> Quantum ESPRESSO users Forum <users@lists.quantum-espresso.org><br>
<b>Subject:</b> Re: [QE-users] All-electron wave function from pw.x calculation with PAW pseudopotentials</font>
<div> </div>
</div>
<div>
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="left" style="background:revert!important; border:revert!important; bottom:revert!important; color:revert!important; direction:revert!important; display:revert!important; font-size:revert!important; height:revert!important; letter-spacing:revert!important; line-height:revert!important; margin:revert!important; opacity:revert!important; order:revert!important; outline:revert!important; overflow:revert!important; padding:revert!important; position:revert!important; tab-size:revert!important; table-layout:revert!important; text-align:revert!important; text-indent:revert!important; text-orientation:revert!important; text-overflow:revert!important; text-transform:revert!important; top:revert!important; vertical-align:revert!important; visibility:revert!important; white-space:revert!important; width:revert!important; word-break:revert!important; word-spacing:revert!important; writing-mode:revert!important; zoom:revert!important; border:0!important; display:table!important; width:100%!important; table-layout:fixed!important; border-collapse:seperate!important; float:none!important; border-spacing:0px 0px!important">
<tbody style="background:revert!important; border:revert!important; bottom:revert!important; color:revert!important; direction:revert!important; display:revert!important; font-size:revert!important; height:revert!important; letter-spacing:revert!important; line-height:revert!important; margin:revert!important; opacity:revert!important; order:revert!important; outline:revert!important; overflow:revert!important; padding:revert!important; position:revert!important; tab-size:revert!important; table-layout:revert!important; text-align:revert!important; text-indent:revert!important; text-orientation:revert!important; text-overflow:revert!important; text-transform:revert!important; top:revert!important; vertical-align:revert!important; visibility:revert!important; white-space:revert!important; width:revert!important; word-break:revert!important; word-spacing:revert!important; writing-mode:revert!important; zoom:revert!important; display:block!important">
<tr style="background:revert!important; border:revert!important; bottom:revert!important; color:revert!important; direction:revert!important; display:revert!important; font-size:revert!important; height:revert!important; letter-spacing:revert!important; line-height:revert!important; margin:revert!important; opacity:revert!important; order:revert!important; outline:revert!important; overflow:revert!important; padding:revert!important; position:revert!important; tab-size:revert!important; table-layout:revert!important; text-align:revert!important; text-indent:revert!important; text-orientation:revert!important; text-overflow:revert!important; text-transform:revert!important; top:revert!important; vertical-align:revert!important; visibility:revert!important; white-space:revert!important; width:revert!important; word-break:revert!important; word-spacing:revert!important; writing-mode:revert!important; zoom:revert!important">
<td valign="middle" width="1px" bgcolor="#A6A6A6" cellpadding="7px 2px 7px 2px" style="background:revert!important; border:revert!important; bottom:revert!important; color:revert!important; direction:revert!important; display:revert!important; font-size:revert!important; height:revert!important; letter-spacing:revert!important; line-height:revert!important; margin:revert!important; opacity:revert!important; order:revert!important; outline:revert!important; overflow:revert!important; padding:revert!important; position:revert!important; tab-size:revert!important; table-layout:revert!important; text-align:revert!important; text-indent:revert!important; text-orientation:revert!important; text-overflow:revert!important; text-transform:revert!important; top:revert!important; vertical-align:revert!important; visibility:revert!important; white-space:revert!important; width:revert!important; word-break:revert!important; word-spacing:revert!important; writing-mode:revert!important; zoom:revert!important; padding:7px 2px 7px 2px!important; background-color:#A6A6A6!important; width:0px!important">
</td>
<td valign="middle" width="100%" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 15px" color="#212121" style="background:revert!important; border:revert!important; bottom:revert!important; color:revert!important; direction:revert!important; display:revert!important; font-size:revert!important; height:revert!important; letter-spacing:revert!important; line-height:revert!important; margin:revert!important; opacity:revert!important; order:revert!important; outline:revert!important; overflow:revert!important; padding:revert!important; position:revert!important; tab-size:revert!important; table-layout:revert!important; text-align:revert!important; text-indent:revert!important; text-orientation:revert!important; text-overflow:revert!important; text-transform:revert!important; top:revert!important; vertical-align:revert!important; visibility:revert!important; white-space:revert!important; width:revert!important; word-break:revert!important; word-spacing:revert!important; writing-mode:revert!important; zoom:revert!important; width:100%!important; background-color:#EAEAEA!important; padding:7px 5px 7px 15px!important; font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif!important; font-size:12px!important; font-weight:normal!important; color:#212121!important; text-align:left!important; word-wrap:break-word!important">
<div style="background:revert!important; border:revert!important; bottom:revert!important; color:revert!important; direction:revert!important; display:revert!important; font-size:revert!important; height:revert!important; letter-spacing:revert!important; line-height:revert!important; margin:revert!important; opacity:revert!important; order:revert!important; outline:revert!important; overflow:revert!important; padding:revert!important; position:revert!important; tab-size:revert!important; table-layout:revert!important; text-align:revert!important; text-indent:revert!important; text-orientation:revert!important; text-overflow:revert!important; text-transform:revert!important; top:revert!important; vertical-align:revert!important; visibility:revert!important; white-space:revert!important; width:revert!important; word-break:revert!important; word-spacing:revert!important; writing-mode:revert!important; zoom:revert!important">
You don't often get email from giuseppe.mattioli@mlib.ism.cnr.it. <a href="https://aka.ms/LearnAboutSenderIdentification" style="background:revert!important; color:revert!important; direction:revert!important; display:revert!important; font-size:revert!important; opacity:revert!important; visibility:revert!important">
Learn why this is important</a> </div>
</td>
<td valign="middle" align="left" width="75px" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 5px" color="#212121" style="background:revert!important; border:revert!important; bottom:revert!important; color:revert!important; direction:revert!important; display:revert!important; font-size:revert!important; height:revert!important; letter-spacing:revert!important; line-height:revert!important; margin:revert!important; opacity:revert!important; order:revert!important; outline:revert!important; overflow:revert!important; padding:revert!important; position:revert!important; tab-size:revert!important; table-layout:revert!important; text-align:revert!important; text-indent:revert!important; text-orientation:revert!important; text-overflow:revert!important; text-transform:revert!important; top:revert!important; vertical-align:revert!important; visibility:revert!important; white-space:revert!important; width:revert!important; word-break:revert!important; word-spacing:revert!important; writing-mode:revert!important; zoom:revert!important; width:75px!important; background-color:#EAEAEA!important; padding:7px 5px 7px 5px!important; font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif!important; font-size:12px!important; font-weight:normal!important; color:#212121!important; text-align:left!important; word-wrap:break-word!important">
</td>
</tr>
</tbody>
</table>
<div>
<div style="display:none!important; display:none; visibility:hidden; font-size:1px; color:#ffffff; line-height:1px; height:0px; max-height:0px; opacity:0; overflow:hidden">
Dear Michael I'm not an expert at all of this, but maybe you can look into the PP routines that extract the all-electron charge density to find what you are looking for. 17 = all-electron valence charge density can be performed for PAW calculations</div>
<div style="display:none!important; display:none; visibility:hidden; font-size:1px; color:#ffffff; line-height:1px; max-height:0px; opacity:0; overflow:hidden">
ZjQcmQRYFpfptBannerStart</div>
<div dir="ltr" id="x_pfptBanner8zepdx8" style="display:block!important; text-align:left!important; margin:16px 0px 16px 0px!important; padding:8px 16px 8px 16px!important; border-radius:4px!important; min-width:200px!important; background-color:#D0D8DC!important; background-color:#D0D8DC; border-top:4px solid #90a4ae!important; border-top:4px solid #90a4ae">
<div id="x_pfptBanner8zepdx8" style="float:left!important; display:block!important; margin:0px 0px 1px 0px!important; max-width:600px!important">
<div id="x_pfptBanner8zepdx8" style="display:block!important; visibility:visible!important; background-color:#D0D8DC!important; color:#000000!important; color:#000000; font-family:'Arial',sans-serif!important; font-family:'Arial',sans-serif; font-weight:bold!important; font-weight:bold; font-size:14px!important; line-height:18px!important; line-height:18px">
This Message Is From an External Sender </div>
<div id="x_pfptBanner8zepdx8" style="display:block!important; visibility:visible!important; background-color:#D0D8DC!important; color:#000000!important; color:#000000; font-weight:normal; font-family:'Arial',sans-serif!important; font-family:'Arial',sans-serif; font-size:12px!important; line-height:18px!important; line-height:18px; margin-top:2px!important">
This message came from outside your organization. </div>
</div>
<div style="clear:both!important; display:block!important; visibility:hidden!important; line-height:0!important; font-size:0.01px!important; height:0px">
</div>
</div>
<div style="display:none!important; display:none; visibility:hidden; font-size:1px; color:#ffffff; line-height:1px; max-height:0px; opacity:0; overflow:hidden">
ZjQcmQRYFpfptBannerEnd</div>
<style>
<!--
#x_pfptBanner8zepdx8
{display:block!important;
visibility:visible!important;
opacity:1!important;
background-color:#D0D8DC!important;
max-width:none!important;
max-height:none!important}
-->
</style>
<pre style="font-family:sans-serif; font-size:100%; white-space:pre-wrap; word-wrap:break-word">
Dear Michael
I'm not an expert at all of this, but maybe you can look into the PP
routines that extract the all-electron charge density to find what you
are looking for.
17 = all-electron valence charge density
can be performed for PAW calculations only
requires a very dense real-space grid!
21 = all-electron charge density (valence+core).
For PAW calculations only; requires a very
dense real-space grid.
HTH
Giuseppe
Il 2025-11-04 05:05 Toriyama, Michael Y. via users ha scritto:
> Dear all,
>
> I am interested in obtaining the PAW-reconstructed all-electron (AE)
> wave function from a pw.x calculation.
>
> To my understanding, the wfc*.dat files outputted by QE-7.4 contain
> the pseudo (PS) wave functions and do not correct for the wave
> function in the core regions.
>
> Is there a way to output the PAW-reconstructed AE wave function from
> QE by specifying some input parameter(s) in my pw input file? If not,
> how would you recommend that I modify the code to output the
> all-electron wave functions from a pw.x calculation?
>
> Or perhaps the matter is much simpler than this? I see that in
> PAW-type pseudopotential files (e.g. kjpaw), there are fields called
> PP_AEWFC*, PP_PSWFC*, and PP_BETA* defined on a radial grid. Correct
> me if I'm wrong, but these seem to be the partial AE wave functions,
> partial PS wave functions, and projector functions respectively; in
> other words, the "ingredients" we need to perform the PAW
> reconstruction ourselves.
>
> Can I read these partial AE and partial PS wave functions, as well as
> the projection functions, from the pseudopotential files to perform
> the PAW reconstruction ourselves?
>
> Any help would be greatly appreciated.
>
> Thanks,
> Michael Toriyama
> _______________________________________________________________________________
> The Quantum ESPRESSO Foundation stands in solidarity with all civilians
> worldwide who are victims of terrorism, military aggression, and
> indiscriminate warfare.
> --------------------------------------------------------------------------------
> Quantum ESPRESSO is supported by MaX (<a href="https://urldefense.us/v3/__http://www.max-centre.eu__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJE9e_zvgs$" originalsrc="https://urldefense.us/v3/__http://www.max-centre.eu__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJE9e_zvgs$">https://urldefense.us/v3/__http://www.max-centre.eu__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJE9e_zvgs$</a>)
> users mailing list users@lists.quantum-espresso.org
> <a href="https://urldefense.us/v3/__https://lists.quantum-espresso.org/mailman/listinfo/users__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJEZx20vK0$" originalsrc="https://urldefense.us/v3/__https://lists.quantum-espresso.org/mailman/listinfo/users__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJEZx20vK0$">https://urldefense.us/v3/__https://lists.quantum-espresso.org/mailman/listinfo/users__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJEZx20vK0$</a>
_______________________________________________________________________________
The Quantum ESPRESSO Foundation stands in solidarity with all civilians worldwide who are victims of terrorism, military aggression, and indiscriminate warfare.
--------------------------------------------------------------------------------
Quantum ESPRESSO is supported by MaX (<a href="https://urldefense.us/v3/__http://www.max-centre.eu__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJE9e_zvgs$" originalsrc="https://urldefense.us/v3/__http://www.max-centre.eu__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJE9e_zvgs$">https://urldefense.us/v3/__http://www.max-centre.eu__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJE9e_zvgs$</a>)
users mailing list users@lists.quantum-espresso.org
<a href="https://urldefense.us/v3/__https://lists.quantum-espresso.org/mailman/listinfo/users__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJEZx20vK0$" originalsrc="https://urldefense.us/v3/__https://lists.quantum-espresso.org/mailman/listinfo/users__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJEZx20vK0$">https://urldefense.us/v3/__https://lists.quantum-espresso.org/mailman/listinfo/users__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJEZx20vK0$</a>
</pre>
</div>
</div>
</body>
</html>