<div dir="ltr">Dear Nicola,<div><br></div><div>Thank you very much for your quick response and for sharing the wiki article to learn more about the oscdft method. This is very useful.</div><div><br></div><div>Best regards,</div><div><br></div><div>Alain.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Feb 18, 2026 at 3:20 AM Nicola Marzari <<a href="mailto:nicola.marzari@epfl.ch">nicola.marzari@epfl.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="auto">
<div><br>
</div>
Dear Alain,
<div><br>
</div>
<div>a summary is here:</div>
<div><br>
</div>
<div>
<div style="display:block">
<div style="display:inline-block" role="link">
<a style="border-radius:10px;font-family:-apple-system,Helvetica,Arial,sans-serif;display:block;width:300px;overflow:hidden;text-decoration:none" rel="nofollow" href="https://theos-wiki.epfl.ch/Main/OxidationStates.md" dir="ltr" role="button" width="300" target="_blank">
<table style="table-layout:fixed;border-collapse:collapse;width:300px;background-color:rgb(230,230,230);font-family:-apple-system,Helvetica,Arial,sans-serif" cellpadding="0" cellspacing="0" border="0" width="300">
<tbody>
<tr>
<td>
<table bgcolor="#E6E6E6" cellpadding="0" cellspacing="0" width="300" style="table-layout:fixed;font-family:-apple-system,Helvetica,Arial,sans-serif;background-color:rgb(230,230,230)">
<tbody>
<tr>
<td style="padding:8px 0px">
<div style="max-width:100%;margin:0px 16px;overflow:hidden">
<div style="font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis;text-align:left">
<a rel="nofollow" href="https://theos-wiki.epfl.ch/Main/OxidationStates.md" style="text-decoration:none" target="_blank"><font color="#000000" style="color:rgb(0,0,0)">Oxidation States</font></a></div>
<div style="font-weight:400;font-size:11px;overflow:hidden;text-overflow:ellipsis;text-align:left">
<a rel="nofollow" href="https://theos-wiki.epfl.ch/Main/OxidationStates.md" style="text-decoration:none" target="_blank"><font color="#A2A2A9" style="color:rgba(60,60,67,0.6)">theos-wiki.epfl.ch</font></a></div>
</div>
</td>
<td style="padding:6px 12px 6px 0px" width="30">
<a rel="nofollow" href="https://theos-wiki.epfl.ch/Main/OxidationStates.md" target="_blank"><img style="display: inline-block; width: 30px; height: 30px; border-radius: 3px;" width="30" height="30" alt="apple-touch-icon.png" src="cid:ii_19c7127df158e3918d51"></a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</a></div>
</div>
<div><br>
</div>
but nothing is available out of the box.</div>
<div><br>
</div>
<div>Probably easiest (but come coding) would be a U on a projector that is an appropriate linear combination of atomic projectors that approximate the homo or lumo of the adsorbate (poor-man-Wannier). We did some molecular U with Ismaila Dabo a long time
ago: <a href="https://pubs.acs.org/doi/10.1021/ja067944u" target="_blank">https://pubs.acs.org/doi/10.1021/ja067944u</a></div>
<div><br>
</div>
<div>Then you adapt os-cdft.</div>
<div><br>
</div>
<div>Other options would be U on the actual eigenstate or Wannier function - this latter I believe is work in progress.</div>
<div><br>
</div>
<div>Nicola</div>
<div><br>
</div>
<div>Sent from a tiny keyboard... Contact info:</div>
<div>
<div dir="ltr">
<div>
<div><a href="http://theos-wiki.epfl.ch/Main/Contact" target="_blank">http://theos-wiki.epfl.ch/Main/Contact</a></div>
</div>
</div>
<div dir="ltr"><br>
<blockquote type="cite">On 17 Feb 2026, at 19:06, Alain Delgado Gran via users <<a href="mailto:users@lists.quantum-espresso.org" target="_blank">users@lists.quantum-espresso.org</a>> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">Hello QE users/developers,
<div><br>
</div>
<div>Context:</div>
<div>I want to build diabatic potential energy surfaces for a molecule close to a metal surface for different charges (+1, 0) of the adsorbate.</div>
<div><br>
</div>
<div>Question:</div>
<div><span id="m_-9129274172073582243gmail-docs-internal-guid-ee23ce55-7fff-dbbe-15e9-136e126ebffd"><span style="font-family:Inter,sans-serif;color:rgb(31,31,31);font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;vertical-align:baseline">Is
constrained DFT (cDFT) implemented in QE in a way that allows it to be used for constructing diabatic states? I am aware of the</span><a href="https://www.quantum-espresso.org/Doc/INPUT_OSCDFT.html" style="text-decoration-line:none" target="_blank"><span style="font-family:Inter,sans-serif;color:rgb(31,31,31);font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;vertical-align:baseline">
</span><span style="font-family:Arial,sans-serif;background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;text-decoration-line:underline;vertical-align:baseline">OS-CDFT module</span></a><span style="font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;vertical-align:baseline">,
which controls the oxidation state of a transition-metal element, but it appears not to be generalizable for constraining charge within an arbitrary molecular region. Is this interpretation correct? If not, where can I find a good example or tutorial on how
to perform this type of calculation?</span></span></div>
<div><span><span style="font-family:Arial,sans-serif;color:rgb(0,0,0);background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;vertical-align:baseline"><br>
</span></span></div>
<div><font color="#000000" face="Arial, sans-serif"><span>Thank you for your time and attention.</span></font></div>
<div><font color="#000000" face="Arial, sans-serif"><span><br>
</span></font></div>
<div><font color="#000000" face="Arial, sans-serif"><span>Best regards,</span></font></div>
<div><font color="#000000" face="Arial, sans-serif"><span><br>
</span></font></div>
<div><font color="#000000" face="Arial, sans-serif"><span>Alain.</span></font></div>
</div>
<br>
<div dir="ltr" align="left" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;margin-left:0pt">
<span style="border:medium;border-collapse:collapse"><span style="height:26.7284pt"><span style="margin:0px;overflow:hidden">
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="background-color:transparent;font-family:Arial,sans-serif;font-size:10pt">Our mission is to build quantum computers </span><span style="background-color:transparent;font-family:Arial,sans-serif;font-size:10pt">that
are useful and available to people everywhere.</span></p>
</span></span></span></div>
<p dir="ltr" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:10pt;font-family:Arial,sans-serif;background-color:transparent;vertical-align:baseline"><br>
</span></p>
<p dir="ltr" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:10pt;font-family:Arial,sans-serif;background-color:transparent;font-style:italic;vertical-align:baseline">---</span></p>
<p dir="ltr" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:10pt;font-family:Arial,sans-serif;background-color:transparent;font-style:italic;vertical-align:baseline"><br>
</span></p>
<p dir="ltr" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:8pt;font-family:Arial,sans-serif;background-color:transparent;vertical-align:baseline">This e-mail message is privileged, confidential and subject to </span><span style="background-color:transparent;font-family:Arial,sans-serif;font-size:8pt">copyright.
Any unauthorized use or disclosure is prohibited.</span></p>
<p dir="ltr" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:8pt;font-family:Arial,sans-serif;background-color:transparent;vertical-align:baseline">Le contenu du présent courriel est privilégié, confidentiel et </span><span style="background-color:transparent;font-family:Arial,sans-serif;font-size:8pt">soumis
à des droits d'auteur. Il est interdit de l'utiliser ou </span><span style="background-color:transparent;font-family:Arial,sans-serif;font-size:8pt">de le divulguer sans autorisation.</span></p>
<span>_______________________________________________________________________________</span><br>
<span>The Quantum ESPRESSO Foundation stands in solidarity with all civilians worldwide who are victims of terrorism, military aggression, and indiscriminate warfare.</span><br>
<span>--------------------------------------------------------------------------------</span><br>
<span>Quantum ESPRESSO is supported by MaX (<a href="http://www.max-centre.eu" target="_blank">www.max-centre.eu</a>)</span><br>
<span>users mailing list <a href="mailto:users@lists.quantum-espresso.org" target="_blank">users@lists.quantum-espresso.org</a></span><br>
<span><a href="https://lists.quantum-espresso.org/mailman/listinfo/users" target="_blank">https://lists.quantum-espresso.org/mailman/listinfo/users</a></span></div>
</blockquote>
</div>
</div>
</blockquote></div>
<br>
<div dir="ltr" align="left" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;margin-left:0pt"><span style="border:medium;border-collapse:collapse"><span style="height:26.7284pt"><span style="margin:0px;overflow:hidden"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="background-color:transparent;font-family:Arial,sans-serif;font-size:10pt">Our mission is to build quantum computers </span><span style="background-color:transparent;font-family:Arial,sans-serif;font-size:10pt">that are useful and available to people everywhere.</span></p></span></span></span></div><p dir="ltr" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial,sans-serif;background-color:transparent;vertical-align:baseline"><br></span></p><p dir="ltr" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial,sans-serif;background-color:transparent;font-style:italic;vertical-align:baseline">---</span></p><p dir="ltr" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial,sans-serif;background-color:transparent;font-style:italic;vertical-align:baseline"><br></span></p><p dir="ltr" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8pt;font-family:Arial,sans-serif;background-color:transparent;vertical-align:baseline">This e-mail message is privileged, confidential and subject to </span><span style="background-color:transparent;font-family:Arial,sans-serif;font-size:8pt">copyright. Any unauthorized use or disclosure is prohibited.</span></p><p dir="ltr" style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:small;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8pt;font-family:Arial,sans-serif;background-color:transparent;vertical-align:baseline">Le contenu du présent courriel est privilégié, confidentiel et </span><span style="background-color:transparent;font-family:Arial,sans-serif;font-size:8pt">soumis à des droits d'auteur. Il est interdit de l'utiliser ou </span><span style="background-color:transparent;font-family:Arial,sans-serif;font-size:8pt">de le divulguer sans autorisation.</span></p>