Skip to content

Commit

Permalink
Linter fixing (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
atilag authored Aug 18, 2019
1 parent 0086c04 commit 074c8db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qiskit/providers/aer/extensions/snapshot_expectation_value.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self,

else:
if variance:
super().__init__(label, 'expectation_value_matrix_with_variance', num_qubits, num_clbits, params)
super().__init__(label, 'expectation_value_matrix_with_variance', num_qubits,
num_clbits, params)
else:
super().__init__(label, 'expectation_value_matrix', num_qubits, num_clbits, params)

Expand All @@ -62,7 +63,7 @@ def snapshot_expectation_value(self,
Works on all qubits, and prevents reordering (like barrier).
Args:
label (str): a snapshot label to report the result
op (Operator): operator to snapshot
op (Operator): operator to snapshot
qubits (list or None): the qubits to apply snapshot to [Default: None].
params (list or None): the parameters for snapshot_type [Default: None].
Returns:
Expand All @@ -71,7 +72,6 @@ def snapshot_expectation_value(self,
ExtensionError: malformed command
"""

num_qubits = len(op)
snapshot_register = Snapshot.define_snapshot_register(self, label, qubits)

return self.append(
Expand Down

0 comments on commit 074c8db

Please sign in to comment.