forked from Qiskit/qiskit
-
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.
I have been observing a small number of sizes of array-like data. So I am trying to make these Array s i.e. with static size. But this is difficult. I plan to replace these with Vec. This commit starts this.
- Loading branch information
Showing
3 changed files
with
51 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ pub mod utilities; | |
mod types; | ||
mod weyl; | ||
mod polytopes; | ||
mod paths; |
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 +1,44 @@ | ||
// from paths.py | ||
|
||
use crate::xx_decompose::polytopes::{ConvexPolytopeData, PolytopeData}; | ||
|
||
static MYDATA : PolytopeData<11, 29, 11, 1, 1> | ||
= PolytopeData | ||
{ | ||
convex_subpolytopes: [ | ||
ConvexPolytopeData { | ||
inequalities : [ | ||
[0., 0., 0., 0., 0., 0., 0., 1., -1., -1., 0.], | ||
[0., 0., 0., 0., 0., 0., 0., 0., 1., -1., 0.], | ||
[0., 0., 0., 0., 0., 0., 0., 0., 0., 1., 0.], | ||
[1., 0., 0., 0., 0., 0., 0., 0., -2., 0., 0.], | ||
[1., 0., 0., 0., 0., 0., 0., 0., 0., 0., -2.], | ||
[0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 1.], | ||
[0., 1., -1., 0., 0., 0., 0., 0., 0., 0., 0.], | ||
[0., 0., 1., 0., 0., 0., 0., 0., 0., 0., 0.], | ||
[0., 0., 0., 1., 0., 0., 0., 0., 0., 0., 0.], | ||
[1., -1., -1., 0., 0., 0., 0., 0., 0., 0., 0.], | ||
[1., -1., 0., -1., 0., 0., 0., 0., 0., 0., 0.], | ||
[0., -1., -1., -1., 0., 0., 0., 1., 0., 0., 0.], | ||
[0., 1., -1., -1., 0., 0., 0., 1., -2., 0., 0.], | ||
[0., 0., -1., 0., 0., 0., 0., 1., -1., -1., 0.], | ||
[0., 0., 0., 0., 1., -1., 0., 0., 0., 0., 0.], | ||
[0., 0., 0., 0., 0., 1., -1., 0., 0., 0., 0.], | ||
[0., 0., 0., 0., 0., 0., 1., 0., 0., 0., 0.], | ||
[1., 0., 0., 0., -1., -1., 0., 0., 0., 0., 0.], | ||
[0., 0., 0., 0., -1., -1., -1., 1., 0., 0., 1.], | ||
[0., 0., 0., 0., 1., -1., -1., 1., -2., 0., 1.], | ||
[0., 0., 0., 0., 1., -1., -1., 1., 0., 0., -1.], | ||
[0., 0., 0., 0., 0., 0., -1., 1., -1., -1., 1.], | ||
[0., 0., 0., 0., 0., 0., -1., 1., -1., 0., 0.], | ||
[0., -1., -1., 0., 1., 1., 0., 0., 0., 0., 1.], | ||
[2., -1., -1., 0., -1., -1., 0., 0., 0., 0., -1.], | ||
[0., 1., 1., 0., -1., -1., 0., 0., 0., 0., 1.], | ||
[0., -1., 1., 0., 1., -1., 0., 0., 0., 0., 1.], | ||
[0., 1., -1., 0., -1., 1., 0., 0., 0., 0., 1.], | ||
[0., 1., -1., 0., 1., -1., 0., 0., 0., 0., -1.], | ||
], | ||
equalities : [[0., 0., 0., 1., 0., 0., -1., 0., 0., 0., 0.]], | ||
name : "I ∩ A alcove ∩ A unreflected ∩ ah slant ∩ al frustrum ∩ B alcove ∩ B unreflected ∩ AF=B3", | ||
}, | ||
]}; |
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