Quforge

Latest version: v0.1.13

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

Scan your dependencies

0.1.13

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:

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


or inside a circuit, for instance:

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

0.1.12

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

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


After:

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


Additionally, we fixed a typo in the docs.

Before:

bash
import quforge as qf

Now it reads:

bash
import quforge.quforge as qf

0.1.1

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

bash
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:

bash
import quforge.quforge as qf

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


- A few updates on the documentation [quforge.readthedocs.io](https://quforge.readthedocs.io)

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.