diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1b2b30e2f..7202da7ff 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -109,7 +109,7 @@ repos: # Check for spelling - repo: https://github.com/crate-ci/typos - rev: v1.27.3 + rev: v1.28.0 hooks: - id: typos diff --git a/src/ir/operations/SymbolicOperation.cpp b/src/ir/operations/SymbolicOperation.cpp index 6e2d5b079..8fb1612fe 100644 --- a/src/ir/operations/SymbolicOperation.cpp +++ b/src/ir/operations/SymbolicOperation.cpp @@ -308,9 +308,9 @@ SymbolicOperation::dumpOpenQASM([[maybe_unused]] std::ostream& of, bool openQASM3) const { if (openQASM3) { throw QFRException( - "Printing OpenQASM 3.0 parametrized gates is not supported yet!"); + "Printing OpenQASM 3.0 parameterized gates is not supported yet!"); } - throw QFRException("OpenQASM 2.0 doesn't support parametrized gates!"); + throw QFRException("OpenQASM 2.0 doesn't support parameterized gates!"); } StandardOperation SymbolicOperation::getInstantiatedOperation( diff --git a/test/ir/test_io.cpp b/test/ir/test_io.cpp index 0cce9cf83..b853926ec 100644 --- a/test/ir/test_io.cpp +++ b/test/ir/test_io.cpp @@ -587,7 +587,7 @@ TEST_F(IO, UseQelib1Gate) { EXPECT_EQ(op->size(), 9U); } -TEST_F(IO, ParametrizedGateDefinition) { +TEST_F(IO, ParameterizedGateDefinition) { *qc = qc::QuantumComputation::fromQASM( "qreg q[1];" "gate foo(theta, beta) q { rz(theta) q; rx(beta) q; }"