<!DOCTYPE html>
<html data-lt-installed="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<p>Hello Michael,</p>
<p>reconstructing the all-electron wavefunctions is not the point of
PAW, it actually goes the other way: separating the operators in a
pseudo and an all-electron part. There are technical reason for
which reconstructing the wfcs cannot be done trivially just with
PAW information.</p>
<p>On the other hand, a formalism to reconstruct the all-electron
wavefunctions is available as part of the GIPAW package. I'm not
sure if it is distributed with core QE or as plugin, in either
case you can find it here <a class="moz-txt-link-freetext" href="https://github.com/dceresoli/qe-gipaw">https://github.com/dceresoli/qe-gipaw</a></p>
<p>hth</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 11/4/25 18:50, Toriyama, Michael Y.
via users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DM6PR09MB4677C4C21BCE0A959FFDE943B0C4A@DM6PR09MB4677.namprd09.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<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>
<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
<a class="moz-txt-link-rfc2396E" href="mailto:users-bounces@lists.quantum-espresso.org"><users-bounces@lists.quantum-espresso.org></a> on behalf of
<a class="moz-txt-link-abbreviated" href="mailto:giuseppe.mattioli@mlib.ism.cnr.it">giuseppe.mattioli@mlib.ism.cnr.it</a>
<a class="moz-txt-link-rfc2396E" href="mailto:giuseppe.mattioli@mlib.ism.cnr.it"><giuseppe.mattioli@mlib.ism.cnr.it></a><br>
<b>Sent:</b> Tuesday, November 4, 2025 3:12 AM<br>
<b>To:</b> Quantum ESPRESSO users Forum
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.quantum-espresso.org"><users@lists.quantum-espresso.org></a><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"><br>
</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
<a class="moz-txt-link-abbreviated" href="mailto:giuseppe.mattioli@mlib.ism.cnr.it">giuseppe.mattioli@mlib.ism.cnr.it</a>. <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"
moz-do-not-send="true">
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"><br>
</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$"
moz-do-not-send="true" class="moz-txt-link-freetext">https://urldefense.us/v3/__http://www.max-centre.eu__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJE9e_zvgs$</a>)
> users mailing list <a class="moz-txt-link-abbreviated" href="mailto:users@lists.quantum-espresso.org">users@lists.quantum-espresso.org</a>
> <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$"
moz-do-not-send="true" class="moz-txt-link-freetext">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$"
moz-do-not-send="true" class="moz-txt-link-freetext">https://urldefense.us/v3/__http://www.max-centre.eu__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJE9e_zvgs$</a>)
users mailing list <a class="moz-txt-link-abbreviated" href="mailto:users@lists.quantum-espresso.org">users@lists.quantum-espresso.org</a>
<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$"
moz-do-not-send="true" class="moz-txt-link-freetext">https://urldefense.us/v3/__https://lists.quantum-espresso.org/mailman/listinfo/users__;!!G_uCfscf7eWS!bY5t23BrinGc7S8w6bwV5waiCvBOTDHGEm67hVTWk6SLZNFuWiuum_RLxlscz_-QPVB1fwlxf3eVQhB842xv0Itg7TJEZx20vK0$</a>
</pre>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________________________________________
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 class="moz-txt-link-abbreviated" href="http://www.max-centre.eu">www.max-centre.eu</a>)
users mailing list <a class="moz-txt-link-abbreviated" href="mailto:users@lists.quantum-espresso.org">users@lists.quantum-espresso.org</a>
<a class="moz-txt-link-freetext" href="https://lists.quantum-espresso.org/mailman/listinfo/users">https://lists.quantum-espresso.org/mailman/listinfo/users</a></pre>
</blockquote>
<div class="moz-signature">-- <br>
<small>Dr. Lorenzo Paulatto<br>
IR IMPMC - CNRS UMR 7590 / Sorbonne Université / MNHN <br>
phone: +33 (0)1 442 79822 / telegram: lpaulatto<br>
<a href="http://www.impmc.upmc.fr/~paulatto/"
class="moz-txt-link-freetext">http://www.impmc.upmc.fr/~paulatto/</a>
- <a href="https://anharmonic.github.io/"
class="moz-txt-link-freetext">https://anharmonic.github.io/</a><br>
23-24/423 B115, 4 place Jussieu 75252 Paris CX 05<small></small></small></div>
</body>
<lt-container></lt-container>
</html>