mimiqcircuits.operations.operation¶
Base Operation class.
Classes
Abstract base class for quantum operations. |
- class mimiqcircuits.operations.operation.Operation[source]¶
Bases:
ABCAbstract base class for quantum operations.
- property num_qubits¶
- property num_qregs¶
- property num_bits¶
- property num_zvars¶
- property num_cregs¶
- property qregsizes¶
- property cregsizes¶
- property zregsizes¶
- property name¶
- property parnames¶
- copy()[source]¶
- Creates a shallow copy of the operation.
To create a full copy use deepcopy() instead.
- Returns:
A new Operation object containing references to the same attributes as the original circuit
- Return type:
- deepcopy()[source]¶
Creates a copy of the object and for all its attributes
- Returns:
A new Operation object fully identical the original circuit
- Return type: