Skip to content

Commit

Permalink
Use T gate time for physical factories.
Browse files Browse the repository at this point in the history
  • Loading branch information
msoeken committed Sep 9, 2024
1 parent 72c32aa commit 224a34a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions resource_estimator/src/system/modeling/physical_qubit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ impl PhysicalQubit {
}
}

#[must_use]
pub fn t_gate_time(&self) -> u64 {
match self {
Self::GateBased(gate_based) => {
gate_based.t_gate_time.expect("T gate time should be set")
}
Self::Majorana(majorana) => majorana.t_gate_time.expect("T gate time should be set"),
}
}

#[must_use]
pub fn t_gate_error_rate(&self) -> f64 {
match self {
Expand Down
2 changes: 1 addition & 1 deletion resource_estimator/src/system/modeling/tfactory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl<'a> TFactoryQubit<'a> {
pub fn cycle_time(&self) -> u64 {
match self {
Self::Logical(qubit) => qubit.logical_cycle_time(),
Self::Physical(qubit) => qubit.one_qubit_measurement_time(),
Self::Physical(qubit) => qubit.t_gate_time(),
}
}

Expand Down

0 comments on commit 224a34a

Please sign in to comment.