quri_parts.qulacs.sampler module#
- create_qulacs_vector_ideal_sampler()#
Returns a
Sampler
that uses Qulacs vector simulator for returning the probabilities multiplied by the specific shot count.- Return type:
core.sampling.Sampler
- create_qulacs_vector_sampler()#
Returns a
Sampler
that uses Qulacs vector simulator for sampling.- Return type:
core.sampling.Sampler
- create_qulacs_vector_concurrent_sampler(executor=None, concurrency=1)#
Returns a
ConcurrentSampler
that uses Qulacs vector simulator for sampling.- Parameters:
executor (Optional['Executor']) –
concurrency (int) –
- Return type:
ConcurrentSampler
- create_qulacs_stochastic_state_vector_sampler(model)#
Returns a
Sampler
that repeats Qulacs state vector simulation for shot times with noise model.- Parameters:
model (NoiseModel) –
- Return type:
core.sampling.Sampler
- create_qulacs_density_matrix_sampler(model)#
Returns a
Sampler
that uses Qulacs simulator using density matrix with noise model.- Parameters:
model (NoiseModel) –
- Return type:
core.sampling.Sampler
- create_qulacs_density_matrix_ideal_sampler(model)#
Returns a
Sampler
that uses Qulacs simulator using density matrix with noise model and provides the exact probabilities multiplied with the shot count.- Parameters:
model (NoiseModel) –
- Return type:
core.sampling.Sampler
- create_qulacs_noisesimulator_sampler(model)#
Returns a
Sampler
that uses Qulacs NoiseSimulator.- Parameters:
model (NoiseModel) –
- Return type:
core.sampling.Sampler
- create_qulacs_density_matrix_concurrent_sampler(model, executor=None, concurrency=1)#
Returns a
ConcurrentSampler
that uses Qulacs simulator using density matrix with noise model for sampling.- Parameters:
model (NoiseModel) –
executor (Optional['Executor']) –
concurrency (int) –
- Return type:
ConcurrentSampler
- create_qulacs_stochastic_state_vector_concurrent_sampler(model, executor=None, concurrency=1)#
Returns a
ConcurrentSampler
that repeats Qulacs state vector simulation for shot times with noise model.- Parameters:
model (NoiseModel) –
executor (Optional['Executor']) –
concurrency (int) –
- Return type:
ConcurrentSampler
- create_qulacs_noisesimulator_concurrent_sampler(model, executor=None, concurrency=1)#
Returns a
ConcurrentSampler
that uses Qulacs NoiseSimulator.- Parameters:
model (NoiseModel) –
executor (Optional['Executor']) –
concurrency (int) –
- Return type:
ConcurrentSampler