Skip to content

Implement multi measurement types inside the same circuit #19

@Bmete7

Description

@Bmete7

The adapter fails to address a submission of a circuit that has multiple measurement instructions as follows:

@qml.qnode(dev)
def probability_circuit(gamma, alpha, wires, layers):
    circuit([gamma, alpha], wires=wires, layers=layers)    
    probs = qml.probs(wires=wires)
    exp_value = qml.expval(cost_h)
    return probs, exp_value

The backend should be able to extract these instructions and return separate measurements

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions