Skip to content

refactor Compiler#2

Open
georgios-ts wants to merge 49 commits intogeneratorsfrom
compiler
Open

refactor Compiler#2
georgios-ts wants to merge 49 commits intogeneratorsfrom
compiler

Conversation

@georgios-ts
Copy link
Owner

@georgios-ts georgios-ts commented Dec 12, 2020

Introduced changes:

  • Creates (or updates) compile_controlled_rotation, compile_controlled_phase, compile_controlled_power.
  • Removes power_recursor
  • Removes any code that was "Hadamard" specific. A Hadamard gate is now treated as every other power gate.
  • Updates compile_to_cc to stop at gates with 1 control. Previously, it was stopping at 2 . I believe this increases the compatibility with the backends (or any other external library).
  • Add supports for compiling a power of Swap gate (+ a simplification for unnecessary controls).
  • Updates do_compile_trotterized_gate to track the constant term of a generator if it is controlled.

and

  • Updates the paramater of PowerGateImpl (multiply by pi) and fixes this in cirq backend.

@georgios-ts
Copy link
Owner Author

@kottmanj

kottmanj and others added 19 commits December 17, 2020 20:58
…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 and others added 20 commits January 11, 2021 21:16
* fixed bug in keymap that prevented sample accumulation when mapped to smaller subregister

* added a test for the last commit
* Pr keymap fix (tequilahub#109)

* fixed bug in keymap that prevented sample accumulation when mapped to smaller subregister

* added a test for the last commit

* added some warnings for custom qubit_maps in backends, fixed some wrong behaviour

* small fixes regarding to last commit and qubit maps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants