Blueqat

Latest version: v2.0.4

Safety actively analyzes 681790 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

2.0.4

New cuQuantum Backend both on cuStateVec and cuTensorNet
limited gate support with cusv and cutn backend.

2.0.0

New default backend based on Tensor Network
The back end has been changed to the tensor network. The previous backend environment can still be used with .run(backend="numpy").

New QAOA function
QAOA function is changed to the tensornetwork based.

1.0.4

bug fixed on qaoa

1.0.3

QAOA with Tensornetwork


from blueqat.utils import qaoa

from blueqat import Circuit
from blueqat.pauli import qubo_bit as q
from blueqat.pauli import X,Y,Z,I

hamiltonian = (15-(1+2*q(0)+4*q(1))*(1+2*q(2)))**2
step = 1
init = Circuit().h[0].cx[0,1].x[0]
mixer = (X[0]*X[1]+Y[0]*Y[1])*0.5

result = qaoa(hamiltonian, step, init, mixer)

result.circuit.run(backend="quimb", shots=1000)

1.0.2

Bug fixed

1.0.0

Added backend for tensor network

The backend of blueqat will be changed to tensor network in the near future. Now try specifying the back end as "quimb".

python
from blueqat import Circuit
Circuit(50).h[:].run(backend="quimb")


Get the single amplitude
python
Circuit(4).h[:].run(backend="quimb", amplitude="0101")


Get the sample
python
Circuit(4).h[:].run(backend="quimb", shots=100)


Get the expectation value of hamiltonian
python
from blueqat.pauli import Z
hamiltonian = 1*Z[0]+1*Z[1]
Circuit(4).x[:].run(backend="quimb", hamiltonian=hamiltonian)

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.