Circuit#
- class iqm.pulse.circuit_operations.Circuit(name, instructions, metadata=None)#
Bases:
object
Quantum circuit.
Used e.g. for client-server communication.
Consists of a sequence of native quantum operations, each represented by an instance of the
CircuitOperation
class.Module:
iqm.pulse.circuit_operations
Attributes
optional metadata for the circuit
name of the circuit
operations comprising the circuit
Methods
Return the names of all locus components (typically qubits) in the circuit.
Validate the circuit against the supported quantum operations.
- instructions: tuple[CircuitOperation, ...]#
operations comprising the circuit
- all_locus_components()#
Return the names of all locus components (typically qubits) in the circuit.
- validate(supported_operations)#
Validate the circuit against the supported quantum operations.
- Parameters:
supported_operations (dict[str, QuantumOp]) – mapping of supported quantum operation names to their definitions
- Raises:
ValueError – circuit is not valid
- Return type:
None