import sys
sys.path.append('../')
import CreativeQiskit

result = CreativeQiskit.bell_correlation('ZZ')
print('    Probability of agreement =',result['P'])

result = CreativeQiskit.bell_correlation('XZ')
print('    Probability of agreement =',result['P'])

result = CreativeQiskit.bell_correlation('ZX')
print('    Probability of agreement =',result['P'])

result = CreativeQiskit.bell_correlation('XX')
print('    Probability of agreement =',result['P'])

result = CreativeQiskit.bell_correlation('XX')
print('    Probability of agreement =',result['samples'])

for basis in ['ZZ','XZ','ZX','XX']:
    result = CreativeQiskit.bell_correlation(basis,noisy=True)
    print('    Probability of agreement for',basis,'=',result['P'])

