Skip to content

Incorrect expectation estimation when Reset is used in circuit #12519

@SillieWous

Description

@SillieWous

Environment

  • Qiskit version: 1.1.0
  • Python version: 3.12.3
  • Operating system: Fedora 40 Workstation

What is happening?

In a circuit (aimed at simulation of a hamiltonian with disipation) I am getting incorrect estimation values of observables. The system I am simulating has two identical (non-interacting) qubit oscilators. For dissipation a non-unitary operation is implemented with an ancilla qubit that is reset at the start of a trotterisation step and measured at the end of the step to get the dissipation factor.

How can we reproduce the issue?

See GitLab repo for an example.

What should happen?

Since these are two identical systems without interaction they ought to measure the exact same state trajectory. However there are frequently values that do not agree between the two systems.

The image that is in the example (Out[8]) illustrates this pretty obviously.

Moreover the way the observables are defined they should always sum to 1 (see Out[6] in the example notebook). But at the indices where the image shows odd behaviour this is not the case. Looking at the values of the observables it seems a value of an earlier measurement is used instead of the correct one.

Any suggestions?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmod: primitivesRelated to the Primitives module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions