Skip to content

Commit

Permalink
Fix typos in docs
Browse files Browse the repository at this point in the history
This commit fixes several docs typos that were caught during code review.

Co-authored-by: Eli Arbel <[email protected]>
  • Loading branch information
mtreinish and eliarbel authored Jun 4, 2024
1 parent 29f278f commit a7061d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/circuit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ enum. The `OperationType` enum has four variants which are used to define the di
operation objects that can be on a circuit:

- `StandardGate`: a rust native representation of a member of the Qiskit standard gate library. This is
an `enum` that enuerates all the gates in the library and statically defines all the gate properties
an `enum` that enumerates all the gates in the library and statically defines all the gate properties
except for gates that take parameters,
- `PyGate`: A struct that wraps a gate outside the standard library defined in Python. This struct wraps
a `Gate` instance (or subclass) as a `PyObject`. The static properties of this object (such as name,
Expand All @@ -53,7 +53,7 @@ operation objects that can be on a circuit:
the struct.

There is also an `Operation` trait defined which defines the common access pattern interface to these
4 types along with the `OperationType` parent. This trait defined methods to access the standard data
4 types along with the `OperationType` parent. This trait defines methods to access the standard data
model attributes of operations in Qiskit. This includes things like the name, number of qubits, the matrix, the definition, etc.

## ParameterTable
Expand Down
2 changes: 1 addition & 1 deletion crates/circuit/src/imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub static SINGLETON_GATE: GILOnceCell<PyObject> = GILOnceCell::new();
/// qiskit.circuit.singleton.SingletonControlledGate
pub static SINGLETON_CONTROLLED_GATE: GILOnceCell<PyObject> = GILOnceCell::new();

/// A mapping from the enum varian in crate::operations::StandardGate to the python
/// A mapping from the enum variant in crate::operations::StandardGate to the python
/// module path and class name to import it. This is used to populate the conversion table
/// when a gate is added directly via the StandardGate path and there isn't a Python object
/// to poll the _standard_gate attribute for.
Expand Down

0 comments on commit a7061d5

Please sign in to comment.