def METHOD_NAME(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