View source on GitHub |
Generator for a list of k-partitions of N qubits such that all sets of k qubits are perfectly split in at least one partition, following ArXiv:1908.05628
openfermion.measurements.partition_iterator(
qubit_list, partition_size, num_iterations=None
)
Returns | |
---|---|
partition
|
iterator of tuples of lists
the required partitioning |