qlasskit icon indicating copy to clipboard operation
qlasskit copied to clipboard

A python-to-quantum compiler

Results 18 qlasskit issues
Sort by recently updated
recently updated
newest added

Implement integer division `//` (known as floor_div) for Qint type using the following algorithm: [Integer_division_(unsigned)_with_remainder](https://en.wikipedia.org/wiki/Division_algorithm#Integer_division_(unsigned)_with_remainder) Handle division by constant using the same optimization method used for multiplying with constant implemented...

enhancement
python ast
unitaryhack

- Propose and implement an algorithm in the [`qlasskit.algorithms`](https://github.com/dakk/qlasskit/tree/master/qlasskit/algorithms) package. - The algorithm have to use one or more `qlassf` functions. - The algorithm have to preferably come from a...

help wanted
algorithm

Create a cli tool in the [`qlasskit/tools`](https://github.com/dakk/qlasskit/tree/master/qlasskit/tools) package called `py2bexp` that receives a python script (file or stdin) in input and outputs bool expressions. The python script should contain at...

feature

Create a cli tool in the [`qlasskit/tools`](https://github.com/dakk/qlasskit/tree/master/qlasskit/tools) package called `py2qasm` that receives a python script (file or stdin) in input and outputs qasm code. The python script should contain at...

feature

Implement the `ast.Pow` operator (**) between a variable and an integer constant. Since a ** n == a * a * ... * a, we implement this operator with a...

enhancement
python ast

Maybe is better to have Qint to be signed, and QUint to be unsigned?

typing

Integrate in `QCircuit` a new function called `zx_simplify` that call `zx.simplify.full_reduce(circuit)` on pyzx and return a simplified `QCircuit`. After that, we need to extend the test suite for benchmarking all...

enhancement
optimization

In some places of the code we are using `type: ignore` for disabling mypy checks. We need to remove all ignores, enforcing type consistency. ``` $ grep -R "type: ignore"...

enhancement
typing

When qlasskit parses expressions containing constants, the boolean form containing the constant is created and then optimized (if possible). A smarter approach would be to evaluate constant expression during ast2logic...

enhancement
optimization
python ast