Skip to content

Commit 0c916fd

Browse files
committed
Add separate exact routine.
1 parent 0792aa9 commit 0c916fd

7 files changed

Lines changed: 320 additions & 85 deletions

File tree

pygridsynth/cli.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"allowed during the factoring process"
1515
),
1616
"seed": "Random seed for deterministic results",
17-
"phase": "up to Phase help",
17+
"phase": "Ignore global phase in search candidates.",
18+
"strip-phase": "Remove all W gates from the output string of gates.",
1819
}
1920

2021

@@ -28,7 +29,8 @@ def main():
2829
parser.add_argument("--ftimeout", "-ft", type=float, default=None, help=helps["ft"])
2930
parser.add_argument("--dloop", "-dl", type=int, default=10, help=helps["dl"])
3031
parser.add_argument("--floop", "-fl", type=int, default=10, help=helps["fl"])
31-
parser.add_argument("--phase", "-p", action="store_true")
32+
parser.add_argument("--phase", "-p", action="store_true", help=helps["phase"])
33+
parser.add_argument("--strip-phase", "-sp", action="store_true", help=helps["strip-phase"])
3234
parser.add_argument("--seed", type=int, default=0, help=helps["seed"])
3335
parser.add_argument("--verbose", "-v", action="store_true")
3436
parser.add_argument("--time", "-t", action="store_true")
@@ -45,6 +47,7 @@ def main():
4547
floop=args.floop,
4648
seed=args.seed,
4749
phase=args.phase,
50+
strip_phase=args.strip_phase,
4851
verbose=args.verbose,
4952
measure_time=args.time,
5053
show_graph=args.showgraph,

0 commit comments

Comments
 (0)