Skip to content

Commit

Permalink
Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Nov 5, 2024
1 parent ac012bc commit 413a29c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions tket2-py/tket2/circuit/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def with_nqb(cls, n_qb: int) -> CircBuild:
return cls(*[tys.Qubit] * n_qb, track_inputs=True)

def finish_hugr(self) -> Hugr:
"""Finish building the package by setting all the qubits as the output
and wrap it in a hugr package with the required extensions.
"""Finish building the hugr by setting all the qubits as the output.
Returns:
The finished Hugr.
Expand Down
6 changes: 3 additions & 3 deletions tket2/src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl Circuit<Hugr> {
}
}

/// Error type for conversion between `Op` and `OpType`.
/// Error type for serialization operations on [`Circuit`]s.
#[derive(Debug, Display, Error, From)]
#[non_exhaustive]
pub enum CircuitStoreError {
Expand All @@ -148,7 +148,7 @@ pub enum CircuitStoreError {
},
}

/// Error type for conversion between `Op` and `OpType`.
/// Error type for deserialization operations on [`Circuit`]s.
#[derive(Debug, Display, Error, From)]
#[non_exhaustive]
pub enum CircuitLoadError {
Expand Down Expand Up @@ -277,7 +277,7 @@ fn find_function(hugr: Hugr, function_name: &str) -> Result<Circuit, CircuitLoad
});
}

// Find the function declaration.
// Find the function definition.
fn func_name(op: &OpType) -> &str {
match op {
OpType::FuncDefn(decl) => &decl.name,
Expand Down

0 comments on commit 413a29c

Please sign in to comment.