Skip to content

Releases: tiago939/QuForge

Version 0.1.13 released

07 Nov 17:57
Compare
Choose a tag to compare

This version fixes a problem when specifying manually the angle parameters of the rotation gates. Now these gates receives explicitly the number of qudits (wires) of the circuit.

Additionally, we have implemented a experimental gate called "Universal Gate", that parameterize the entire Hilbert space, allowing building highly expressive circuits. You can use it stand alone as:

U = qf.U(dim=dim, wires=wires)

or inside a circuit, for instance:

circuit = qf.Circuit(dim=2, wires=3)
circuit.U()
state = qf.State('0-0-0')
circuit(state)

Version 0.1.12 released

07 Oct 18:15
Compare
Choose a tag to compare

This version fixes a problem in the measurement function, now it needs the number of qudits as the argument.
Before:

histogram, p = qf.measure(state=yourstate, dim=dim)

After:

histogram, p = qf.measure(state=yourstate, dim=dim, wires=wires)

Additionally, we fixed a typo in the docs.

Before:

import quforge as qf

Now it reads:

import quforge.quforge as qf

v0.1.1

03 Oct 17:40
Compare
Choose a tag to compare

We moved the library to PyPi package, you can now install it with pip!

pip install quforge

Other changes:

  • Changed license to Apache 2

  • Added some non-linear PyTorch functions. For instance, you can call the hyperbolic tangent as:

import quforge.quforge as qf

tanh = qf.Tanh()
y = tanh(x)