quri_parts.backend package¶
- SamplingCounts¶
SamplingCounts represents count statistics of repeated sampling or the measurement probabilities of a quantum circuit. Keys are observed bit patterns encoded in integers and values are counts of observation or the probabilities of the corresponding bit patterns.
- class SamplingResult(*args, **kwargs)¶
Bases:
ProtocolA result of a sampling job.
- abstract property counts: backend.SamplingCounts¶
Measurement counts obtained by a sampling measurement.
- class CompositeSamplingResult(results)¶
Bases:
SamplingResultA sampling result generated by merging multiple sampling results.
- Parameters:
results (Collection[SamplingResult])
- results: Collection[SamplingResult]¶
- property counts: backend.SamplingCounts¶
Measurement counts obtained by a sampling measurement.
- class SamplingJob(*args, **kwargs)¶
Bases:
ProtocolA job for a sampling measurement.
- abstract result()¶
Returns the result of the sampling job.
If the job is not complete, this method waits until the job finishes.
- Return type:
- class CompositeSamplingJob(jobs)¶
Bases:
SamplingJobA sampling job containing multiple sampling jobs.
- Parameters:
jobs (Collection[SamplingJob])
- jobs: Collection[SamplingJob]¶
- result()¶
Returns the result of the sampling job.
If the job is not complete, this method waits until the job finishes.
- Return type:
- class SamplingBackend(*args, **kwargs)¶
Bases:
ProtocolA quantum computing backend that can perform a sampling measurement.
- abstract sample(circuit, n_shots)¶
Perform a sampling measurement of a circuit.
- Parameters:
circuit (ImmutableQuantumCircuit)
n_shots (int)
- Return type:
- exception BackendError¶
Bases:
ExceptionBackendError represents an error caused by a quantum computing backend.
Subpackages¶
- quri_parts.backend.devices namespace
Submodules¶
- quri_parts.backend.cost_estimator module
- quri_parts.backend.device module
QubitPropertyGatePropertyDevicePropertyDeviceProperty.qubit_countDeviceProperty.qubitsDeviceProperty.qubit_graphDeviceProperty.qubit_propertiesDeviceProperty.native_gatesDeviceProperty.physical_qubit_countDeviceProperty.background_errorDeviceProperty.nameDeviceProperty.providerDeviceProperty.transpilerDeviceProperty.parametric_transpilerDeviceProperty.analyze_transpilerDeviceProperty.analyze_parametric_transpilerDeviceProperty.noise_modelDeviceProperty.gate_property()
- quri_parts.backend.qubit_mapping module
- quri_parts.backend.units module