Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exposed --numlanes and --condensed #98

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion src/pipelines/slicer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,15 @@ namespace lsqecc
" - edpc: Uses a layout specified in the EDPC paper by Beverland et. al. (https://arxiv.org/abs/2110.11493)"
)
.required(false);
parser.add_argument()
.names({"--numlanes"})
.description("Only compatible with -L edpc. Configures number of free lanes for routing.")
.required(false);
parser.add_argument()
.names({"--condensed"})
.description("Only compatible with -L edpc. Packs logical qubits more compactly.")
.required(false);

#ifdef USE_GRIDSYNTH
parser.add_argument()
.names({"--rzprecision"})
Expand Down Expand Up @@ -339,7 +348,16 @@ namespace lsqecc
}
else if (parser.get<std::string>("layoutgenerator") == "edpc")
{
layout = make_edpc_layout(instruction_stream->core_qubits().size(), 1, false, distillation_options);
size_t num_lanes = 1;
bool condensed = false;

if(parser.exists("numlanes"))
num_lanes = parser.get<size_t>("numlanes");

if(parser.exists("condensed"))
condensed = parser.get<bool>("condensed");

layout = make_edpc_layout(instruction_stream->core_qubits().size(), num_lanes, condensed, distillation_options);
instruction_stream = std::make_unique<CatalyticSGateInjectionStream>(std::move(instruction_stream), id_generator, compile_mode == CompilationMode::Local);
}
else
Expand Down