Skip to content

Rust exeception raised when transpiling PaulEvolutionGate with measurements against backend #13586

@nonhermitian

Description

@nonhermitian

Environment

  • Qiskit version: 1.3.1
  • Python version:
  • Operating system: linux

What is happening?

backend = provider.backend('ibm_nazca')

hamiltonian = SparsePauliOp.from_list([('IXX', 1), ('IYY', 1), ('IZZ', 1),
                                       ('XXI', 1), ('YYI', 1), ('ZZI', 1)])

N = 8
qc = QuantumCircuit(3)
# Initial state 110
qc.x([1, 2])
op = PauliEvolutionGate(hamiltonian, time=1)
qc.append(op.power(N), [0,1,2])
qc.measure_all()

transpile(qc, backend)

gives

thread '' panicked at crates/circuit/src/interner.rs:147:14:
the caller is responsible for only using interner keys from the correct interner
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

PanicException: the caller is responsible for only using interner keys from the correct interner

How can we reproduce the issue?

run above

What should happen?

it should work. It does if I first compile against no backend, and then use those circuits as input to the backend transpile

Any suggestions?

No clue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions