Skip to content

Blueqat 0.3.15

Choose a tag to compare

@gyu-don gyu-don released this 20 May 04:50
· 339 commits to master since this release

This version contains critical bug. Please use 0.3.16 or later version.

Changes

Vqe() class

When sampler is default, make sparse matrix and calculate expectation directly.
This is for performance improvement.
(If you're using default sampler, your VQE code is speed-up without any changes.)

VQE is still under refactoring process and this API may be changed in future release, however, because this feature is very important, I want to merge this feature in the master.

Many cases of VQEs, this change makes fantastic speed-ups.
However, some cases, this change makes slow down.

To make previous default behaviour, specify sampler as previous default sampler.

from blueqat.vqe import Vqe, non_sampling_sampler
hamiltonian = ...
Vqe(hamiltonian, sampler=non_sampling_sampler)