Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unifying interfaces after iqcs merging #136

Closed
wants to merge 12 commits into from

Conversation

chensgit169
Copy link
Collaborator

Forward to interface unification of

  1. Instruction.para: List[ParameterType]
  2. Instruction.pos: List[PoseType]
  3. QuantumGate.matrix: ndarray updated with paras, with QuantumGate._matrix ndarray or Callable
  4. add property attribute circuit in Oracle

TODOs:

  1. clearify float(Parameter)
  2. do some unitests

@Zhaoyilunnn
Copy link
Collaborator

Unit test failed

@Zhaoyilunnn
Copy link
Collaborator

https://github.com/ScQ-Cloud/pyquafu/blob/master/quafu/circuits/quantum_circuit.py#L183 used_qubits happened to be sth like [[0], [1], 0, 1] and caused exception in np.sort()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants