qulacs.utils

Package Contents

Functions

convert_openfermion_op

convert_openfermion_op

qulacs.utils.convert_openfermion_op(openfermion_op, n_qubits=None)

convert_openfermion_op :param openfermion_op: :type openfermion_op: openfermion.ops.QubitOperator :param n_qubit: if None (default), it automatically calculates the number of qubits required to represent the given operator :type n_qubit: int

Returns:

qulacs.GeneralQuantumOperator