For some reason I get the following error when attempting to find the inverse of the EfficientSU2
VQE variational form:
TypeError: 'NoneType' object is not reversible
My code is as follows:
var_form = EfficientSU2(6, entanglement="linear")
var_form_inv = var_form.inverse() # error thrown of this line
Is there a bug in the implementation of the inverse
method? and if so how can I implement a working inverse
function?
Note qiskit.__qiskit_version__
:
{'qiskit-terra': '0.15.2',
'qiskit-aer': '0.6.1',
'qiskit-ignis': '0.4.0',
'qiskit-ibmq-provider': '0.9.0',
'qiskit-aqua': '0.7.5',
'qiskit': '0.21.0'}