Skip to content

MiqroEra/Stabilizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stabilizer

微信图片_20220920130336 A tool for finding & sorting the HF stabilizers

Install

Since this is a simple python file, just include it directly in $PYTHONPATH.

Dependency

Need Numpy package

How to Use

from stabilizer import hf

myhf = hf(p) # p is the path or qiskit tensor object
myhf.run() # Predict the states
# now the tool can not deal with entangled states 
# only core and vacuum orbitals could be fill.

myhf2 = hf(p)
myhf2.get_state_energy('000010111101') 
# Check the energy of some certain state.

The pauli operators is stored in a sorted "quaternary tree" (like binary tree) so that when a stabilizer is found, the number of term decrease as $log_4N$.

See more details in the examples

About

A tool for finding & sorting the HF stabilizers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages