Blueqat 0.3.17
Release Date
June 2, 2020
Enhancement
- Improve speed for Pauli operator's
to_matrix()
method - Add
n_qubits
property for Pauli operator term and expr.
Debug
- Correct pauli.Term.simplify method
- Solve the problem that constant value of
max_n
raises exception
Benchmark data for Pauli operator's to_matrix()
method
Machine spec:
CPU: AMD Ryzen 7 3800X
Mem: 16GB
Random generated Hamiltonian
Making CSC (sparse) matrix from random generated Hamiltonian.
row: The number of qubits
column: The number of terms
cell: Time (sec.)
Blueqat 0.3.16 (Previous release)
Blueqat 0.3.17 (This release)
Compare
Time in v0.3.16 / Time in v0.3.17
Greater than 1: v0.3.17 is faster than v0.3.16
Less than 1: v 0.3.17 is slower than v0.3.16
For large Hamiltonian, this release is 100 times faster than previous release
LiH Hamiltonian
Compared with OpenFermion's qubit_operator_sparse
.
Normally, the number of qubits is 12, but can be add redundant qubit via n_qubits parameter.
Measure 12 qubits to 19 qubits.
(*1): Due to lack of memory, so many swap out occurred. Blueqat implementation is less memory consumption than OpenFermion.
How to install
New install
pip install blueqat
Update
pip install -U blueqat