-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from Cornell-QCA/fusion
Fusion Touch Ups + Fusion Verification
- Loading branch information
Showing
12 changed files
with
328 additions
and
159 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import pytest | ||
from anyon_braiding_simulator import Anyon, IsingTopoCharge | ||
from anyon_braiding_simulator import Anyon, IsingTopoCharge, TopoCharge | ||
|
||
|
||
@pytest.mark.anyon | ||
def test_anyon(): | ||
anyon = Anyon('thisisatest', IsingTopoCharge.Psi, (1, 1)) | ||
anyon = Anyon('thisisatest', TopoCharge.from_ising(IsingTopoCharge.Psi), (1, 1)) | ||
assert anyon.name == 'thisisatest' | ||
assert anyon.charge == IsingTopoCharge.Psi | ||
assert anyon.charge.get_ising() == IsingTopoCharge.Psi | ||
assert anyon.position == (1, 1) |
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.