Set the default `n_chains_per_rank` for exact samplers to 1
Created by: wdphy16
The second PR in the #1013 series.
API changes:
- The default value of
n_chains_per_rank
inSampler
and exact samplers is changed to 1, and specifyingn_chains
orn_chains_per_rank
when constructing them is deprecated. Please changechain_length
when callingsample
. ForMetropolisSampler
, the default valuen_chains = 16
(across all ranks) is unchanged.
In test/sampler/test_sampler.py::test_exact_sampler
I added the test for the default value of n_chains
or n_chains_per_rank
, and I removed all specified n_chains
when constructing the samplers.