mindquantum.core.operators

MindQuantum operators library. An operator is composed of a combination of one or more basic gates.

Contains classes representing:

  • Qubit operators

  • Fermion operators

  • TimeEvolution operator

Class

mindquantum.core.operators.FermionOperator

Definition of a Fermion Operator.

mindquantum.core.operators.Hamiltonian

A QubitOperator hamiltonian wrapper.

mindquantum.core.operators.InteractionOperator

Class to store 'interaction opeartors' which are used to configure a ferinonic molecular Hamiltonian.

mindquantum.core.operators.PolynomialTensor

Class to store the coefficient of the fermionic ladder operators in a tensor form.

mindquantum.core.operators.Projector

Projector operator.

mindquantum.core.operators.QubitExcitationOperator

QubitExcitationOperator class.

mindquantum.core.operators.QubitOperator

A sum of terms acting on qubits, e.g., 0.5 * 'X1 X5' + 0.3 * 'Z1 Z2'.

mindquantum.core.operators.TimeEvolution

The time evolution operator that can generate a corresponded circuit.

Function

mindquantum.core.operators.commutator

Compute the commutator of two operators.

mindquantum.core.operators.count_qubits

Calculate the number of qubits on which operator acts before removing the unused qubit.

mindquantum.core.operators.down_index

Down index getter function.

mindquantum.core.operators.get_fermion_operator

Convert the tensor (PolynomialTensor) to FermionOperator.

mindquantum.core.operators.ground_state_of_sum_zz

Find the ground state energy of qubit operator that only has pauli \(Z\) term.

mindquantum.core.operators.hermitian_conjugated

Return Hermitian conjugate of FermionOperator or QubitOperator.

mindquantum.core.operators.normal_ordered

Calculate and return the normal order of the FermionOperator.

mindquantum.core.operators.number_operator

Return a fermionic number operator for the reverse_jordan_wigner transform.

mindquantum.core.operators.sz_operator

Return the sz operator.

mindquantum.core.operators.up_index

Up index getter function.