This is hotfix of [0.3.15](https://github.com/Blueqat/Blueqat/releases/tag/0.3.15) bug.
Sorry for inconvenient.
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.
py
from blueqat.vqe import Vqe, non_sampling_sampler
hamiltonian = ...
Vqe(hamiltonian, sampler=non_sampling_sampler)
`pauli.to_matrix()` qubit order is reordered.
Previous: X[0] * Y[1] is X ⊗ Y
New: X[0] * Y[1] is Y ⊗ X
New behavior is equivalent with Blueqat circuit's statevector order.