Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
austingmhuang committed Apr 18, 2024
1 parent 2811526 commit 570ad48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pennylane_qiskit/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,7 @@ def _expr_eval_clvals(clbits, clvals, expr_func, bitwise=False):

return condition_res


# diagonalize is currently only used if measuring
# maybe always diagonalize when measuring, and never when not?
# will this be used for a user-facing function to convert from PL to Qiskit as well?
Expand Down Expand Up @@ -1143,4 +1144,4 @@ def mp_to_pauli(mp, register_size):

pauli_string = ("").join(pauli_string)

return SparsePauliOp(pauli_string)
return SparsePauliOp(pauli_string)
1 change: 1 addition & 0 deletions tests/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1475,6 +1475,7 @@ def cost(x, y):

assert np.allclose(jac, jac_expected)


class TestConverterPennyLaneCircuitToQiskit:

def test_circuit_to_qiskit(self):
Expand Down

0 comments on commit 570ad48

Please sign in to comment.