Skip to content

Commit

Permalink
edits to build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rreiner-hqs committed Nov 26, 2024
1 parent de56421 commit da75458
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion roqoqo/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use syn::punctuated::Punctuated;
use syn::visit::{self, Visit};
use syn::{AttrStyle, File, Ident, ItemImpl, ItemStruct, LitStr, Path, Token, Type, TypePath};

const NUMBER_OF_MINOR_VERSIONS: usize = 17;
const NUMBER_OF_MINOR_VERSIONS: usize = 18;

static AVAILABLE_GATES: OnceLock<Mutex<Vec<String>>> = OnceLock::new();

Expand Down Expand Up @@ -402,6 +402,9 @@ impl<'ast> Visit<'ast> for Visitor {
if trait_name.as_str() == "ImplementedIn1point16" {
self.roqoqo_version_register.insert(id.clone(), 16);
}
if trait_name.as_str() == "ImplementedIn1point17" {
self.roqoqo_version_register.insert(id.clone(), 17);
}
if trait_name.as_str() == "OperateSingleQubitGate" {
self.single_qubit_gate_operations.push(id.clone());
}
Expand Down

0 comments on commit da75458

Please sign in to comment.