quantum.gate.SimpleGate Class
Namespace: quantum.gate
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
Description
A SimpleGate object represents a simple quantum gate that operates on a
small number of qubits. Simple gates are the building blocks of a quantum circuit. You can
construct composite gates from a combination of simple gates. You can assign
SimpleGate objects to the Gates property of a
quantumCircuit object (as a vector of gates) to represent the gate
operations of the circuit.
Creation
Use gate creation functions, such as hGate, cxGate, and
swapGate, to
construct a SimpleGate object. For a complete list of the gate creation
functions, see Creation Functions for SimpleGate Objects.
Properties
Methods
Examples
Version History
Introduced in R2023a