JobConfig¶
- class JobConfig(shots=None, simulator_cluster=None, qpu_system=None, use_circuit_packing=None, tag='default', force_sampling=False)[source]¶
Bases:
objectConfiguration for a Qoro Service job.
Exactly one of
simulator_clusterorqpu_systemshould be set to target the job. If neither is provided, the service defaults to theqoro_maestrosimulator cluster.Attributes Summary
Whether to force sampling instead of expectation value measurements.
The QPU system to target, can be a string name or a QPUSystem object.
Number of shots for the job.
The simulator cluster to target, can be a string name or a SimulatorCluster object.
Tag to associate with the job for identification.
Whether to use circuit packing optimization.
Methods Summary
override(other)Creates a new config by overriding attributes with non-None values.
Attributes Documentation
- qpu_system: QPUSystem | str | None = None¶
The QPU system to target, can be a string name or a QPUSystem object.
- simulator_cluster: SimulatorCluster | str | None = None¶
The simulator cluster to target, can be a string name or a SimulatorCluster object.
Methods Documentation
- override(other)[source]¶
Creates a new config by overriding attributes with non-None values.
This method ensures immutability by always returning a new JobConfig object and leaving the original instance unmodified.
If the override sets
simulator_cluster, any existingqpu_systemis cleared (and vice versa), so the mutual-exclusivity constraint is preserved.