-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Cliffords to QuantumCircuits as Operations (#7966)
* Adding Clifford to a QuantumCircuit natively; adding some tests; adding a preliminary Clifford optimization pass * Making Instruction.condition into a property * improving tests * adding release notes * A few changes based on review * Removing definition from Operation interface. Instead adding HighLevelSynthesis transpiler pass, and incorporating it into the preset pass managers * minor lint fix * moving all of broadcast functionality to a separate file; removing broadcast from Operation interface and in particular from Clifford * moving HighLevelSynthesis pass from Decompose to QuantumCircuit.decompose; slightly changing Decompose pass to skip nodes with definition attribute * Fixing broadcasting for Cliffords * making sure that transpile decomposes cliffords * lint * As per code review, replacing x._direction by getattr(x, '_direction', False) * Removing condition from Operation API. Removing previously added getter and setter to instruction.py. As per code review, starting to replace condition getters and setters. For now, only dagcircuit and circuit_to_instruction. * pass over condition in transpiler code * more refactoring of condition * finishing condition pass * minor fixes * adding OptimizeClifford pass to __init__ * Improving release notes * considering DAG nodes in topological order; adding a simple test to see this * typo * release notes fixes * Adding TODO comment to HighLevelSynthesis pass * another attempt to fix docs build * Fix based on code review * Only construction Operator from Instruction (as before) and from Clifford (for backward compatibility)
- Loading branch information
1 parent
dadacb8
commit 19fdd32
Showing
43 changed files
with
738 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.