Hello! I recently started with quantum computing. I am going to run pennylane with psi4. The following packages are installed: psi4, pennylane, openfermion, openfermionpsi4.
I got an error for a simple below code when I want to invoke psi4 package:
import pennylane as qml
from pennylane import qchem
from pennylane import numpy as np
import psi4
from openfermion.chem import MolecularData
from openfermionpsi4 import run_psi4
import tensorflow as tf
import time
start_time = time.time()
ang_coords = np.array([1.360247,0.000234,0.0903980,
1.790936,-0.799199,-0.262393,
1.790957,0.797996,-0.2661300])
symbols = [“O”,“H”,“H”]
geometry = np.array(ang_coords, requires_grad=True)
import tensorflow as tf
tensor = tf.constant(geometry)
geometry_arr = tensor.numpy()
H, qubits = qchem.molecular_hamiltonian(
symbols,
geometry_arr,
active_electrons=2,
active_orbitals=3, package=“psi4”)
singles, doubles = qchem.excitations(active_electrons, qubits)
print(qubits)
Error:
TypeError: molecular_hamiltonian() got an unexpected keyword argument ‘package’
Any comments would be appreciated.
Thanks