Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Hartman <[email protected]>
  • Loading branch information
raynelfss and kevinhartman authored Dec 11, 2024
1 parent 84def52 commit 7a6f5f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/circuit/src/packed_instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ impl PackedInstruction {

// Setters

/// Retrieves an immutable reference to the instruction's underlying operation.
/// Retrieves a mutable reference to the instruction's underlying operation.
pub fn op_mut(&mut self) -> &mut PackedOperation {
#[cfg(feature = "cache_pygates")]
{
Expand All @@ -576,7 +576,7 @@ impl PackedInstruction {
&mut self.op
}

/// Retrieves an immutable reference to the index under which the interner has stored `qubits`.
/// Retrieves a mutable reference to the index under which the interner has stored `qubits`.
pub fn qubits_mut(&mut self) -> &mut Interned<[Qubit]> {
&mut self.qubits
}
Expand All @@ -595,7 +595,7 @@ impl PackedInstruction {
&mut self.extra_attrs
}

/// Retrieves the cached py_gate immutably.
/// Retrieves the cached py_gate mutably.
#[cfg(feature = "cache_pygates")]
pub fn py_op_mut(&mut self) -> &mut OnceLock<PyObject> {
&mut self.py_op
Expand Down

0 comments on commit 7a6f5f1

Please sign in to comment.