Skip to content

Blueqat 0.3.14

Compare
Choose a tag to compare
@gyu-don gyu-don released this 12 May 09:05
· 324 commits to master since this release

Release Date: 12 May. 2020

Features

  • Add new gates, rxx, ryy, rzz, cswap.
  • Add Circuit.dagger. Circuit().rx(0.1)[0].cx[0, 1].t[0].dagger() is Circuit().tdg[0].cx[0, 1].rx(-0.1)[0].
  • Add mixer argument for QaoaAnsatz. (This feature may be changed in the future.) This is for Quantum Alternative Operator Ansatz.
  • Add sparse option for pauli.Expr.to_unitary. It returns scipy's sparse matrix. (X[0] + Y[3]).to_matrix(sparse='csc') # csc matrix The performance for larger qubits expr is better than (default's) dense matrix, but still not fast.

Experimental

Add blueqat.experimental.utils.circuit_to_unitary. It returns unitary matrix instead of statevector.
Blueqat already has to_unitary method for sympy's unitary gate.
However, this function runs the circuit with a backend which returns statevector.
This feature is useful for debugging the circuit, and it's too heavy for larger circuit.

Install

New install
pip install blueqat

Update
pip install -U blueqat