mindquantum.algorithm.nisq.generate_uccsd
- mindquantum.algorithm.nisq.generate_uccsd(molecular, threshold=0)[source]
- Generate a uccsd quantum circuit based on a molecular data generated by Openfermion. - Parameters
- molecular (Union[str, MolecularData]) – the name of the molecular data file, or openfermion MolecularData. 
- threshold (float) – the threshold to filter out the uccsd amplitude. We only keep the excitation operator with absolute value of amplitude greater than threshold, so that if threshold=0, we only keep excitation operator with non zero amplitude. Default: - 0.
 
- Returns
- uccsd_circuit (Circuit), the ansatz circuit generated by uccsd method. 
- initial_amplitudes (numpy.ndarray), the initial parameter values of uccsd circuit. 
- parameters_name (list[str]), the name of initial parameters. 
- qubit_hamiltonian (QubitOperator), the hamiltonian of the molecule. 
- n_qubits (int), the number of qubits in simulation. 
- n_electrons (int), the number of electrons of the molecule.