Comments (2)
Should we close this?
from netket.
@twesterhout for EdgeColorsFromList()
we are assuming that two-dimensional colorlist
vector is Nx3, where N is the number of edges. In colorlist[0]
our three elements are the label for vertices 1 and 2 and the integer color for that edge (in that order). I realized that the ordering is someone arbitrary here, so in PR #65, when I created the python utilities to convert networkx and igraph graphs into netket::Graphs
this is taken care of automatically so users don't have to remember the order.
As for the EdgeColorsFromAdj()
function we are assuming that the adjacency list is built and stored
// If edge colors are specificied read them in, otherwise set them all to
// 0
if (FieldExists(pars, "EdgeColors")) {
std::vector<std::vector<int>> colorlist =
FieldVal<std::vector<std::vector<int>>>(pars, "EdgeColors", "Graph");
EdgeColorsFromList(colorlist, eclist_);
} else {
InfoMessage() << "No colors specified, edge colors set to 0 "
<< std::endl;
EdgeColorsFromAdj(adjlist_, eclist_);
}
Since it looks like you are going to get rid of the storing the adjacency list (or only storing it temporarily) in #85 we may want to do this a different way.
After both functions are complete the graph member varialbe eclist_ should be populated.
from netket.
Related Issues (20)
- nkjax.jacobian has an undocumented rescaling when center=True
- `vs.to
- `vs.to_qobj` is broken for constrained Hilbert spaces
- Error with VMC_SRt
- Incomprehensible bug from PauliOperatorJax
- Rename `MestropolisSampler.n_sweeps` to `sweep_size` HOT 2
- Issue on page /api/_generated/samplers/netket.experimental.sampler.MetropolisExchangePt.html
- [FR] Euclidian distance between nodes in `nk.graph.lattice` HOT 3
- Document the `mpi.n_nodes` rescaling factor in gradient computation with `nk.jax.expect` HOT 19
- MinSR regularisation HOT 8
- `vs.sample(n_samples=X, chain_length=Y)` does not error and silently ignores one argument
- vmap for modules HOT 3
- Sharding errors in sampler when using `reset_chains` in multi-node setting HOT 5
- Bug in hilbert space indexing with MPI HOT 4
- Adaptive time step fails if t0 is an integer HOT 2
- Conjugation of fermionic operators is wrong HOT 2
- Examples of observables/density operator for netket.experimental.TDVP
- TDVP not implemented for Squared LocalLiouvillian operators HOT 4
- Issue with shapes when using parallel tempering sampler on MPI HOT 6
- Generalized Hartree fock HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netket.