diff --git a/crates/circuit/README.md b/crates/circuit/README.md index f84bbdc9c5eb..b29660ee0033 100644 --- a/crates/circuit/README.md +++ b/crates/circuit/README.md @@ -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, @@ -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 diff --git a/crates/circuit/src/imports.rs b/crates/circuit/src/imports.rs index e7aa6c2972fb..05cd7b59b91f 100644 --- a/crates/circuit/src/imports.rs +++ b/crates/circuit/src/imports.rs @@ -40,7 +40,7 @@ pub static SINGLETON_GATE: GILOnceCell = GILOnceCell::new(); /// qiskit.circuit.singleton.SingletonControlledGate pub static SINGLETON_CONTROLLED_GATE: GILOnceCell = 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.