I expected Hamiltonians to be invariant under changing the order in which parallel edges are added, but this appears not to be the case.
Is this a change in coordinates somehow, or a bug?
graph.add_edge(0,1, element = 'L')
graph.add_edge(0,1, element = 'J')
circuit = cq.CircuitQ(graph, ground_nodes=[0, 1])
print(circuit.h)
yields
-E_{J010}*cos(\tilde{\Phi}_{010}/\Phi_{o})
While
graph.add_edge(0,1, element = 'J')
graph.add_edge(0,1, element = 'L')
circuit = cq.CircuitQ(graph, ground_nodes=[0, 1])
print(circuit.h)
yields what looks something like a small angle approximation (?) of the above Hamiltonian
-E_{J010} + \tilde{\Phi}_{010}**2/(2*L_{010})
I expected Hamiltonians to be invariant under changing the order in which parallel edges are added, but this appears not to be the case.
Is this a change in coordinates somehow, or a bug?
yields
-E_{J010}*cos(\tilde{\Phi}_{010}/\Phi_{o})While
yields what looks something like a small angle approximation (?) of the above Hamiltonian
-E_{J010} + \tilde{\Phi}_{010}**2/(2*L_{010})