mindquantum.core.operators

Contents

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#

API Name

Description

FermionOperator([...])

Definition of a Fermion Operator.

Hamiltonian(...)

A QubitOperator hamiltonian wrapper.

InteractionOperator(...)

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

PolynomialTensor([...])

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

Projector(proj)

Projector operator.

QubitExcitationOperator([...])

QubitExcitationOperator class.

QubitOperator([...])

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

TimeEvolution(ops)

The time evolution operator that can generate a corresponded circuit.

Function#

API Name

Description

commutator(...)

Compute the commutator of two operators.

count_qubits(operator)

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

down_index(index)

Down index getter function.

get_fermion_operator(...)

Convert the tensor (PolynomialTensor) to FermionOperator.

ground_state_of_sum_zz(ops)

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

hermitian_conjugated(...)

Return Hermitian conjugate of FermionOperator or QubitOperator.

normal_ordered(...)

Calculate and return the normal order of the FermionOperator.

number_operator([...])

Return a fermionic number operator for the reverse_jordan_wigner transform.

sz_operator(...)

Return the sz operator.

up_index(index)

Up index getter function.