ITensor / ITensor/ITensorNetworks.jl
Allow passing a `Graphs.SimpleGraph` to `siteinds`
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 128
- Forks
- 23
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 7
Description
Allow passing Graphs.SimpleGraph to siteinds(site_type::String, graph).
Also define a default constructor NamedDimGraph(g::SimpleGraph) = NamedDimGraph(g, 1:nv(g)) which could be used internally in siteinds(::String, graph).
Originally posted by @mtfishman in https://github.com/mtfishman/ITensorNetworks.jl/pull/6#discussion_r978956086
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by searching for siteinds(site_type::String, graph) and the NamedDimGraph constructors. Inspect how graph inputs are currently handled, then add support for Graphs.SimpleGraph and the requested default constructor. Done means both the SimpleGraph call path and constructor behavior work as described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100