Skip to content

Blueqat 0.3.17

Compare
Choose a tag to compare
@gyu-don gyu-don released this 02 Jun 04:18
· 306 commits to master since this release

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)

Screenshot_20200602_132935

Blueqat 0.3.17 (This release)

Screenshot_20200602_133045

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

Screenshot_20200602_133207

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.

Screenshot_20200602_133715
(*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