Skip to content

Commit

Permalink
✨ Lint! ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
javabster committed Mar 25, 2022
1 parent 0dd97b8 commit 08e70d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def prepare_state(self, state, qubits=None, label=None):
* QuantumRegister: A list of qubits to be initialized [Default: None].
* int: Index of qubit to be initialized [Default: None].
* list: Indexes of qubits to be initialized [Default: None].
label: An optional label for the gate
label (str): An optional label for the gate
Returns:
qiskit.circuit.Instruction: a handle to the instruction that was just initialized
Expand Down
1 change: 1 addition & 0 deletions test/python/circuit/library/test_state_preparation.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def test_incompatible_state_and_qubit_args(self):

def test_incompatible_int_state_and_qubit_args(self):
"""Test error raised if number of qubits not compatible with integer state arg"""
# pylint: disable=pointless-statement
with self.assertRaises(QiskitError):
stateprep = StatePreparation(5, num_qubits=2)
stateprep.definition
Expand Down

0 comments on commit 08e70d6

Please sign in to comment.