Skip to content

Problem with shunt capacitance to ground #3

@alelandra

Description

@alelandra

While drawing a flux tunable two island transmon I was not able to implement correctly the shunt capacitance to ground of left and right island.

graph = nx.MultiGraph()
graph.add_edge(1, 2, element='C')
graph.add_edge(1, 2, element='J')
graph.add_edge(1, 2, element='J')
# shunt capacitances to ground
graph.add_edge(0, 1, element='C')
graph.add_edge(2, 3, element='C')

circuit = cq.CircuitQ(graph, ground_nodes= [0,3])
circuit.h

where the error is
Exception: Specified ground node 0 is not an active node.

It seems this error is present in also more complex structures, whenever a ground node is not terminated at some qubit node. One could terminate all the ground nodes of a complex circuit to the same qubit ground node for example, although the graph get a bit confusing and makes the ground_nodes= parameter useless, and I am not sure if it is interpreted correctly since both C will be called C01

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions