Skip to content

Commit

Permalink
Adapt examples
Browse files Browse the repository at this point in the history
  • Loading branch information
yannick-couzinie committed Nov 20, 2024
1 parent e2bff08 commit fc5966d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/PauliSumOp/pauli_sum_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,16 @@ def __init__(self):
self.rz0 = tq.RZ(has_params=True, trainable=True)
self.crx0 = tq.CRX(has_params=True, trainable=True)

self.measure = tq.MeasureMultiPauliSum(
self.measure = tq.MeasureMultiQubitPauliSum(
obs_list=[
{'coefficient': [0.2, 0.5]},
{
"wires": [0, 2, 3, 1],
"observables": ["x", "y", "z", "i"],
"coefficient": [1, 0.5, 0.4, 0.3],
},
{
"wires": [0, 2, 3, 1],
"observables": ["x", "x", "z", "i"],
"coefficient": [1, 0.5, 0.4, 0.3],
},
]
)
Expand Down
Empty file.

0 comments on commit fc5966d

Please sign in to comment.