OpenFermion icon indicating copy to clipboard operation
OpenFermion copied to clipboard

Improve runtime type checking in symmetry_conserving_bravyi_kitaev

Open kwkbtr opened this issue 2 years ago • 0 comments

Since the current runtime type checking in symmetry_conserving_bravyi_kitaev uses type(), it raises an error when one uses a subclass of FermionOperator. To cover such cases, it is better to use isinstance() instead of type().

kwkbtr avatar Jun 22 '22 06:06 kwkbtr