Skip to content

Add ZX-Calculus functionality with pyzx and OpenQASM import/export ability#2

Open
clausia wants to merge 24 commits intodevelfrom
add-pyzx-and-qasm
Open

Add ZX-Calculus functionality with pyzx and OpenQASM import/export ability#2
clausia wants to merge 24 commits intodevelfrom
add-pyzx-and-qasm

Conversation

@clausia
Copy link
Owner

@clausia clausia commented Jan 4, 2021

Adding the ZX-Calculus functionality to Tequila with the help of the pyzx package, for which it was necessary to implement the OpenQASM code import and export functionality, since it is the way to communicate with pyzx.

However, these new import and export functions of OpenQASM is a new ability for Tequila that can be leveraged in different ways.

…Calculus operations

ajustes

Validate import pyzx and validate multiple targets and max 2 controls

compile_ry() consider all targets, and small fix name

improve compile_y() method

Add flag for zx-calculus and break down controlled rotations not supported by qasm

set default value

Tests for compile_ry and compile_y

Convinient unitary gates: U, u1, u2, u3 and its tests

Import QASM code logic, including custom gates

Pyzx doesn't understand controlled-H, so a compile option is added to support CH for pyzx
@clausia clausia added the enhancement New feature or request label Jan 4, 2021
@clausia clausia self-assigned this Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants