qbraid_algorithms.bernstein_vazirani.generate_oracle

qbraid_algorithms.bernstein_vazirani.generate_oracle(bitstring, quiet=False, path=None)

Creates a Bernstein-Vazirani oracle encoded with user-defined hidden bitstring.

Parameters:
  • bitstring (Union[str, list[int]]) – The hidden bitstring s as a string of ‘0’s and ‘1’s

  • quiet (bool) – If True, suppresses output messages.

  • path (str) – The directory path where the Bernstein-Vazirani oracle will be created. If None, creates in the current working directory.

Return type:

None

Returns:

None