Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
noisy_runtime_errors.py
Go to the documentation of this file.
1 from __future__ import annotations
2 
3 from squander.partitioning.noisy_types import NoisyPartitionDescriptorSet
4 from squander.partitioning.noisy_validation_errors import NoisyRuntimeValidationError
5 
6 
8  descriptor_set: NoisyPartitionDescriptorSet,
9  *,
10  category: str,
11  first_unsupported_condition: str,
12  failure_stage: str,
13  runtime_path: str,
14  reason: str,
15 ) -> NoisyRuntimeValidationError:
16  return NoisyRuntimeValidationError(
17  category=category,
18  first_unsupported_condition=first_unsupported_condition,
19  failure_stage=failure_stage,
20  source_type=descriptor_set.source_type,
21  requested_mode=descriptor_set.requested_mode,
22  workload_id=descriptor_set.workload_id,
23  runtime_path=runtime_path,
24  reason=reason,
25  )