-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #224
- Loading branch information
Showing
20 changed files
with
119 additions
and
117 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from pytket import Circuit, OpType | ||
from tket2.passes import taso_pass | ||
from tket2.passes import badger_pass | ||
|
||
|
||
def test_simple_taso_pass_no_opt(): | ||
def test_simple_badger_pass_no_opt(): | ||
c = Circuit(3).CCX(0, 1, 2) | ||
taso = taso_pass(max_threads=1, timeout=0) | ||
taso.apply(c) | ||
badger = badger_pass(max_threads=1, timeout=0) | ||
badger.apply(c) | ||
assert c.n_gates_of_type(OpType.CX) == 6 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
//! Optimisers for circuit rewriting. | ||
//! | ||
//! Currently, the only optimiser is TASO | ||
//! Currently, the only optimiser is Badger | ||
pub mod taso; | ||
pub mod badger; | ||
|
||
#[cfg(feature = "portmatching")] | ||
pub use taso::DefaultTasoOptimiser; | ||
pub use taso::{TasoLogger, TasoOptimiser}; | ||
pub use badger::DefaultBadgerOptimiser; | ||
pub use badger::{BadgerLogger, BadgerOptimiser}; |
Oops, something went wrong.