Skip to content

Effect by Numpy>=2.0, codes with numpy.string_ raise AttributeError #1024

Open
@azure1ce

Description

@azure1ce

Hi, I'm runing VQE by using Nvidia's cudaq package, it's
------------------cudaq.chemistry.create_molecular_hamiltonian() --------------
function stack with
--------------line 711 in file of "openfermion/chem/molecular_data.py"------------
shows:
----------AttributeError: numpy.string_ was removed in the NumPy 2.0 release. Use numpy.bytes_ instead.----------
I found that there are 7 usage in the file, not sure how many usage in the whole package
So that warning to may need maintain the code for the future use.

Thank you for building the package

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions