Skip to content

Equivalent circuits have different Hamiltonians? #7

@lukeburns

Description

@lukeburns

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})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions