ITensor / ITensor/NamedGraphs.jl

Introduce `cartesian_graph(...)`

Open
#42 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
10
Forks
5
Avg merge
6h 43m
Merged PRs (30d)
17

Description

Introduce cartesian_graph(dims...) for making a NamedGraph with cartesian vertex names, i.e.:

cartesian_graph(2, 2)

would have vertices [(1, 1), (1, 2), (2, 1), (2, 2)].

Additionally,

cartesian_graph(grid((2, 2)), (2, 2))

to wrap a SimpleGraph in a NamedGraph with cartesian vertices.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing NamedGraph and SimpleGraph constructors and the grid((2, 2)) API. Implement the two requested cartesian_graph forms, then verify that the generated NamedGraph has the expected cartesian vertex names and that wrapping a SimpleGraph preserves its structure.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.