Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Hosseinberg authored Apr 25, 2023
1 parent 4a48c27 commit 3efa677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane_qulacs/qulacs_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def _apply_controlled_qubit_unitary(self, op, inverse=False):
control_values = op.control_values
par = op.parameters

if len(control_wires) + len(target_wires) == len(device_wires):
if len(control_wires) + len(target_wires) != len(device_wires):
raise ValueError("len(device_wire) should be equal to len(control_wires) + len(target_wires)")

if len(par[0]) != 2 ** len(target_wires):
Expand Down

0 comments on commit 3efa677

Please sign in to comment.