PauliLindbladMapSpecification¶
- class samplomatic.tensor_interface.PauliLindbladMapSpecification(name: str, num_qubits: int, num_terms: str)[source]¶
Bases:
Specification[PauliLindbladMap]A specification for interface values of type
qiskit.quantum_info.PauliLindbladMap.- Parameters:
name – The specification name.
num_qubits – How many qubits the Pauli Lindblad map must act on.
num_terms – A name for the dimensional freedom that represents the number of terms owned by the Pauli Lindblad map.
Attributes Summary
A description of this specification.
Named dimensions whose sizes are free until an interface value binds their value.
The name of this specification.
Whether this is an optional specification.
Methods Summary
describe()Return a human-readable description of this specification.
validate_and_coerce(value)Coerce a value into a correct type if valid.
Attributes Documentation
- description¶
- free_dimensions¶
- name¶
- optional¶
Methods Documentation
- validate_and_coerce(value)[source]¶
Coerce a value into a correct type if valid.
- Parameters:
value – A value to validate and coerce with respect to this specification.
- Raises:
TypeError – If the value cannot be coerced into a valid type.
- Returns:
The coerced value, and a dictionary mapping each member of
free_dimensionsto a size implied by thevalue.