qbraid_algorithms.bernstein_vazirani.generate_subroutine

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

Creates a Bernstein-Vazirani subroutine module with user-defined hidden bitstring.

Parameters:
  • bitstring (Union[str, list[int]]) – The hidden bitstring.

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

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

Return type:

None

Returns:

None