Closed anhph closed 3 years ago
The ElectronicStructureProblem takes a driver and list of transformers, so you would do it like this
problem = ElectronicStructureProblem(driver, transformers=[FreezeCoreTransformer()])
See API ref doc here for more info https://qiskit.org/documentation/nature/stubs/qiskit_nature.problems.second_quantization.ElectronicStructureProblem.html
@anhph Did my suggestion solve your issue? If so please go ahead and close this.
Yes. Thanks a lot.
Information
What is the current behavior?
when apply FreezeCoreTransformer to driver, and pass it to ElectronicStructureProblem, the problem second_q_ops doesn't work
Steps to reproduce the problem
gives
What is the expected behavior?
Suggested solutions