Skip to content

Commit

Permalink
Docs: Apply suggestions from code review
Browse files Browse the repository at this point in the history
- Correct incorrect docstrings for `qubits()` and `clbits()`

Co-authored-by: Eli Arbel <[email protected]>
  • Loading branch information
raynelfss and eliarbel authored Aug 22, 2024
1 parent 28837eb commit 1c5d39b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/circuit/src/circuit_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1166,12 +1166,12 @@ impl CircuitData {
&self.global_phase
}

/// Returns an immutable view of the Qubit register of the circuit
/// Returns an immutable view of the Qubits registered in the circuit
pub fn qubits(&self) -> &BitData<Qubit> {
&self.qubits
}

/// Returns an immutable view of the Classical register of the circuit
/// Returns an immutable view of the Classical bits registered in the circuit
pub fn clbits(&self) -> &BitData<Clbit> {
&self.clbits
}
Expand Down

0 comments on commit 1c5d39b

Please sign in to comment.