Git Product home page Git Product logo

Comments (3)

RichRick1 avatar RichRick1 commented on July 28, 2024

@manyasha-n-m @Pavlo3P @alnaba1 I've implemented G constraint and merged it into the master branch. You can use it as a template, but don't hesitate to ask me if you need some further clarification.

@PaulWAyers I assume that number of electrons is given by user, but do you thing, I should compute from DM directly inside the function? Implementation is here

from pyci.

PaulWAyers avatar PaulWAyers commented on July 28, 2024

The number of electrons can be given by the user or inferred from the density matrix. I would allow it as an optional argument; if it is not given then the density matrix is used to infer the number of electrons. If the number of electrons is given, then this affects the value of the trace one is enforcing.

from pyci.

PaulWAyers avatar PaulWAyers commented on July 28, 2024

So if n == None then:
you would compute.

Note that by pep8 standards I am pretty sure that n should be lower case. Might be better to name it n_el or n_e just to be clearer.

from pyci.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.